VSCode is deprecating using Arduino IDE so I decided to try to use the new thing. Installation is failing due to what appears to be a file that ended up with some weird attributes when uncompressed under Linux:
It appears to be a combination of the file having the extent attribute set when uncompressed and having spaces on its name.
@bigjosh@jbobrow any chance you can take a look at this and possibly get it sorted up? That file is not technically even required to be there as it just serves to illustrate what the code is doing.
I had this issue a little bit ago I believe, it isn’t a great idea in general but what worked for me is to run it with sudo arduino, just make sure when you save it doesn’t save to a root folder.
Yeah, but having to install as root is not really a good solution to anything as there are several implications to doing that. This is definitely an easy fix in any case.
I’ve added the file https://github.com/bigjosh/Move38-Arduino-Platform/releases/download/1.3.1/Move38-Arduino-Platform-main.zip to the release so now either URL should work.
RE: Read-only error
Yea, this is a problem on Linux and OSX. I tracked it down to the extraction library they used for the Arduino-CLI…
I will clear these attribs on the next board manager push.
I am going to go there hit my head on the wall and will be right back. I figured out the issue and it was one of those in your face things:
$ ls -la
total 92
dr-xr-xr-x 2 bga bga 4096 Feb 22 23:16 .
drwxrwxr-x 3 bga bga 4096 Mar 17 13:37 ..
-rw-rw-r-- 1 bga bga 11812 Mar 17 13:44 BrokenRainbow.ino
-rw-rw-r-- 1 bga bga 73094 May 28 2022 Broken-Rainbow-Map.png
Check the current directory (“.”) permissions. It has no write permissions for the user, group or others so if you try to remove the files inside it will fail as you can not remove the directory entry. The solution?
chmod ugo+w .
@bigjosh that should be an easy fix. Just make sure the directory has the correct permissions (probably in your repository).