Skip to content

feat: vscode extension, more intutive compile errors#1775

Merged
Ekrekr merged 3 commits intodataform-co:mainfrom
ashish10alex:vscode_extension_nicer_errors
Jul 9, 2024
Merged

feat: vscode extension, more intutive compile errors#1775
Ekrekr merged 3 commits intodataform-co:mainfrom
ashish10alex:vscode_extension_nicer_errors

Conversation

@ashish10alex
Copy link
Contributor

Currently the default behaviour for when a compilation error occurs is to show a generic information message. The PR uses the graphErrors object and outputs the errors to the user similar to GCP Dataform UI

Current behaviour

CleanShot 2024-07-02 at 20 21 58@2x

New behaviour

CleanShot 2024-07-02 at 20 14 57@2x

Copy link
Contributor

@Ekrekr Ekrekr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer!

You need to merge from this repo's main I think, have just merged some other PRs.

vscode/server.ts Outdated
}

async function compileAndValidate() {
let hasCompilationError = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit confusingly named, because the errors below are also compilation errors. A better name would probably be let compilationFailed = false

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Ekrekr, I agree. I have made the suggested change and synced this branch with dataform repo's main branch.

@Ekrekr Ekrekr merged commit cd61c3e into dataform-co:main Jul 9, 2024
@ashish10alex ashish10alex deleted the vscode_extension_nicer_errors branch August 12, 2024 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants