microsoft / vscode-arduino

Visual Studio Code extension for Arduino
Other
1.15k stars 201 forks source link

Saved programmer not selected #942

Open manuelmaurer opened 4 years ago

manuelmaurer commented 4 years ago

When selecting a Programmer, the selection is saved in the arduino.json file. However, this selection is not restored when loading the project (neither after "Open Folder" nor after a restart of vscode). It also does not matter which programmer is selected (tested with multiple entries).

silardg commented 4 years ago

Same situation when using STM32L0 boards with ST-Link programmers.

rickoman commented 4 years ago

Same problem here with Adafruit Feather M0 + AVR mkII

manuelmaurer commented 4 years ago

I've tried to dig into the code, it looks like there is no routine to actually load the setting into the programmerManager. Based on how this is handled in boardManagerI wrote a quick fix. Patch attached.

loadProgrammer.txt

hairlesshobo commented 4 years ago

Last year I submitted pull request #767 that addresses this, and the fact that custom programmers are not honored by the vscode arduino plugin last year. It has been sitting pending review this entire time. If you guys want to comment on that, they may finally review it and hopefully merge it in so these two issues will be addressed.

THX2112 commented 4 years ago

Same issue.

iqapps commented 3 years ago

Anything happening here, should be an easy fix.