You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! nvim-java author here. I was wondering if it's possible to use overseer.nvim to run and debug java applications. I remember seeing one of your issues in the dap project related to debug so thought it might be possible.
Running
The last time I checked, DAP can be used to run tests without stopping at debug points but same nodebug parameter did not work when executing application (mfussenegger/nvim-dap#1094). So our approach for running is a simple command like below.
High level idea is, we send LSP requests to jdtls to get,
java executable path
classpaths
app
Those calls are asynchronous as you probably know.
Debugging
Nothing unusual here as well. We get the same set of information, set the DAP config. Rest of it is user using nvim-dap to debug things. However, one major issue is, we have logs from the Run because we handle the std in/out and we store them so user can see later. But for debugging, I don't know what the hell happens to the log.
All in one place
End of the day, I would like to feat overseer and overcome these issue
Having two ways to run / debug is not ideal for us.
I want to be able to view run and debug logs in the same place
Something like tasks.json for people to create profiles of applications.
I'm just wondering if this is possible using overseer, and where can I start?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
nvim-java
author here. I was wondering if it's possible to use overseer.nvim to run and debug java applications. I remember seeing one of your issues in the dap project related to debug so thought it might be possible.Running
The last time I checked, DAP can be used to run tests without stopping at debug points but same nodebug parameter did not work when executing application (mfussenegger/nvim-dap#1094). So our approach for running is a simple command like below.
/usr/bin/java -cp /path/one:/path/two com.example.demo.DemoApplication # ^ java executable path ^ classpaths ^ app
High level idea is, we send LSP requests to
jdtls
to get,Those calls are asynchronous as you probably know.
Debugging
Nothing unusual here as well. We get the same set of information, set the DAP config. Rest of it is user using nvim-dap to debug things. However, one major issue is, we have logs from the Run because we handle the std in/out and we store them so user can see later. But for debugging, I don't know what the hell happens to the log.
All in one place
End of the day, I would like to feat overseer and overcome these issue
I'm just wondering if this is possible using overseer, and where can I start?
Beta Was this translation helpful? Give feedback.
All reactions