You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected 'Project xxx has no explicit encoding set' warnings #2416
In a Gradle project with subprojects, each subproject directory has a " Project 'xxx' has no explicit encoding set" warning. This appears to have started with version 1.5.0 of the extension.
Environment
Operating System: macOS 12.3.1
JDK version: OpenJDK 64-Bit Server VM Temurin-17.0.2+8 (build 17.0.2+8, mixed mode)
Visual Studio Code version: Version: 1.67.0-insider Commit: a9288be67bab4e9c4dbe62207f01fafc2bdaadcb
Java extension version: 1.5.0
Steps To Reproduce
Create basic project with Groovy DSL with gradle init
Add empty subproject directory in project
Add subproject directory to include in settings.gradle
Hi there. Sorry to ping for a seemingly closed issue, but this problem seems to be back for those using the default build system. ...Am I doing something wrong?:
Activity
snjeza commentedon Apr 15, 2022
Related Eclipse bug - https://bugs.eclipse.org/bugs/show_bug.cgi?id=479451
EccentricVamp commentedon Apr 16, 2022
The warning is appearing for me as well
Environment
mishi321 commentedon Apr 17, 2022
Similar gradle multi modules, waiting for solution.
snjeza commentedon Apr 18, 2022
A workaround:
You can create the <your_project>/.settings/org.eclipse.core.resources.prefs file with the following contents:
jmihalich commentedon Apr 19, 2022
Verified the above workaround fixes the issue, until we get the patch.
snjeza commentedon Apr 19, 2022
You can try https://github.com/snjeza/vscode-test/raw/master/java-1.5.7.vsix
See the
java.project.encodingproperty - 74ab5c4#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R204a01fe commentedon Apr 19, 2022
That fixes it! Thanks, @snjeza!
fbricon commentedon Apr 19, 2022
reopening as the fix hasn't been merged yet.
HaraldKorneliussen commentedon Apr 25, 2022
The suggested workaround causes a followup problem:
Missing Gradle project configuration file: .settings/org.eclipse.buildship.core.prefssnjeza commentedon Apr 25, 2022
@HaraldKorneliussen could you try to clean your workspace Clean the workspace directory ?
michaelmior commentedon Apr 29, 2022
@snjeza I tried the workaround and had the same problem as @HaraldKorneliussen. Cleaning the workspace directory did not solve the issue for me.
snjeza commentedon Apr 29, 2022
@michaelmior could you attach a project sample reproducing the error?
Brahvim commentedon Feb 10, 2024
Hi there. Sorry to ping for a seemingly closed issue, but this problem seems to be back for those using the default build system. ...Am I doing something wrong?: