question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version 1.2.0 doesn't detect JDK installed via Homebrew well

See original GitHub issue

I’ve been using the extension for some time now. A couple of days ago, I’ve updated it to 1.2.0 and since then, when opening a study project it would report errors for everything.

Some of the errors include not finding Object’s default no args constructor, failing to import basic core classes from Java (i.e. java.util, java.date), and so on.

I’ve already removed my JDK 17 installation, replacing it with JDK 11, and that had no effect. Only fix I’ve found is to rollback the extension to the previous version (1.1.0, from 3w ago).

Some screenshots are attached to show the errors I’m facing.

Environment
  • Operating System: macOS 12.1 Monterey arm64 (Apple Silicon)
  • JDK version: openjdk version “17.0.1” 2021-10-19, installed via Homebrew
  • Visual Studio Code version: 1.63.2 (Universal)
  • Java extension version: 1.2.0
Steps To Reproduce
  1. Clone example project
  2. Open project folder in VS Code
  3. Open any .java file

Example project: https://github.com/brunovieira97/alura-novidades-java

Logs: Logs.zip

Current Result

image image image image

Expected Result (v1.1.0)

image

Additional Informations
  • Reinstalling the extension had no effect
  • Tried removing VS Code completely and reinstalling as well
  • As previously stated, I removed openjdk via brew and installed openjdk@11, properly linking it. No effect at all
  • Log for "Language Support for Java (Syntax Server) shows this message, both with 1.1.0 and 1.2.0:
[Error - 13:29:00] Connection to server got closed. Server will not be restarted.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
brunovieira97commented, Dec 23, 2021

@testforstephen was able to test today and it’s working as expected now. Thank you for fixing this so fast, everyone!

1reaction
testforstephencommented, Dec 22, 2021

@brunovieira97 https://download.jboss.org/jbosstools/jdt.ls/staging/java-1.3.0-491/ has fixed this issue, pls try to download the new extension version java-darwin-arm64-1.3.0-491.vsix for Apple M1, and manually install the vsix to VS Code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install Java JDK on macOS - Mkyong.com
This article shows how to install Java JDK on macOS, Homebrew package manager, manual installation, and switch between different JDK ...
Read more >
Why does IntelliJ not accept /usr/local/opt/openjdk (installed ...
In the "Setup JDK" dialog when I add a JDK and choose the path "/usr/local/opt/openjdk" (which is where brew installed openjdk).
Read more >
How to Install JDK (on Windows, Mac OS, Ubuntu) and Get ...
How to Install JDK 17 (on Windows, macOS & Ubuntu) and Get Started with Java Programming. The Java Development Kit (JDK), officially named...
Read more >
Fetching and Building OpenJDK Mission Control – Marcus Hirt
Hi Marcus,. I've been using Oracle and BEA JMC for years, but I can't find any plug-in for free version of JMC (7.1...
Read more >
Allure Framework
Open the demo version to see what an Allure report looks like. ... For Mas OS, automated installation is available via Homebrew.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found