team401 / high-key-2024

Other
1 stars 0 forks source link

Implement basic Phoenix Pro Swerve Subsystem #2

Closed linglejack06 closed 1 week ago

linglejack06 commented 3 weeks ago
linglejack06 commented 3 weeks ago

@jkleiber could you help me out with the Java issue? At first, wpilib could not find a java vesion 17 jdk, which I have had installed. Now though it builds the java language server will not start up. The icon just spins forever like its loading and I see no log files.

linglejack06 commented 3 weeks ago

@jkleiber found wpilib logs this is all it says repeatedly: """ 2024-08-22T20:19:00.791Z info: Bad Java version 0 at /Users/jacklingle/wpilib/2024/jdk from JAVA_HOME """

jkleiber commented 3 weeks ago

@linglejack06 my guess would be that you need to set the JAVA_HOME environment variable (looks like wpilib can't find java for some reason).

Is gradle able to build your code from the vscode terminal?

linglejack06 commented 3 weeks ago

@jkleiber i figured that too, but my java home variable was already set, so I then reset it following the path to the wpilib location. Gradle works it's just that the extension seems to not find Java. But I have confirmed that Java exists

linglejack06 commented 3 weeks ago

I have to run gradle build in vscode terminal which works. The command palette build robot code doesn't work

jkleiber commented 3 weeks ago

@linglejack06 if you haven't restarted your computer since installing wpilib, that is worth a try.

Otherwise I'm not really sure. It sounds like you're doing everything correctly and gradle agrees. The WPILib extension seems to be the problem here. If restart doesn't work, I would try to uninstall WPILib and reinstall in as vanilla a way as possible to give it the best chance of working

linglejack06 commented 3 weeks ago

Ok, restarting computer is one thing I haven't tried. I have reinstalled wpilib about seven times though