-
-
Notifications
You must be signed in to change notification settings - Fork 435
[FlatPack]: "adafruit-nrfutil": Executable file not found in $PATH #2115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FlatPack IDE2 // CC @joshuag1000 |
Hello @rei-vilo, The cause of this issue (for the flatpak version) is due to the fact that flatpak binaries are run in a sandbox (by design) and so therefore only have limited access to your host system. This includes the path variable. flatpak run --command="bash" cc.arduino.IDE2 Which will drop you into a command line interface within the sandbox so running: echo $PATH Will return the $PATH variable the IDE uses. For the library to work on flatpak you will either need to put the binary in a folder that is already in the flatpak path or modify the $PATH variable for the app using What i will do in the mean time is look at either including this binary and library within the flatpak install so the library will work in the future or providing a way for you to give the IDE easy access to the binary if you installed it yourself. However, I cannot give an eta on this other than ASAP. I do not have a huge amount of knowledge on AppImage applications, however, I do know that they also run within a sandbox and so the sandbox is likely also the issue as to why the external binary cannot be found. A potential solution for now that probably requires the least amount of work would be to download the zip version of the IDE (which can be downloaded here) as the zip version does not run on any kind of sandbox. Kind regards, |
@rei-vilo with regards to flatpak this issue should be fixed. To use the Adafruit nrfutil boards I have included the adafruit-nrfutil binary within the release. This means to use these boards all you need to do is add the URL Adafruit provides to the board manager and install the board. Please could you double check that this update to the flatpak release fixes your issue (only on the flatpak version as I don't maintain the appimage) and just let me know. Many thanks, |
@joshuag1000 Thank you very much for your detailed answer. FlatPak sandbox Checking
Despite adding Updated Arduino IDE 2.0 FlatPak I downloaded the new FlatPak release and build completes successfully. So I am closing this ticket as solved. |
Seeing how you solved the problem and cleaned up the open issues was a pleasure. Thank you for both of you |
For those of you who installed Arduino IDE using snap, please reinstall a version from the Arduino's website. I lost hours and hours on this, installed adafruit nrfutil and used symlinks, virtual environments and changing PATH variable and all and it never worked. I don't know what is wrong with the snap version of Arduino, but it seems that it has some trouble with the PATH. After installing the appimage, I never had this error again |
Describe the problem
Arduino IDE 2.0 FlatPak and AppImage
With Arduino IDE 1.8.19
To reproduce
Expected behavior
Successful build
Arduino IDE version
2.1.0 FlatPak and AppImage
Operating system
Linux
Operating system version
Linux 450-G5 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64 GNU/Linux
Additional context
Running the command in a Terminal succeeds.
Also tested, to no avail
export PATH=$PATH:/home/reivilo/Applications
to.bashrc
export PATH=$PATH:/home/reivilo/Applications
to.bash_profile
sudo flatpak override cc.arduino.IDE2 --filesystem=/home/reivilo/Applications
Issue checklist
The text was updated successfully, but these errors were encountered: