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

Incorrect using directive prevents proper bsp setup #1097

Closed
prolativ opened this issue Jun 10, 2022 · 1 comment · Fixed by #1195
Closed

Incorrect using directive prevents proper bsp setup #1097

prolativ opened this issue Jun 10, 2022 · 1 comment · Fixed by #1195
Assignees

Comments

@prolativ
Copy link

Version(s)

0.1.7

Describe the bug

When running scala-cli setup-ide for the first time in a project, if an incorrect using directive is present (e.g. with missing quotes) .scala-build/.bloop directory and its contents are not generated at all and there's no error about that and then the IDE sees no build targets (and as a consequence the error in the directive is not indicated in the IDE).

To Reproduce

mkdir /tmp/foo
cd /tmp/foo
code .      # open the directory in VSCode
echo '//> using scala 3.1.2' > Foo.scala
scala-cli setup-ide .

Expected behaviour

Either scala-cli setup-ide command should report some error or it should generate the build targets for bsp anyway so that the error is displayed in the IDE.

@prolativ
Copy link
Author

prolativ commented Jun 13, 2022

Metals now has a workaround for that scalameta/metals#4017 but probably something still should be done with this on scala-cli's side.

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 a pull request may close this issue.

2 participants