-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 not working #1446
Comments
Hello @gavignon. Can you do 3 things...
|
This looks like a duplicate of #1453 and so I'm going to close this issue as we will be fixing this bug at some point this month. |
Hello @stephen-carter-at-sf, I saw that #1453 was fixed so I tested again but I still have the error. Here are what you requested:
Could you please help me ? |
@gavignon , the bug has been resolved in our |
@jfeingold35 Thanks! Do you know if it has been published ? I tried yesterday on the latest version (3.25.0) and had the same issue. |
@gavignon , yeah, it should be working now. Question: Have you tried deleting the |
@jfeingold35 It still doesn't work with 3.25.0, but on @latest-beta it's working (4.2.0), will it be fixed in the @latest ? |
@jfeingold35 Would it be fixed in a 3.25.X release ? We tried to use the 4.2.0 version but we have other blocking issues like this one: #1439, so we are blocked for now |
@gavignon , we didn't push the fix to 3.x, so that's unlikely. We'll try to get this sorted out as soon as we can. In the meantime, we appreciate your patience. |
@gavignon soon v4 will be the standard. But if you need to remain on v3 for a while.. can you first try the following workaround:
Meanwhile, I'll check with our project manager to see if we want to backport this fix to our last v3 version (3.26.0) that is going out at the end of the month so that you might be able to just use that for now while waiting for PMD folks to fix your issue. |
OK, yeah just got approval. We'll make sure this fix also goes out with 3.26.0 |
Description:
When having the environment variable JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8, the scanner run command is not working, resulting in this error:
Error (1): Java version 8 isn't supported. Install Java 1.8 or later.
Steps To Reproduce:
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
sf scanner:run --engine pmd --target force-app/main/default/classes --pmdconfig ~/dev/ruleset.xml -s 3
Expected Behavior:
Command executed succesfully with the results of the scan
Workaround:
Remove the environment variable JAVA_TOOL_OPTIONS
Urgency:
Very High
The text was updated successfully, but these errors were encountered: