JaroslavTulach opened a new pull request, #9622:
URL: https://github.com/apache/netbeans/pull/9622

   - while working on `ProjectsRootNode` I found following error:
   
   <img width="1843" height="505" alt="errors in Java source file" 
src="https://github.com/user-attachments/assets/9f78deae-2f00-4a2f-99b0-bf4636d05cc8";
 />
   
   - there are errors in the source code of `ProjectsRootNode` even there shall 
be none
      - the problem is that there is **no open project**
      - then the system doesn't create `Index` for `ide/projectui/src` and then 
it cannot find _co-located files_
   - @lahodaj suggested to use 
https://github.com/apache/netbeans/blob/1336aa1e761adbddcdffae2c7cecda84aa828fdf/java/java.source.base/src/org/netbeans/modules/java/source/classpath/SourcePath.java#L47
   - with `-J-DSourcePath.no.source.filter=true` it all works correctly
      - however Jan warns, that such a change could hurt IDE performance
   - as such I was seeking for another fix
   - **explicitly refresh the index** when it is not yet initialized
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to