Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report errors for using directives in console and via BSP #210

Merged

Conversation

alexarchambault
Copy link
Contributor

No description provided.

@alexarchambault alexarchambault force-pushed the using-directives-errors branch 8 times, most recently from 870d415 to d9f92d1 Compare October 14, 2021 10:28
@alexarchambault alexarchambault marked this pull request as ready for review October 14, 2021 10:28
@alexarchambault alexarchambault force-pushed the using-directives-errors branch 3 times, most recently from 6d218c8 to 04b7fc8 Compare October 14, 2021 11:30
Useful in subsequent commits
So that we can report errors at the positions where we add dependencies.
We're trying to guess the target id that Bloop is going to give us.
Depending on whether we use Java IO or NIO, or if the .scala directory
already exists, the URI we infer might be subtly different than the one
picked by Bloop, so that's a bit fragile…

This URI used to be picked in the first messages we got from Bloop.

It's useful here to reset directives diagnostics upon startup.
We make them start at 'using' rather than at '//'.
So that we get standard diagnostics for malformed or not-found
dependencies.
BspTests are for the bsp sub-command, not the Bloop integration.

Plus tests in BspTestDefinitions are run for each Scala version, which
is not relevant for these tests.
Not sure it was doing what was expected, the version comparison was
wrong in particular.
@alexarchambault alexarchambault merged commit 279ac20 into VirtusLab:master Oct 14, 2021
@alexarchambault alexarchambault deleted the using-directives-errors branch October 14, 2021 14:29
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.

None yet

1 participant