- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 432
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
False errors due to off-by-one-character in identifiers or types #1807
Comments
Since v0.40.2 we have handle incremental update logic in language server for support incremental parser and resolve diagnosis display flicker (#1718), it should be the reason. Please let me know if you can reproduce this problem stably and how. After v0.40.6 you can setting |
@Sun-ZhenXing can you reproduce this problem in https://github.com/johnsoncodehk/volar-starter? |
This comment was marked as resolved.
This comment was marked as resolved.
@Sun-ZhenXing I think this is a different problem and it should be fixed in v0.40.8. |
@2-5 Since I haven't seen other similar reports, I'm guess it may no longer occur, can you try revert |
I did have it happen in 1.0.7 yesterday in a *.ts file. |
@rchl It would be very helpful if you can provide the LSP logs that record at the moment the problem occurred. |
A few days later I did revert the |
I'm sure it would but I can't reproduce it on demand and once I notice it, I might not have logs reaching far enough for them to be useful. |
Volar 0.40.5
I get frequent false errors due to Volar complaining about invalid identifiers due to off-by-one-character errors, like in the screenshot:
The fix is to restart VS Code, closing and reopening the source file with the reported false error doesn't work due to some form of cache.
Other example that happend: complaining about unknown type
nboolean
instead ofboolean
which is in source code.The text was updated successfully, but these errors were encountered: