apache / apache/netbeans

Editor content differs from file to compile

Open
#4,217 0 comments 0 reactions 1 assignee Claimed by @MartinBalin View on GitHub
kind:bug needs:triage VSCode Extension
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.
![compiler_editor_sel](https://user-images.githubusercontent.com/5930641/172840088-a50519d2-1f26-4c5f-a241-374401a27c9a.png)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.