so I recently got a MacBook (intel version) and I’m wondering if its possible to run WPILib on visual studio code or do I need a different code editor.
I have the extensions and it all works fine other then a few issues:
it keeps saying I need java 11 even though I already installed it
in this screenshot there are examples of mistakes but the file name doesn’t change color.
I followed the WPILib website instructions for Mac but I can’t figure out why it still has errors.
for anyone using or tried macOS to code for FRC I would really appreciate help figuring out if I am doing something wrong or if it is just macOS and if there is anyway I can code for FRC on my MacBook.
It’s important to use the WPILib installer installed copy of Visual Studio Code, and not just try to install the WPILib extension yourself into some other copy. This configures a number of things so that it works properly (eg points to the WPILib installed copy of Java 17). Re-run the installer if necessary, and when prompted to install Visual Stufio Code, do so, and then run that version.
I was doing this when I started FRC as I had a macbook. I ended up just buying a external harddrive and putting windows on it and booting from there as it solved a lot of the problems I was having and gave me plenty of space for software
I used WPILib with the Apple Silicon Mac on VS Code before. I didn’t really meet the bugs you had above.
But my team uses a Windows PC for all the testing and serving as driver station. Mac is just for temporally checking and debugging.
I use IntelliJ on my macbook for WPIlib and havent had any problems, but then again I also use IntelliJ on the laptop my team uses for robot programming so i’m used to it.