navneetkarnani commented on issue #6572: URL: https://github.com/apache/netbeans/issues/6572#issuecomment-1766486411
Here are some things that I saw in the code: [java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/layer.xml](https://github.com/apache/netbeans/blob/0a109c22b96d62af455b13cbb304acdaa2f014f7/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/layer.xml#L166) In this file, there is a reference to the `spring-actions-override.xml` but there is no such file. There is, though: https://github.com/apache/netbeans/blob/0a109c22b96d62af455b13cbb304acdaa2f014f7/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/spring-actions-override.xml#L4 Also, the `spring-actions-override.xml` only has an override for the native action. I created a nbactions.xml, and could get the "rebuild" and "debug" targets to run with the "Debug" and "Compile" actions in the VSCode extension. I could also, not get the debugger to attach to the "spring-boot:run" command, even though VS Code "Notifications" shows the "Debug", and waits for it to terminate. Either because I am passing the arguments wrong, or the below message actually does mean something: ``` --- spring-boot:3.1.4:run (default-cli) @ myapp --- Attaching agents: [] ``` So, I am guessing, that there is already some basic integration with Spring. Just needs to be enhanced a bit. @MartinBalin You are right about the Spring VS Code extension needing the JDT enabled Java LS extension. But then, they have no incentive to change that behaviour immediately. A small change, similar to the one I have in the nbactions.xml , would go a long way from where we are right now. It is no "Spring Dashboard", but still. [nbactions.xml.zip](https://github.com/apache/netbeans/files/12929710/nbactions.xml.zip) This is, by no means, even close to being a merge request, just a sample. Let me know if I can help. I am avoiding going back to the JDT based extension, but may have to do so, if this becomes "not feasible". -- 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
