redhat-developer / redhat-developer/vscode-java
Document how to work with a non-"project" set of files
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 2.3k
- Forks
- 546
- Merge moyen
- 20 h 1 min
- PR mergées (30 j)
- 11
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Ouvrez le README et localisez la section Troubleshooting. Ajoutez une note concise expliquant l’avertissement concernant le package lorsque des fichiers Java sont utilisés en dehors d’une structure de projet, notamment le rôle d’un dossier src, puis vérifiez que les nouvelles indications correspondent aux étapes de reproduction signalées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java, vscode
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100