PathWeaver
PathWeaver copied to clipboard
Weird character encoding
Describe the bug
The text in pathweaver and other gradle apps has weird symbols instead of text
To Reproduce
run ./gradlew pathweaver in an FRC project
Expected behavior
Normal text
In reality
wonky text

Desktop
- OS: 2020 M1 Mac
- Java version: x86_64 built Java 11
Does PathWeaver display text properly if launched in other ways? What's the OS language?
It does not, but i figured out a solution! I ran it with AdoptOpenJDK 16 instead of OpenJDK 11 (both built for x86), and the text is alright now! ref: https://www.chiefdelphi.com/t/gradle-app-text-is-scuffed-pathweaver-shuffleboard/418426/3?u=meechapooch
There should be a WPILib-installed JDK at ~/wpilib/YEAR/jdk, does running through it work properly? Both VS Code and gradle should be using that JDK to run the tools, so the question is whether a different JDK was somehow used on your machine, or the WPILib-installed JDK causes this issue.
EDIT (for continuity from CD post): WPILib wasn't installed, so the tools were launched with whatever JDK was in JAVA_HOME or on the PATH.