redhat-developer / redhat-developer/vscode-java
Document how to work with a non-"project" set of files
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 546
- Ø Merge
- 20 Std. 1 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
I'm very new to Java development and am learning by simply creating a few ad hoc files. I'm following a book that uses a folder/package structure of "ch01/sec01" which I mimicked in my VSC folder structure. I noticed that the plugin would always give an error for:
package ch01.sec01;
Saying that the package was actually "" instead. I ignored this error and just carried on but it bothered me. :) A friend pointed out that if I moved my files into a "src" folder, this would go away, and apparently this is the default if you make a new Java project, but as I was just playing around and not really doing a 'project', I never knew this was an issue.
My recommendation is that a quick note be adding to the Troubleshooting section of the readme.
Steps To Reproduce
- Work with Java files w/o first making a Java project
- Note that even though you have the right package, it gets flagged as an error.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Öffne die README und suche den Abschnitt Troubleshooting. Füge eine kurze Anmerkung hinzu, die die Paketwarnung erklärt, wenn Java-Dateien außerhalb einer Projektstruktur verwendet werden, einschließlich der Rolle eines src-Ordners, und überprüfe anschließend, dass die neuen Hinweise mit den gemeldeten Reproduktionsschritten übereinstimmen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, vscode
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 45/100