PathWeaver icon indicating copy to clipboard operation
PathWeaver copied to clipboard

Weird character encoding

Open MeechaPooch opened this issue 3 years ago • 3 comments

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

  • OS: 2020 M1 Mac
  • Java version: x86_64 built Java 11

MeechaPooch avatar Nov 22 '22 23:11 MeechaPooch

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

Starlight220 avatar Nov 23 '22 07:11 Starlight220

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

MeechaPooch avatar Nov 24 '22 04:11 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.

Starlight220 avatar Nov 24 '22 04:11 Starlight220