Skip to content

[FlatPack]: "adafruit-nrfutil": Executable file not found in $PATH #2115

Closed
@rei-vilo

Description

@rei-vilo

Describe the problem

Arduino IDE 2.0 FlatPak and AppImage

/home/reivilo/.arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-objcopy -O ihex /home/reivilo/.var/app/cc.arduino.IDE2/cache/arduino/sketches/5CFF790619DC8A9CFB4AC4A8A887325E/Blink.ino.elf /home/reivilo/.var/app/cc.arduino.IDE2/cache/arduino/sketches/5CFF790619DC8A9CFB4AC4A8A887325E/Blink.ino.hex
adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application /home/reivilo/.var/app/cc.arduino.IDE2/cache/arduino/sketches/5CFF790619DC8A9CFB4AC4A8A887325E/Blink.ino.hex /home/reivilo/.var/app/cc.arduino.IDE2/cache/arduino/sketches/5CFF790619DC8A9CFB4AC4A8A887325E/Blink.ino.zip
exec: "adafruit-nrfutil": executable file not found in $PATH

Compilation error: exec: "adafruit-nrfutil": executable file not found in $PATH

With Arduino IDE 1.8.19

adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application /tmp/arduino_build_731695/Blink.ino.hex /tmp/arduino_build_731695/Blink.ino.zip
Zip created at /tmp/arduino_build_731695/Blink.ino.zip
/home/reivilo/.arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-size -A /tmp/arduino_build_731695/Blink.ino.elf
Sketch uses 21228 bytes (2%) of program storage space. Maximum is 815104 bytes.
Global variables use 3096 bytes (1%) of dynamic memory, leaving 234472 bytes for local variables. Maximum is 237568 bytes.

To reproduce

  • Select Adafruit Feather nRF52840
  • Launch Verify

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.

$ adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application /home/reivilo/.var/app/cc.arduino.IDE2/cache/arduino/sketches/5444C4324CC846FCD36DD91858EE6709/Blink.ino.hex /home/reivilo/.var/app/cc.arduino.IDE2/cache/arduino/sketches/5444C4324CC846FCD36DD91858EE6709/Blink.ino.zip
Zip created at /home/reivilo/.var/app/cc.arduino.IDE2/cache/arduino/sketches/5444C4324CC846FCD36DD91858EE6709/Blink.ino.zip

$ echo $PATH
/home/reivilo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/reivilo/Applications:/home/reivilo/Applications/bin:/home/reivilo/.local/bin:/home/reivilo/Projets/Zephyr/zephyr:/usr/sbin

$ which adafruit-nrfutil
/home/reivilo/Applications/adafruit-nrfutil

Also tested, to no avail

  • Add export PATH=$PATH:/home/reivilo/Applications to .bashrc
  • Add export PATH=$PATH:/home/reivilo/Applications to .bash_profile
  • Set sudo flatpak override cc.arduino.IDE2 --filesystem=/home/reivilo/Applications

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    conclusion: resolvedIssue was resolvedos: linuxSpecific to Linux operating systemtype: imperfectionPerceived defect in any part of projecttype: supportOT: Request for help using the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions