Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-18-2021, 03:27 AM
|
#1
|
LQ Newbie
Registered: Nov 2021
Posts: 6
Rep: 
|
Visual Studio Code issues
Hi all, trying to build my firmware and I just seem to be having no end of issues. I am running on Linux with Visual Studio Code and PlatformIO. The project won't load properly, and if I can load it, it reports all sorts of issues.
I have tried to uninstall Code (purged with sudo), I have also deleted the folder ~./PlatformIO and restarted the pc.
If I install code, it goes straight back to the project I last had open, so it's not remove everything.
Can anyone advise and assist?
|
|
|
11-18-2021, 05:05 AM
|
#2
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,756
|
Such is the nature of NSC. Like any other program from that company it is a stand-in to use up people's time and prevent discovery of working software. There are a lot of reasonable choices which it distracts from: Mu, Kate, Geany, and even the Arduino IDE, to name just a few, but more information is needed.
If you can provide more information about the nature of the project you are working on we can steer you towards the right tool instead.
|
|
|
11-18-2021, 06:55 AM
|
#3
|
LQ Newbie
Registered: Nov 2021
Posts: 6
Original Poster
Rep: 
|
Quote:
Originally Posted by Turbocapitalist
Such is the nature of NSC. Like any other program from that company it is a stand-in to use up people's time and prevent discovery of working software. There are a lot of reasonable choices which it distracts from: Mu, Kate, Geany, and even the Arduino IDE, to name just a few, but more information is needed.
If you can provide more information about the nature of the project you are working on we can steer you towards the right tool instead.
|
Hi Turbo,
I am building Marlin software for my 3D printers, they use BigTreeTech SKR v1.3 motherboards or MakerBase SGEN_L motherboards, and I am using the PlatformIO environment to upload.
When I choose the build option, often it builds and compiles fine, although I am seeing more issues now. However when they build OK, I tell it to upload and it should detect no Serial devices and then move onto external USB devices, sadly it replies and calls "no upload port" available.
|
|
|
11-18-2021, 07:03 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,485
|
Quote:
Originally Posted by jeebo
If I install code, it goes straight back to the project I last had open, so it's not remove everything.
|
You can usually remove the software, but that will not remove your personal settings. Personal config usually stored in your home dir (in a dotted dir, like .visualstudio)
You need to remove that by hand (if you really want to purge it completely).
|
|
|
11-18-2021, 07:06 AM
|
#5
|
LQ Newbie
Registered: Nov 2021
Posts: 6
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
You can usually remove the software, but that will not remove your personal settings. Personal config usually stored in your home dir (in a dotted dir, like .visualstudio)
You need to remove that by hand (if you really want to purge it completely).
|
Absolutely, I was able to remove the ~/.PlatformIO from the home directory, but I am still learning my way around linux - I don't know where else such settings may reside for Code or PlatformIO
|
|
|
11-18-2021, 07:18 AM
|
#6
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,756
|
Another place to look for configuration files would be under ~/.config/ and one of the subdirectories there might have a relevant name and contain files for the program in question.
However, there are better IDEs out there, starting with Geany and working up. Don't forget that GNU/Linux itself is an IDE. That said, have you tried Arduino's IDE? https://www.arduino.cc/en/software
|
|
|
11-19-2021, 07:05 AM
|
#7
|
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,466
|
Hi
Visual Stdio Code stores the settings in ~/.config/Code
|
|
|
11-19-2021, 04:15 PM
|
#8
|
Senior Member
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,852
|
Quote:
Originally Posted by jeebo
Absolutely, I was able to remove the ~/.PlatformIO from the home directory, but I am still learning my way around linux - I don't know where else such settings may reside for Code or PlatformIO
|
On Linux you will likely find that there's a directory "${HOME}/.vscode". That is probably where the provious project settings are being saved. Removing that subdirectory -- "rm -frv ${HOME}/.vscode" -- should to do the trick.
I recently had to rebuild a VM on my work laptop and restoring that subdirectory from my pre-rebuild backup saved me some time having to reload the VSCode extensions and their settings after re-installing the editor on the new VM (to a slightly newer version).
If you really want to nuke the editor's settings, installed extensions, etc. that'd be where I'd start.
Hope this helps...
|
|
|
11-19-2021, 05:29 PM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,372
|
|
|
|
11-21-2021, 04:15 AM
|
#10
|
LQ Newbie
Registered: Nov 2021
Posts: 6
Original Poster
Rep: 
|
So I went through and did a mass clearout. purged code, purged IO, ran a search across linux for vscode, visual studio, platformio and then deleted all of it.
Reinstalled it and there the problem is again! its just not having it! tried to install code on Windows and that failed (stupid microsoft!) so back to square one and looking for any alternatives that will do the job properly. Will start going through your list shortly and seeing what works.
|
|
|
11-24-2021, 04:36 AM
|
#11
|
LQ Newbie
Registered: Nov 2021
Posts: 6
Original Poster
Rep: 
|
For the benefit of anyone who comes across this issue later, I have fixed it - but I am unsure of what exactly fixed it...
Purged and uninstalled all of Visual Studio.
Removed all PlatformIO folders (hidden in my Home folder).
Removed all remaining Visual Studio folders (hidden again)
Restarted PC
Download and install the latest version of Python
Download and install the latest version of Visual Studio Code (system installer, not user installer)
Download and install the C++ package extension for VS Code
Download and install the Python extension for VS Code
Download and install the PlatformIO extension.
Restarted PC
Ensure that the upload_port is set to the right port, I set this to /dev/sda1
Code:
[env]
framework = arduino
extra_scripts = ${common.extra_scripts}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
monitor_speed = 250000
monitor_flags =
--quiet
--echo
--eol
LF
--filter
colorize
--filter
time
upload_port = /dev/sda1
In the end, it started working. I am unsure what the correct fix was but I was then able to upload the code to the SD card in a USB adapter.
Last edited by jeebo; 11-24-2021 at 04:38 AM.
|
|
|
All times are GMT -5. The time now is 01:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|