JaroslavTulach opened a new pull request #2646: URL: https://github.com/apache/netbeans/pull/2646
Using VSNB ext 12.2.252 and GraalVM 21.1.0 JDK8 CE build. * Create Micronaut App project - see [wiki](https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+extension+for+Visual+Studio+Code) * Click icon in Explorer to add file, name it e.g. "HellController.java" * paste in content for HelloController.java sample. * Rename the file in VSCode explorer to "HelloController.java" * VSNetBeans complains file was changed on disk and has to be reloaded. * Check the PROBLEMS window in VSCode it still lists "HellController.java" as having improperly named class. * Press F5 for debugging the project it prints to console : ``` Info: Saving HellController ... Info: Save All finished. and dialog appears with "Cannot save HellController" message from VSNB ext ``` * Close the folder with project and open again and it starts behave correctly The PR workarounds the problem by not showing the "complains file was changed on disk and has to be reloaded". There may be better fixes, especially when `lsp4j` starts to fully support 3.16 protocol which contains notifications like `willRename`/`didRename`. ---------------------------------------------------------------- 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. 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
