Closed
Description
Describe the problem
I'm running Ubuntu and I am following the github guide on how to compile Arduino IDE, but yarn
is failing.
I installed all the dependencies needed that are listed on the above page, as well as on Theia's prereqs guide
Issue
When executing yarn
in the repo root, it fails wih the following:
arduino-ide-extension: task: Failed to run task "go:build": exit status 127
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> Lerna (powered by Nx) Running target "prepare" failed
Tasks not run because their dependencies failed or --nx-bail=true:
- electron-app:prepare
Failed tasks:
- arduino-ide-extension:prepare
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
For some reason it seems go:build
fails? I'm running go1.18.1
. Do I need a different go version? Also, why isn't go documented as a prereq anywhere?
Expected
Succesfully run commands and move on to building, running the project, etc.
Prereq versions
$ lsb_release -d
Description: Ubuntu 22.04.1 LTS
$ pkg-config --version
0.29.2
$ gcc --version
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
$ make --version
GNU Make 4.3
$ node --version
v18.13.0
$ npm --version
8.19.3
$ yarn --version
1.22.19
$ go version
go version go1.18.1 linux/amd64
To reproduce
- Checkout arduino-ide
- Install all dependencies listed (node >16 & <17, gcc, pkg-config, make, native-keymap, keytar, etc.)
- Run
yarn
~ Fails with the above errors
Expected behavior
- Expected to successfully finish the yarn install step and move on to building and running the projects
Arduino IDE version
branch=main;commit = eb1f247
Operating system
Linux
Operating system version
Ubuntu 22.04.1 LTS
Additional context
No response
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