redhat-developer / redhat-developer/vscode-java
VSCode Java doesn't handle .classpath files properly
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
Environment
- Operating System: Windows
- JDK version: 1.8.0_171
- Visual Studio Code version: 1.25.1
- Java extension version: 0.29.0
Steps To Reproduce
- Copy, write, or otherwise create an Eclipse-style
.classpathfile, specifying asrcdirectory. - Create an empty
foo.javafile in that directory
Current Result
Popup: foo.java isn't on the classpath.
Expected Result
No popup, working go-to-definition and similar project handling.
Additional Information
It is not entirely clear from the website that 'More information' leads to what precisely needs to be copied for the vscode-java to properly build the classpath, so if the answer turns out to be "you need more than just the .classpath", the issue just changes to "the documentation on 'Classpath is incomplete' does not provide sufficient information to actually resolve the issue."
(Also, note that the error is different from that one given when there is no classpath present. vscode-java clearly sees that there's a file there, but isn't reading it correctly.)
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 bugrepro.zip adjunto y reproduce el comportamiento utilizando el archivo .classpath de estilo Eclipse, un directorio src y un foo.java vacío. Inspecciona cómo la VSCode Java extension gestiona el .classpath y la información “Classpath is incomplete”; se considera terminado cuando el popup ya no aparece y go-to-definition funciona para el proyecto.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, typescript
- Á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
- 38/100