Editor content differs from file to compile
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 13
### What happened
Compiler complains with errors which does not reflect the content in the editor.
### How to reproduce
Not 100% reproducible, but happens pretty often.
1. Modify java file.
2. Save file immediately using Ctrl+S.
3. Sometimes, you may errors even the file should compile.
4. Pres F8 to see the error.
You can see that error is caused by tokens which are not at errror position.

### Did this work correctly in an earlier version?
No
### Operating System
Ubuntu Linux 22.04
### JDK
JDK 1.8
### Apache NetBeans packaging
Apache VSNetBeans for VSCode
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
Contributor guide
Assessment
This issue has not been assessed yet.