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

In Scala + gradle, error highlight doesn't work #720

Open
tribbloid opened this issue Dec 27, 2024 · 10 comments
Open

In Scala + gradle, error highlight doesn't work #720

tribbloid opened this issue Dec 27, 2024 · 10 comments

Comments

@tribbloid
Copy link

Image

there is no trace or log error, how did this happen?

@tribbloid
Copy link
Author

@angelozerr
Copy link
Contributor

Image

there is no trace or log error, how did this happen?

Have you other lsp features like completion ?

I suggest that you set traces to verbose and check in the lsp console that yiu have lsp publishDiagnostic traces

@tribbloid
Copy link
Author

found the reason:Image

I have to change it back to "built-in"

@angelozerr
Copy link
Contributor

You mean that it exists an IJ plugin which is based on LSP4IJ for scala?

@tribbloid
Copy link
Author

oh sorry, the above screenshot is from the official Scala plugin from JetBrains

If error highlighting is set to "Compiler" it will ignore the report from metaLS

@angelozerr
Copy link
Contributor

If I understand correctly the jetbrains scala setting can disable validation from LSP4IJ ?

@tribbloid
Copy link
Author

yes that's my experience so far, I could speculate that most people needing LSP4IJ & metaLS integration also rely on IntelliJ Scala plugin for other features

@angelozerr
Copy link
Contributor

Do you see some publichDiagnostic in the LSP console? If no it means that error is not managed by metal LS.

@tribbloid
Copy link
Author

@angelozerr unfortunately this is not possible at the moment. metaLS had an issue that prevents the console from launching, see scalameta/metals#7072 for details

are they also in traces or logs? can't see anything marked as Diagnostic

@angelozerr
Copy link
Contributor

@angelozerr unfortunately this is not possible at the moment. metaLS had an issue that prevents the console from launching, see scalameta/metals#7072 for details

are they also in traces or logs? can't see anything marked as Diagnostic

If you dont see any lsp publishDiagnostic traces it is normal that you have no validation error.

Perhaps metal ls expects some config to enable validation?

The error validation that you have comes from the other scala intellij plugin, there is is no links with lsp4ij

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

No branches or pull requests

2 participants