Package dependency resolution diagnostics and the impact on VSCode plugin experience #32685
sameerajayasoma
started this conversation in
General
Replies: 1 comment
-
@sameerajayasoma yes definitely we can do that. Also, it does not matter whether it is a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, many package dependency resolution-related errors turn into
ProjectExcepton
instances. This behavior hurts VSCode plugin users because the compilation does not continue after such exceptions.So I am working on converting those exceptions into package resolution diagnostics. Most of those diagnostics do not have associated locations. I.e., It doesn't make sense to map such a diagnostics with a location in the
.bal
source file.I had a look at how Rust handles this. It seems the Rust VSCode plugin that I use marks the whole
Cargo.toml
file as the location. I at least expected it to mark just the[package]
because such errors related to the whole package.Can we do something similar in Ballerina as well?
@nadeeshaan @mohanvive @azinneera @pramodya1994 FYI.
Beta Was this translation helpful? Give feedback.
All reactions