-
Notifications
You must be signed in to change notification settings - Fork 49
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
syntax check #113
base: master
Are you sure you want to change the base?
syntax check #113
Conversation
bung87
commented
Jan 31, 2022
- Bump version
- async server (async server #109)
- Minor style-fixes
- add syntax check before compile module
Why is this done? The compiler should just error out early if there is a syntax error, right? |
syntax check use less resource and faster than compile module, and when syntax wrong there's no need compile module, compile module will only issue an error and crash the server. while user typing code it's very easy trigger this. |
But part of LSP is based around getting information about what to type. Take a suggestion for example, you write |
I rarely use |
Of course However I'm interested in the crash you mentioned. Do you have a small sample where I can see the server crashing without this feature? |
I tried but hav't found yet, but I got new problem, I found syntax check is not reliable, it reports wrong error for me , it reports invalid indentation while that line is valid. |