Home > Software engineering >  Project has no explicit encoding set
Project has no explicit encoding set

Time:04-17

enter image description hereI have been using vscode with no problems, until recently. Now no errors show up, some variables never change color. And i have a constant error message: "Project ... has no explicit encoding set". I have no idea what i need to do. All help is greatly appreciated!

CodePudding user response:

I have experienced the same problem after the Language Support for Java by Red Hat extension had been updated to v1.5.0. No code errors were reported and only the message about no explicit encoding was shown in the Problems tab.

I was able to resolve the issue by clicking the "..." next to "Java Projects" in the Explorer view, and selecting "Clean Workspace", then "Restart and delete". After the application had reloaded, the issue was gone and language server started working as usual.

CodePudding user response:

Just a few minutes earlier, i was also having the same problem.
Here is how i fixed it :
Click on the Gear Icon.
Click on Settings.
Click on Command Palette.
Type Clean java language server workspace.
Hit Restart and Delete.
After reloading is done, the issue will be fixed.

CodePudding user response:

I believe this is a bug caused by v1.5.0 Red Hat's Language Support for Java extension. Nothing I tried fixed it, so the best solution may be to wait for the extension developers to fix it.

You can follow the issue on GitHub https://github.com/redhat-developer/vscode-java/issues/2416

  • Related