Go to Post Don't take my questions negatively, I just hold drive trains to a ridiculous standard. - AdamHeard [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-15-2018, 12:30 PM
BrianAtlanta's Avatar
BrianAtlanta BrianAtlanta is offline
Registered User
FRC #6829 (Ignite Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Atlanta, GA
Posts: 150
BrianAtlanta is just really niceBrianAtlanta is just really niceBrianAtlanta is just really niceBrianAtlanta is just really nice
VS Code on Raspberry Pi 3 B+

I've seen some write-ups on getting VS Code running on a Pi. I was able to get it running last night, but it appears I'm having a problem with the Language Support for Java by Red Hat (0.9.0). It appears to be when intellisense is kicking in. I was curious if anyone else has VS Code with a Java extension working on a Pi?

FYI: Looking at a Pi solution, since I want to setup a programming lab for training. Our Makerspace and team are offering classes to nearby teams, so the pi solution makes a setup of 10-20 stations cost effective.

If you're interested in the error I'm getting, here they are....

Problem with codeComplete for file://....test.java
null
java.lang.IllegalArgumentException
at sun.nio.fs.UnixPath.getName(UnixPath.java:321)


Also this too:


Request textDocument/codeLend Failed.
Message: Internal error, please look at the server's logs.
Code: -32603

Last edited by BrianAtlanta : 05-15-2018 at 01:04 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-15-2018, 12:37 PM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,560
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: VS Code on Raspberry Pi 3 B+

This is a neat idea. I have nothing to add to help with troubleshooting it but I'd love to see someone build a raspbian image with all the FRC bits installed if that's possible or a setup script to make that happen. Would be kinda cool.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #3   Spotlight this post!  
Unread 05-15-2018, 12:46 PM
BrianAtlanta's Avatar
BrianAtlanta BrianAtlanta is offline
Registered User
FRC #6829 (Ignite Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Atlanta, GA
Posts: 150
BrianAtlanta is just really niceBrianAtlanta is just really niceBrianAtlanta is just really niceBrianAtlanta is just really nice
Re: VS Code on Raspberry Pi 3 B+

I think I'm close, at least I hope I'm close. I first started on a Pi Zero, but once you have to deal adapters for the micro connections, the price difference between the Zero and the 3 isn't that great. Plus with the Pi3, I'll install OpenCV and we can teach vision processing on the same platform.

So, one thing that surprised me was extensions. The first Java extension I tried to install (by microsoft) wouldn't install. So, maybe some extensions won't work on the Pi. Hoping to get around that.

Maybe if I can get this working, I might have some pain points for the wpilib devs to think about. I'm looking about $125-150 per station if I get it working.

Last edited by BrianAtlanta : 05-15-2018 at 12:52 PM.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-15-2018, 02:29 PM
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,189
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: VS Code on Raspberry Pi 3 B+

A lot of VS Code extensions depend on native code. For the C++ one, there is only support for Linux x64, windows and mac. It is highly unlikely arm support will be added to that. So for C++, getting intellisense and debugging support on a Pi won't be possible. For Java, I'm not surprised it doesn't work on the Pi. The Pi isn't officially supported by VS Code, so none of the extensions are tested against it.

For the new WPILib extensions, we have everything written in TypeScript, so in theory everything would work. But we are unlikely to add that to our official testing and support, for the reason of VS Code itself isn't supported on the Pi.

The Pi also has issues with low amounts of memory. Both VS Code and Gradle require a decent amount of memory, and through my independent testing, Gradle will occasionally crash on the Pi because it runs out of ram. We don't have any control over the memory usage of these components, so there is likely not much we can do to solve the crashes.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-15-2018, 03:20 PM
BrianAtlanta's Avatar
BrianAtlanta BrianAtlanta is offline
Registered User
FRC #6829 (Ignite Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Atlanta, GA
Posts: 150
BrianAtlanta is just really niceBrianAtlanta is just really niceBrianAtlanta is just really niceBrianAtlanta is just really nice
Re: VS Code on Raspberry Pi 3 B+

Quote:
Originally Posted by Thad House View Post
The Pi also has issues with low amounts of memory. Both VS Code and Gradle require a decent amount of memory, and through my independent testing, Gradle will occasionally crash on the Pi because it runs out of ram. We don't have any control over the memory usage of these components, so there is likely not much we can do to solve the crashes.
Thad, Thanks. That's the info I was looking for.

Marshall. I told you I was close. Oh well, at least I know.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:21 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi