Skip to content
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

Go prerequisite is not documented in development guide #2499

Open
3 tasks done
NewtronReal opened this issue Aug 29, 2024 · 4 comments
Open
3 tasks done

Go prerequisite is not documented in development guide #2499

NewtronReal opened this issue Aug 29, 2024 · 4 comments
Assignees
Labels
topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project

Comments

@NewtronReal
Copy link

NewtronReal commented Aug 29, 2024

Describe the problem

I couldn't find a build of arduino ide 2 for arm linux distros apart from the rpi unofficial one which has been discontinued since version 2.2. So I tried compiling it my own in my macbook air 2020 m1. And I get the following error.

yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ lerna run prepare
lerna notice cli v7.4.2
lerna info versioning independent

 >  Lerna (powered by Nx)   Running target prepare for 2 projects:

    - arduino-ide-extension
    - electron-app

 ——————————————————————————————————————————————————————————————————————————————————————

> arduino-ide-extension:prepare

arduino-ide-extension: yarn run v1.22.22
$ yarn download-cli && yarn download-fwuploader && yarn download-ls && yarn copy-i18n && yarn download-examples
arduino-ide-extension: $ node ./scripts/download-cli.js
arduino-ide-extension: 📦  Identified released version of the CLI. Downloading version 0.36.0-rc.1 from 'https://downloads.arduino.cc/arduino-cli/arduino-cli_0.36.0-rc.1_Linux_ARM64.tar.gz'
arduino-ide-extension: Skipping download because file already exists: /home/eappen/arduino-ide/arduino-ide-extension/src/node/resources/arduino-cli
arduino-ide-extension: $ node ./scripts/download-fwuploader.js
arduino-ide-extension: 📦  Identified released version of the Firmware Uploader. Downloading version 2.4.1 from 'https://downloads.arduino.cc/arduino-fwuploader/arduino-fwuploader_2.4.1_Linux_ARM64.tar.gz'
arduino-ide-extension: Skipping download because file already exists: /home/eappen/arduino-ide/arduino-ide-extension/src/node/resources/arduino-fwuploader
arduino-ide-extension: $ node ./scripts/download-ls.js
arduino-ide-extension: Building language-server from https://github.com/arduino/arduino-language-server.git. Commitish: 91c2ba8
arduino-ide-extension: >>> Cloning language-server source to /tmp/d-2024729-34599-1kgxh34.3w4l...
arduino-ide-extension: Cloning into '/tmp/d-2024729-34599-1kgxh34.3w4l'...
arduino-ide-extension: <<< Cloned language-server repo.
arduino-ide-extension: >>> Checking out 91c2ba8...
arduino-ide-extension: Note: switching to '91c2ba8'.
arduino-ide-extension: You are in 'detached HEAD' state. You can look around, make experimental
arduino-ide-extension: changes and commit them, and you can discard any commits you make in this
arduino-ide-extension: state without impacting any branches by switching back to a branch.
arduino-ide-extension: If you want to create a new branch to retain commits you create, you may
arduino-ide-extension: do so (now or later) by using -c with the switch command. Example:
arduino-ide-extension:   git switch -c <new-branch-name>
arduino-ide-extension: Or undo this operation with:
arduino-ide-extension:   git switch -
arduino-ide-extension: Turn off this advice by setting config variable advice.detachedHead to false
arduino-ide-extension: HEAD is now at 91c2ba8 Merge tag '0.7.6'
arduino-ide-extension: <<< Checked out 91c2ba8.
arduino-ide-extension: 91c2ba8
arduino-ide-extension: >>> Building the language-server...
arduino-ide-extension: Failed to execute go with args: ["build"]
arduino-ide-extension: Error: spawnSync go ENOENT
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
arduino-ide-extension: 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 for 2 projects 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.`

To reproduce

Compile it on asahi fedora remix after installing the dependencies.

  1. clone the github repo
  2. navigate into folder
  3. run yarn

Expected behavior

Compile without errors.

Arduino IDE version

2.3.2

Operating system

Linux

Operating system version

Fedora 40

Additional context

Using Asahi linux

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
@NewtronReal NewtronReal added the type: imperfection Perceived defect in any part of project label Aug 29, 2024
@arduino arduino deleted a comment Aug 29, 2024
@per1234

This comment was marked as off-topic.

@per1234
Copy link
Contributor

per1234 commented Aug 29, 2024

arduino-ide-extension: Failed to execute go with args: ["build"]

@NewtronReal do you have Go version 1.21 or newer installed on your computer?

Go is an (unfortunately undocumented) prerequisite for building Arduino IDE from source (it isn't actually used for the Arduino IDE application, but rather for its helper tools).

So if you don't have Go installed, install version 1.21 or newer and then try again. Please let me know if you are then able to build it successfully.

If you need to manage multiple Go versions on your system, I can recommend the gvm version manager.

@per1234 per1234 added topic: infrastructure Related to project infrastructure status: waiting for information More information must be provided before work can proceed labels Aug 29, 2024
@per1234 per1234 self-assigned this Aug 29, 2024
@NewtronReal

This comment was marked as off-topic.

@NewtronReal
Copy link
Author

arduino-ide-extension: Failed to execute go with args: ["build"]

@NewtronReal do you have Go version 1.21 or newer installed on your computer?

Go is an (unfortunately undocumented) prerequisite for building Arduino IDE from source (it isn't actually used for the Arduino IDE application, but rather for its helper tools).

So if you don't have Go installed, install version 1.21 or newer and then try again. Please let me know if you are then able to build it successfully.

If you need to manage multiple Go versions on your system, I can recommend the gvm version manager.

Thank you the software has been successfully build and running on my system.

@per1234 per1234 added topic: documentation Related to documentation for the project and removed topic: infrastructure Related to project infrastructure status: waiting for information More information must be provided before work can proceed labels Aug 29, 2024
@per1234 per1234 changed the title Compiling fails in asahi linux Go prerequisite is not documented in development guide Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants