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
First of all thank you for developing this plugin, I hope to contribute to the project myself in the future.
The IntelliJ Gleam plugin reports false-positive syntax errors when:
Using tuple shorthand (#()) in a list.
Accessing functions or constructors (e.g., StringValue) from an imported module.
This issue does not occur when the code is contained within a single module, suggesting that the problem lies in the plugin's handling of imports and module resolution.
Important Detail: If the code from both files is combined into a single module (i.e., everything in main.gleam), the error does not occur. This suggests that the plugin struggles with resolving imports and handling module separation.
Expected Behaviour
The code compiles and runs successfully with the Gleam compiler (gleam build and gleam run). No syntax errors should be reported by the IntelliJ Gleam plugin, regardless of whether the code is split across multiple modules.
First of all thank you for developing this plugin, I hope to contribute to the project myself in the future.
The IntelliJ Gleam plugin reports false-positive syntax errors when:
#()
) in a list.StringValue
) from an imported module.This issue does not occur when the code is contained within a single module, suggesting that the problem lies in the plugin's handling of imports and module resolution.
Reproducible Example
model/property_graph.gleam
main.gleam
Observed Behaviour
In the
main.gleam
file, the IntelliJ Gleam plugin reports the following syntax error at:Error:
'..' expected, got '"'
.Important Detail: If the code from both files is combined into a single module (i.e., everything in
main.gleam
), the error does not occur. This suggests that the plugin struggles with resolving imports and handling module separation.Expected Behaviour
The code compiles and runs successfully with the Gleam compiler (
gleam build
andgleam run
). No syntax errors should be reported by the IntelliJ Gleam plugin, regardless of whether the code is split across multiple modules.Environment
Steps to Reproduce
model/property_graph.gleam
andmain.gleam
.main.gleam
file when callingproperty_graph.create_node
.Additional Notes
main.gleam
file resolves the error, confirming the issue is specific to module resolution.The text was updated successfully, but these errors were encountered: