wpilibsuite / PathWeaver

Desktop application for generating motion paths
Other
65 stars 68 forks source link

Weird character encoding #282

Open MeechaPooch opened 1 year ago

MeechaPooch commented 1 year ago

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 image

Desktop

Starlight220 commented 1 year ago

Does PathWeaver display text properly if launched in other ways? What's the OS language?

MeechaPooch commented 1 year ago

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

Starlight220 commented 1 year ago

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.