-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dap-debug → Attach → open-network-stream wrong-type-argument stringp nil #31
Comments
This means that the debug plugin/bundle is missing. what does Also, inspect the messages buffer when lsp-java is starting, ussually there is an error message if JDT LS fails to load a bundle.
|
I believe I've encountered that one before. Mhmm. Do I have to do anything extra to get that bundle?
Tried that (again), but although
I still get:
|
Hm, when you do
|
Mhmm. I cannot expand anything, it just says:
and that's it. |
Hm, this is odd. There is dap-mode test that covers this functionality (attaching to remote target) and at this point it is green. Clone the repo and install cask:
|
I was about to setup a new debian machine for testing and I hit the exactly the same issue - it is caused by using OpenJDK - after I switched to Oracle version the issue was fixed. |
Thanks for figuring out that one. So is this a bug or a missing feature? |
It is something related to JDT LS/Che JDT LS/Java Debug Adapter/OpenJDK version. You may run |
Is this still relevant? |
I'll change my config to use OpenJDK 11 and use it for a day. Then I'll report back. |
I haven't encountered this again when running on OpenJDK 11, no. Admittedly I only debug JUnit tests, but if they both call |
I think so. Offtopic: As a side note, I think that you are going to take part of Emacs conf? If this is so and if you are going to present lsp-java/dap-mode I will be happy to provide feedback on your agenda and eventually solve issues that bother you. |
Hi @yyoncho, yes, I will do a wee presentation at Emacs Conf (10 min). In the demo I've prepared I plan to show: Code navigationWorks. Jump to source of 3rd party librariesWorks. Auto completionWorks. Import classesWorks. Static import methods and fieldsWorks well for single imports, replacing the current one, but I don't Not a big issue for my demo, though, just FYI. Run JUnit tests from within EmacsWorks. Linting
Works. Implement missing classWorks, but I will not show it because Interestingly, code navigation to the new class works just The behaviour is easy enough to reproduce (at least for me, using my In Implement missing methodWorks. Debug application from within EmacsWorks. Debugger with conditional break pointsWorks. (one of my favourite features in Refactoring: rename variableWorks, but has sometimes the same problem as Other thingsIn addition comes things that aren't lsp-java/dap-mode specifc, but helps create an awesome java development environment in Emacs. What do you think? |
I think that some of the issues that you are seeing are caused either by dap not doing a build before running something(which is a bug that I should fix) or caused by the fact you have disabled file watches. I believe some of them could be fixed with Refactorings: I think you could demo inline/extract method/variable(my favourites). You may include lsp-treemacs stuff like: https://github.com/emacs-lsp/lsp-treemacs#lsp-treemacs-deps-list There is a lot of stuff to demo though, 10 minutes wouldn't be enough.
When you hit issues like these, please go ahead and report them. I think most of them are JDT LS issues and they are very responsive. You may be hitting: eclipse-jdtls/eclipse.jdt.ls#1203 |
I've enabled I didn't think of trying
These are really nice! I definitely want to include those. I didn't discover them because they don't show up until you've selected the region. For extract to method, I understand that you want the user to have selected the region, but for extract to variable, it should IMO work when you're just on the same line:
where
Which isn't useful to me. What I'd expect (the way IDEA works):
Good idea. I've included the deps browser, the symbols browser and the error browser in my demo. It looks grand. Is there a way to scale the icons according to text height? They're a bit too big in my setup:
Thanks for the reminder.
So cool! Talking about tests. Is there away to use the JUnit 4 test runner and not JUnit5/Vintage for Junit4 tests? |
I will try it on my side.
Place the cursor on
To elaborate a bit more - everything that does not work flawlessly should be reported. I am not con
I use
The new test runner I am writing now will distinguish junit 4/5/testng and it will solve that issue. But still, IMO we should solve the issue for the current runner(e. g. report it upstream or introduce separate command for junit4/junit5 on our side). We should start with a but report on our side. |
I tested on my side and I was unable to reproduce it. Do you do save all files after you create the new class? I think that if you call |
Heya, sorry for the late reply.
I like your attitude.
Thanks, that looks a bit better. Still think some icons (the one with white background for java files and the yellow for warnings) are a tad too cartoonish, but I guess that's what icon themes are for 😄
Thanks for the tip. That works.
Yes, that seems (so far) to solve all my problems with new classes and interfaces. It's much smoother now that I know this caveat. |
Yes - I have used the icons from vscode - we will do all-the-icons theme one day - emacs-lsp/lsp-treemacs#18
Good. |
Heya,
sorry to bother you again, but
dap-java
has stopped working for me and I cannot figure out why.In a working
lsp-java
project wheredap-java
has worked pretty well the last month, I now get this whenever I doM-x dap-debug
→ Attach → 5005:Output in
*Messages*
:I've updated the language server with
M-x lsp-java-update-server
, butvscode.java.startDebugSession
is still apparently not available.Versions:
The text was updated successfully, but these errors were encountered: