-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Japanese in the type constructor name, it becomes a parsing error #105
Comments
Does this work for you with the latest release of elm-ls? It seems to be causing other regressions unfortunatly, so I'm considering to revert. |
I use |
So that version still has the problem? |
Yes. |
The Elm compiler accepts the source code, but the elm-language-server recognizes it as a parsing error.
The problem is that if you put Japanese in the type constructor name, it becomes a parsing error.
The source code.
Expected Behavior
The parsing completes normally.
Current Behavior
Main.elm 4 1 error Parsing error. (lsp)
Possible Solution
The Unicode character range accepted by Elm is accepted.
Steps to Reproduce (for bugs)
Context
Mainly English-speaking people may think that a type constructor containing Japanese is ridiculous and that only ASCII range should be used for the constructor.
However, we are Japanese who write programs to process Japanese in Haskell.
In our team, there are almost only native Japanese speakers.
It would be unclear and inefficient for our team to go to the trouble of finding literature that explains Japanese concepts in English and use terminology expressed in inexact English to program Japanese-specific concepts.
Therefore, we used a type constructor called
PredicateInflection未然
in Haskell, and converted it to Elm.Both Haskell and Elm accepted the Japanese type constructor.
However, if LSP rejects it, the Elm source code of the corresponding part is troublesome to handle from others, though it is generated automatically.
Your Environment
The text was updated successfully, but these errors were encountered: