Skip to content
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

Add more tips to Troubleshooting doc #98

Merged
merged 5 commits into from
Feb 18, 2024
Merged

Conversation

vorburger
Copy link
Contributor

I just had it "not work" again...

... and this is a bunch of things I tried.

No cleaning helped, and then I did an update of the extension (thus the uninstall/reinstall tip), and it worked again.

Which seems very weird, given that there don't seem to be any major changes recently.

The menus were there, the extension was "activated" according to VSC, but it just didn't configure the project.

@guw

Signed-off-by: Michael Vorburger <mike@vorburger.ch>
Copy link

github-actions bot commented Feb 17, 2024

Test Results

 2 files  ±0   2 suites  ±0   5h 51m 9s ⏱️ + 6m 57s
 6 tests ±0   6 ✅ ±0  0 💤 ±0  0 ❌ ±0 
12 runs  ±0  12 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c6c138b. ± Comparison against base commit df47b0c.

♻️ This comment has been updated with latest results.

@vorburger
Copy link
Contributor Author

Is there a way to increase logging verbosity which we could document here?

Where does it actually log when it launches Bazel do to the queries to configure the classpath? That's not in the .log and the client.log-2024* from JDT, right? I don't see anything about that there (even now that magically it works again for me).

I know the Terminal has 2 tabs for Bazel Build Status and Java Build Status - let me amend to add a note to look at that...

@guw
Copy link
Collaborator

guw commented Feb 17, 2024

@vorburger I noticed the missing logging too. I suspect something is not ok with JDTLS SLF4J & Logback setup. I am investigating. Probably worth moving this into a separate topic.

@@ -40,6 +40,8 @@ see [issue #94](https://github.com/salesforce/bazel-vscode-java/issues/94).
1. Close (all of) your VSC windows
1. `killall java` (check that `jps` only shows _Jps_ itself)
1. `cd YOURPROJECT`
1. `rm -rf bazel-*` removes all Bazel related temporary files of course; but this should almost never be required!
1. `rm -rf .eclipse/` removes all files configuring this extension, this normally also isn't required, but just in case
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's too brute force. That's usually never needed. However, occasionally reset of JDTLS via Cmd+Shift+p and then Java: Clean Java Language Server Workspace.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, agreed; sorry, I went a bit crazy there... 😸 I've removed this again now. See what's left?

@vorburger
Copy link
Contributor Author

@vorburger I noticed the missing logging too. I suspect something is not ok with JDTLS SLF4J & Logback setup. I am investigating. Probably worth moving this into a separate topic.

==> #100 (yay, 💯 🚀 )

Signed-off-by: Gunnar Wagenknecht <gunnar@wagenknecht.org>
@guw guw merged commit 463a489 into salesforce:main Feb 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants