Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Cannot select board type #1163

Closed
festiveelephantseal opened this issue Dec 21, 2020 · 39 comments · Fixed by #1367
Closed

Cannot select board type #1163

festiveelephantseal opened this issue Dec 21, 2020 · 39 comments · Fixed by #1367
Labels

Comments

@festiveelephantseal
Copy link

image
Nothing is showing when i try to select the board type but i am able to select the serial port. I am able to use Arduino IDE to upload sketches though.

OS: Arch Linux

@Starkiller4011
Copy link

Same issue as nerdthatnoonelikes though when I tried to set the Board Type through the command pallet I got "No supported board is available.\n\nSource: Arduino (Extension)". OS: Manjaro

@festiveelephantseal
Copy link
Author

So i tested the extension on my machine with Xubuntu 20.04 and the extension worked fine. Is there a reason It worked on Xubuntu and not Arch Linux?

@adiazulay adiazulay added the linux label Jan 4, 2021
@festiveelephantseal
Copy link
Author

So today I reinstalled Arch Linux and installed the Arduino extension for vscode and I can select the board. But I cannot click on the Button. Its completely unresponsive.

@ben-kuhn
Copy link

Same problem on Ubuntu 20.10

@Aumandaris
Copy link

Same problem on Manjaro KDE Plasma 21.0.2

@JorgeMarinC
Copy link

Same problem here on Ubuntu 20.04

@JuanDavidBallesteros
Copy link

JuanDavidBallesteros commented Jun 21, 2021

I solved this problem (Linux), you need to download the Arduino official version (later version of 1.6). The version has a install.sh file, you can install those files running in console from the folder the command sh file_name.sh

Then, the paths must look something like this, so update the paths:

"arduino.path": "/home/redes/Descargas/arduino-1.8.15", "arduino.commandPath": "arduino"

Finally, you must to restart vs code

@orlade
Copy link

orlade commented Aug 14, 2021

I also get this behaviour (Mac) when trying to use arduino-cli. It works when not using the CLI.

Even with "board": "arduino:avr:uno", already defined in arduino.json, it's not picked up.

@yuxiaoyuan0406
Copy link

yuxiaoyuan0406 commented Sep 13, 2021

I solved this problem (Linux), you need to download the Arduino official version (later version of 1.6). The version has a install.sh file, you can install those files running in console from the folder the command sh file_name.sh

Then, the paths must look something like this, so update the paths:

"arduino.path": "/home/redes/Descargas/arduino-1.8.15", "arduino.commandPath": "arduino"

Finally, you must to restart vs code

Run whereis arduino gives /usr/local/bin/arduino.
So I set my settings like this:

    "arduino.path": "/usr/local/bin",
    "arduino.commandPath": "arduino"

Still not working.

OS: Ubuntu 20.04


Update:
add os

@andrewsno1
Copy link

andrewsno1 commented Sep 13, 2021

I had the same issue: I could not select the board even though I had set path and commandPath.

As soon as I created a .vscode folder in the workspace of my project and created a file called arduino.json within that folder it sudenly worked: I could select the boards and the selected board would also appear in the arduino.json file.

I hope this helps.

@DayLightDancer
Copy link

I had the same issue but I am on windows and I solve it in that way:
VSCode uses the arduino app the get the board info so:

  1. Open the Arduino app and setup the board
  2. Close the Arduino app - it saves changes on close
  3. Open VSCode set the propper path in the fields
  4. Click outside of the edited field( sometimes VSCde lost field data if the tab is closed while the edited field is in focus )
  5. Restart the VSCode

@plejsq
Copy link

plejsq commented Oct 4, 2021

F1 and after that Arduino:initialize have solved problem. Thank you @rrakso

@Shaladdin
Copy link

Shaladdin commented Oct 6, 2021

I found a Solution (in windows 10, [but maybe work for you too?])
I download the Arduino(official) version 1.8.13
and change the Arduino extension in vsCode to version v0.4.5

and it works!
now I can select board!

here is the link for download the Arduino
in case someone doesn't know-how
https://www.arduino.cc/en/main/OldSoftwareReleases

@clan4456
Copy link

clan4456 commented Oct 7, 2021

I found a Solution (in windows 10, [but maybe work for you too?]) I download the Arduino(official) version 1.8.13 and change the Arduino extension in vsCode to version v0.4.5

and it works! now I can select board!

here is the link for download the Arduino in case someone doesn't know-how https://www.arduino.cc/en/main/OldSoftwareReleases

Thank you for your solution!

My Arduino version is 1.8.16, then I change the Arduino extension in the VSCode to version 0.4.5.

Now it wroks!

(PS: Windows 10 Home 21H1)

@isaacdnew
Copy link

isaacdnew commented Oct 7, 2021

I just had the same issue as @clan4456, and the same fix worked for me (revert to Arduino VSCode extension to v0.4.5). I'm on Windows 10 Pro. Seems like this is an issue with the latest extension release - should it be a new issue?

@sparkybrit
Copy link

Downgrading to v0.4.5 fixed this for me (on MacOS 10.15.7 Intel)

@magouero
Copy link

magouero commented Oct 9, 2021

same here.
reverted arduino extension from 0.4.6 to 0.4.5 and Arduino board configuration comes back to life.


vscode about:
Version : 1.61.0 (system setup)
Commit : ee8c7def80afc00dd6e593ef12f37756d8f504ea
Date : 2021-10-07T18:13:09.652Z
Electron : 13.5.1
Chrome : 91.0.4472.164
Node.js : 14.16.0
V8 : 9.1.269.39-electron.0
OS : Windows_NT x64 10.0.19043

@ThunderDanG
Copy link

Reverting Arduino extension from 0.4.6 to 0.4.5 also fixed this for me on Ubuntu 21.04

@gustafwigren
Copy link

Thanx, Reverting extension from 0.4.6 to 0.4.5 also fixed this for me on windows10

@MysteryMS
Copy link

Reverting to 0.4.5 also fixed for me on Windows 11.

@remy
Copy link

remy commented Oct 25, 2021

This problem also occurred on a Mac and the fix (to downgrade to 0.4.5) also worked 👍

@AlexIII
Copy link

AlexIII commented Oct 31, 2021

Can confirm reverting from 0.4.6 to 0.4.5 fixes the problem (win10)

@han-fastolfe
Copy link

How do you get v0.4.5? I can only see v0.4.6 to install

@MysteryMS
Copy link

How do you get v0.4.5? I can only see v0.4.6 to install

You should be able to select a specific version by clicking on "Install Another Version" from the Uninstall dropdown.
image

@Edwardhk
Copy link

Edwardhk commented Nov 1, 2021

Reverting to version 0.4.5 solved the problem too. (Ubuntu 20.04)

@benmcmorran
Copy link
Member

Fixed in v0.4.7.

@GShashikanth
Copy link

GShashikanth commented Nov 30, 2021

I spent hours on setting Vs code for arduino, but no bingo, can anyone post step by step working process for Linux.

@RanzQ
Copy link

RanzQ commented Dec 18, 2021

If you installed arduino using snap:

$ which arduino
/snap/bin/arduino

I figured out that the paths are a bit weird. But these seem to work:

"arduino.path": "/snap/arduino/current",
"arduino.commandPath": "../../bin/arduino"

Without that relative command path, the snap's /snap/arduino/current/bin/java isn't found.

@YvanLin
Copy link

YvanLin commented Dec 18, 2021 via email

@laestrada
Copy link

laestrada commented Dec 20, 2021

Was able to get this working on MacOS Monterey 12.1 with arduino-cli and vscode extension 0.4.8. Some initialization was needed using the arduino cli:

  1. $ arduino-cli config init ( this step may not be necessary )
  2. $ arduino-cli board list to get the core version
  3. $ arduino-cli core install <insert-core-version-here>
  4. Restart vscode
    Edit: I should note that my arduino-cli version is 0.20.2 installed with homebrew.

@zakkhoyt
Copy link

zakkhoyt commented Jan 5, 2022

arduino-cli board list failed for me on macOS 12.1, but I was able to get running with arduino-cli core install adruino:avr

@YvanLin
Copy link

YvanLin commented Jan 5, 2022 via email

@ipg0
Copy link

ipg0 commented Mar 28, 2022

reverting did not fix anything on ubuntu 21.10

@YvanLin
Copy link

YvanLin commented Mar 28, 2022 via email

@Mek101
Copy link

Mek101 commented Apr 20, 2022

Re open, this issue is still present

@YvanLin
Copy link

YvanLin commented Apr 20, 2022 via email

@crashbit666
Copy link

Yes, this issue is still present. I've install arduino-ide form snap. I've configure arduino paths and it working well. But when I try to select arduino board, empty list is showed. I'm using latest version of plugin and latest version of ide on ubuntu 22.04

@a1usha
Copy link

a1usha commented Jan 3, 2023

@laestrada Thanks, was missing arduino:avr core. After arduino-cli core install <insert-core-version-here> everything initialised properly. Plugin version 0.4.12

@YvanLin
Copy link

YvanLin commented Jan 3, 2023 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.