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

Diagnostics shift on Japanese documents #5

Open
pickoba opened this issue Dec 6, 2021 · 0 comments
Open

Diagnostics shift on Japanese documents #5

pickoba opened this issue Dec 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@pickoba
Copy link
Owner

pickoba commented Dec 6, 2021

The type checking error range is shifted when the document is in Japanese, as you can see in the image below.

diagnostics shift: alphabet

diagnostics shift: Japanese

This is because the "position" in SATySFi's error output is in bytes, not in characters. It is possible to "unshift" by checking the encoding of the file, but I don't think it is an appropriate way to handle this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant