redhat-developer / redhat-developer/vscode-java
Project does not build due to build path being incomplete
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.3k
- Forks
- 546
- Merge medio
- 20 h 1 min
- PR fusionados (30 d)
- 11
Descripción
None of my Java projects are being built properly by the language server.
All my projects are failing, even previously working projects
Fundamentally, I'm getting JRE errors such as The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files.
I'm unable to open standalone Java files, vanilla Java projects and packages, or Maven projects properly.
Here are some things I've tried:
- Cleaned and restarted the language server workspace multiple times.
- Set up the runtimes properly according to the guide.
- Set
JAVA_HOME,java.hometo jEnv symlinks.jenv/versions/14.0and directly to the JDK installations themselves/usr/local/Cellar/openjdk/14.0.1/. - Repeated the above steps with Java 11 and Java 14.
- Repeated the above steps with Java 11 Homebrew Cask installation of OpenJDK
/Library/Java/JavaVirtualMachines/... - Full wipe of VSCode and reinstalled everything, with the same results.
Additional Informations
I'm using jenv to manage my JDKs, and I've enabled the export and maven plugins. Compilation with javac and running with java works just fine.
Environment
- Operating System: macOS 10.15.6
- JDK version: 11.0.8, 14.0.1
- Visual Studio Code version: 1.48.2
- Java extension version: 0.65.0
Steps To Reproduce
- Open a new
.javafile and define a class.
Log files
redhat.java/client.log.2020-08-26
client.log
Current Result
Plugin is unable to find JRE classes which causes compilation errors for the server.
Expected Result
Plugin should be able to link to JRE classes and compile properly, providing Intellisense without any errors.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con el log referenciado redhat.java/client.log.2020-08-26 y reproduce el fallo abriendo un nuevo archivo .java independiente; después, rastrea por qué el servidor de lenguaje no puede enlazar las clases de JRE. Se considera terminado cuando los archivos independientes, los proyectos vanilla y los proyectos Maven compilan con IntelliSense y sin errores de resolución de JRE.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, typescript, vscode
- Área
- developer-experience, tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 25/100