You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when the LSP opens a Gleam file whose name is incorrect (something like my-module.gleam for instance), nothing happens. It could be nice to let the LSP indicates it as a bug (because gleam build will fail) with a message like "my-module is not a valid name for a Gleam module. You should switch to my_module instead."
The text was updated successfully, but these errors were encountered:
lpil
changed the title
Show an error message on an invalid named module
LSP: Show an error message on an invalid named module
Dec 9, 2024
I was thinking of implementing the module name validation in the language server engine.rs file within the compile function. The idea is to check if module names are valid similar to this and, if not, add them to the results. Before moving forward and submitting a pull request, I'd love to hear your thoughts on this approach and if there is an alternative solution I missed.
Hi!
Currently, when the LSP opens a Gleam file whose name is incorrect (something like
my-module.gleam
for instance), nothing happens. It could be nice to let the LSP indicates it as a bug (becausegleam build
will fail) with a message like "my-module is not a valid name for a Gleam module. You should switch to my_module instead."The text was updated successfully, but these errors were encountered: