I use tmux on my main terminal (iterm2)
\ni was wondering if it was possible to use and split-pane as external terminal. i tried the following.
dap.defaults.fallback.external_terminal = {\n command = '/opt/homebrew/bin/tmux';\n args = {'split-pane'};\n}\n
this works for most projects but for java projects with a big classpath it fails
\ni get Terminal exited with status 1
PS
\nthe project which has the huge classpath is a project from work. so i can't share much details on it. if anyone has any suggestions please share
thanks to @mfussenegger
\ndap.configurations.configurations.java = {\n {\n ...\n shortenCommandLine = \"argfile\",\n ...\n }\n}\n
same can be use while running test cases. just add the config while calling the api
\nlua require'jdtls'.test_nearest_method({config = {shortenCommandLine=\"argfile\"}})
one caveat. if your test cases are path dependent (my work project loads some json files into mongodb using relative paths). you will have to enusre that the \"terminal\" starts at the correct root directory for tmux i do
\ndap.defaults.fallback.external_terminal = {\n\tcommand = \"tmux\",\n\targs = { \"split-pane\", \"-c\", \"<desired-root-dir>\"},\n}\n
-
Currently i'm using alacritty as externalTerminal
I use tmux on my main terminal (iterm2)
this works for most projects but for java projects with a big classpath it fails PS |
Beta Was this translation helpful? Give feedback.
-
After a bit of tinkering a remembered that vscode put the class path to in an argfile and replaced
argify.py
with this wrapper (or double wrapper?) the project runs. |
Beta Was this translation helpful? Give feedback.
-
thanks to @mfussenegger
same can be use while running test cases. just add the config while calling the api one caveat. if your test cases are path dependent (my work project loads some json files into mongodb using relative paths). you will have to enusre that the "terminal" starts at the correct root directory for tmux i do
|
Beta Was this translation helpful? Give feedback.
-
@mfussenegger is it possible to use the i used |
Beta Was this translation helpful? Give feedback.
-
I have a problem when I use Telescope my dapui disappears, and then I can't connect to the original integrated terminal. |
Beta Was this translation helpful? Give feedback.
thanks to @mfussenegger
same can be use while running test cases. just add the config while calling the api
lua require'jdtls'.test_nearest_method({config = {shortenCommandLine="argfile"}})
one caveat. if your test cases are path dependent (my work project loads some json files into mongodb using relative paths). you will have to enusre that the "terminal" starts at the correct root directory for tmux i do