Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Visual Studio i.p.v. Arduino IDE  (gelezen 5211 keer)

Visual Studio i.p.v. Arduino IDE
« Gepost op: 2021/03/15, 15:39:49 »
Zijn er ook forum leden die Visual Studio gebruiken om (o.a.) Arduino's te programmeren ? In Ubuntu 20.04.
Ik weet niet wat ik moet invullen bij de Arduino:Command Path in Visual Studio.

Arduino is geïnstalleerd via snap.

Heb al geprobeerd :
~/snap/arduino/50/.arduino15
~/snap/arduino/current/Arduino

maar het is nog steeds niet goed.

Als ik <Select Board Type> kies, krijg ik steeds: Cannot find Arduino IDE. Please specify the "arduino.path" in the User Settings.
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Offline MKe

  • Lid
Re: Visual Studio i.p.v. Arduino IDE
« Reactie #1 Gepost op: 2021/03/15, 17:41:58 »
Ik neem aan dat je VsCode bedoeld. Visual Studio werkt alleen op Windows.
Geen idee hoe dit werkt met SNAP.  Hoe start je arduino vanaf de commandline?

Re: Visual Studio i.p.v. Arduino IDE
« Reactie #2 Gepost op: 2021/03/15, 20:22:17 »
Ik neem aan dat je VsCode bedoeld. Visual Studio werkt alleen op Windows.
Geen idee hoe dit werkt met SNAP.  Hoe start je arduino vanaf de commandline?

Je hebt gelijk.   :)    Het is Visual Studio Code.
Start vanaf de commandline:
henkoegema@HPHP:~$ arduino
Picked up JAVA_TOOL_OPTIONS:
Set log4j store directory /home/henkoegema/snap/arduino/50/.arduino15
(java:35206): Gtk-WARNING **: 19:50:41.256: Theme parsing error: gtk.css:1566:23: 'font-feature-settings' is not a valid property name
(java:35206): Gtk-WARNING **: 19:50:41.261: Theme parsing error: gtk.css:3616:25: 'font-feature-settings' is not a valid property name
(java:35206): Gtk-WARNING **: 19:50:41.263: Theme parsing error: gtk.css:4078:23: 'font-feature-settings' is not a valid property name
(java:35206): Gtk-WARNING **: 19:50:41.583: Theme parsing error: gtk.css:1566:23: 'font-feature-settings' is not a valid property name
(java:35206): Gtk-WARNING **: 19:50:41.590: Theme parsing error: gtk.css:3616:25: 'font-feature-settings' is not a valid property name
(java:35206): Gtk-WARNING **: 19:50:41.591: Theme parsing error: gtk.css:4078:23: 'font-feature-settings' is not a valid property name
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by processing.app.linux.GTKLookAndFeelFixer (file:/snap/arduino/50/lib/arduino-core.jar) to field com.sun.java.swing.plaf.gtk.GTKLookAndFeel.styleFactory
WARNING: Please consider reporting this to the maintainers of processing.app.linux.GTKLookAndFeelFixer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
henkoegema@HPHP:~$

Een hoop Warning maar Arduino start wel op.   :)

Normaal start ik vanaf een icon in Favorites (de linker vertical balk)

(of misschien Arduino uit snap verwijderen en 'gewoon' downloaden ?)
(maar er moet toch ergens een opstart file zijn ?)
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Re: Visual Studio Code i.p.v. Arduino IDE
« Reactie #3 Gepost op: 2021/03/15, 20:47:05 »
Heb het ook geprobeerd op een Raspberry pi, waarbij Arduino NIET via snap geinstalleerd is en waarvan ik de path om Arduino te starten wel weet.
Daar gebeurt hetzelfde:

𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Offline MKe

  • Lid
Re: Visual Studio i.p.v. Arduino IDE
« Reactie #4 Gepost op: 2021/03/15, 22:13:33 »
Probeer eens het commando
which arduino
Kun je de uitkomst daarvan eens proberen als commandpath setting in VSCode?

Re: Visual Studio i.p.v. Arduino IDE
« Reactie #5 Gepost op: 2021/03/16, 13:29:18 »
Heb de 'snap' installatie van Arduino verwijderd en de 'gewone' Arduino installatie gedaan.

henkoegema@HPHP:~$ which arduino
/usr/local/bin/arduino
henkoegema@HPHP:~$

Toen ik dat invulde kreeg ik weer dezelfde foutmelding.   :(

Toen na lang proberen het veld van de path naar de Arduino IDE helemaal weggelaten.
En........tot m'n verbazing kon Vscode de Arduino IDE wel vinden.    ???

(Dus dit probleem is opgelost. Maar er blijven nog andere over)

« Laatst bewerkt op: 2021/03/16, 13:30:57 door henkoegema »
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Re: Visual Studio i.p.v. Arduino IDE
« Reactie #6 Gepost op: 2021/03/16, 13:30:05 »
Probeer eens het commando
which arduino
Kun je de uitkomst daarvan eens proberen als commandpath setting in VSCode?

Dank voor de bijdrage.  :)
𝕸𝖎𝖘𝖈𝖊𝖗𝖊 𝖚𝖙𝖎𝖑𝖊 𝖉𝖚𝖑𝖈𝖎. (Ter leering ende vermaeck)
𝕹𝖎𝖑 𝖛𝖔𝖑𝖊𝖓𝖙𝖎𝖇𝖚𝖘 𝖆𝖗𝖉𝖚𝖚𝖒. (Niets is moeilijk voor hen die willen)
https://henk.oegema.com  (Op RaspberryPi2)
Registered linux user 520520.  In gebruik: Ubuntu  24.04 Hobby's: Radio Amateur callsign: PA2HO.  Interesses: Raspberry Pi & Arduino & TELLO drone (voor AI)

Offline MKe

  • Lid
Re: Visual Studio i.p.v. Arduino IDE
« Reactie #7 Gepost op: 2021/03/16, 17:02:09 »
Graag gedaan. Als je het maar opgelost hebt, toch?