redhat-developer / redhat-developer/vscode-java
Package Does Not Exist Error; Project builds and Runs OK.
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
Building a simple HelloWorld app to test importing an external .JAR file
The Jar was built with an earlier version of the JDK but builds on the command line without issues.
The linter indicates that the import class "Media" does not exist even though the jar file has been referenced.
The App runs OK without any errors. Where are these errors being reported from? It looks as it's a Red Hat response.
Environment
- Operating System: Windows 10
- JDK version: 17.0.13
- Visual Studio Code version: 1.94.2
- Java extension version: 1.35.1 (Language Support for Java by Red Hat.
Steps To Reproduce
Just load the folder containing the HelloWorld.java file into VSCode and the errors show up straight away.
Run the app with or without the debugger and it runs ok.
Source, (java file):
HelloWorld.txt
settings:
settings.json
Current Result
indicates that package does not exist event though it builds ok.
Expected Result
no linting errors.
Additional Information
let me know what else I can provide
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia caricando la cartella in VS Code con il file sorgente HelloWorld.java e settings.json allegati, quindi esamina gli errori e Log.pdf. Confronta le diagnostiche dell'editor relative ai package non trovati con il comportamento della build e dell'esecuzione dalla riga di comando. Il lavoro è completato quando l'estensione Java riconosce il JAR esterno e non compaiono errori di linting corrispondenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100