Sysprogs forums › Forums › VisualGDB › Can't open Arduino project after manually editing boards.txt
- This topic has 12 replies, 2 voices, and was last updated 4 years, 11 months ago by support.
-
AuthorPosts
-
November 28, 2019 at 10:25 #26602MystikReasonsParticipant
After manually editing the clock frequency of the Arduino UNO from 8MHz to 16MHz I got projects errors while reloading the project. So I closed Visual Studio and reopened it again and now its stuck loading the solution project.
I changed it back to the previous clock frequency but it’s still stuck.
How can I revert this?
I’m using VisualGDB v. 5.5 build 3402.
- This topic was modified 4 years, 12 months ago by MystikReasons.
November 28, 2019 at 10:28 #26604MystikReasonsParticipantUpdate: Every Arduino project is now having errors and won’t build because it has build errors. (see screenshot)
Reloading the project doesn’t solve the issue.
Loading cached code model from C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1\VisualGDBCache\Arduino_MIOTY_Dragino_sendString1-Debug-Arduino_Genuino_Uno\BuildCommandLines.txt…
Failed to parse code model from C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1\VisualGDBCache\Arduino_MIOTY_Dragino_sendString1-Debug-Arduino_Genuino_Uno\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
at bq2.j1.j_2(IEnumerable`1 a)
Compiler output:
Checking if any source files need uploading…
Checking for file modifications…
Found changed files since last query (see C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1\VisualGDBCache\Arduino_MIOTY_Dragino_sendString1-Debug-Arduino_Genuino_Uno\BuildFileStats.txt.old vs C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1\VisualGDBCache\Arduino_MIOTY_Dragino_sendString1-Debug-Arduino_Genuino_Uno\BuildFileStats.txt.new). Rerunning code model query..
Saved the code model to C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1\VisualGDBCache\Arduino_MIOTY_Dragino_sendString1-Debug-Arduino_Genuino_Uno\BuildCommandLines.txt
Failed to parse code model from C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1\VisualGDBCache\Arduino_MIOTY_Dragino_sendString1-Debug-Arduino_Genuino_Uno\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
at bq2.j1.j_2(IEnumerable`1 a)
Compiler output:========== Project Configuration Summary ==========
Arduino_MIOTY_Dragino_sendString1 configured in 00:00
========== Configuration: 1 Succeeded, 0 Failed ==========- This reply was modified 4 years, 12 months ago by MystikReasons.
Attachments:
You must be logged in to view attached files.November 28, 2019 at 10:34 #26607MystikReasonsParticipantLaunching Arduino builder…
C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe -compile -logger=machine -fqbn=arduino:avr:uno -build-path C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1\Output\Arduino_Genuino_Uno\Debug -unoptimize=sketch -hardware “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/hardware” -hardware C:\Users\gwerderj\Documents/ArduinoData/packages -hardware C:\Users\gwerderj\AppData\Local/Arduino15/packages -tools “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/tools-builder” -tools C:\Users\gwerderj\Documents/ArduinoData/packages -tools C:\Users\gwerderj\AppData\Local/Arduino15/packages -libraries C:\Users\gwerderj\Documents/Arduino/Libraries -prefs=runtime.tools.avr-gcc.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 sketches/Arduino_MIOTY_Dragino_sendString1.ino
Error reading file (C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\hardware\avr\1.8.1\boards.txt:0): Invalid line format, should be ‘key=value’
————————————————————-
Command exited with code 1
Executable: C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe
Arguments: -compile -logger=machine -fqbn=arduino:avr:uno -build-path C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1\Output\Arduino_Genuino_Uno\Debug -unoptimize=sketch -hardware “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/hardware” -hardware C:\Users\gwerderj\Documents/ArduinoData/packages -hardware C:\Users\gwerderj\AppData\Local/Arduino15/packages -tools “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/tools-builder” -tools C:\Users\gwerderj\Documents/ArduinoData/packages -tools C:\Users\gwerderj\AppData\Local/Arduino15/packages -libraries C:\Users\gwerderj\Documents/Arduino/Libraries -prefs=runtime.tools.avr-gcc.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 sketches/Arduino_MIOTY_Dragino_sendString1.ino
Directory: C:\Users\gwerderj\source\repos\Arduino_MIOTY_Dragino_sendString1
Command-line action failed========== Project Build Summary ==========
Arduino_MIOTY_Dragino_sendString1 built in 00:00
========== Build: 0 Succeeded, 1 Failed ==========Edit: I changed the clock frequency from 16 MHz to 8 MHz, not from 8 to 16 as stated above
- This reply was modified 4 years, 12 months ago by MystikReasons.
November 28, 2019 at 16:58 #26615supportKeymasterIt looks like you broke something in the platform files:
Error reading file (C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\hardware\avr\1.8.1\boards.txt:0): Invalid line format, should be ‘key=value’
The easiest way to fix it would be to just delete the arduino\hardware\avr folder, restart VS, and let VisualGDB download all the necessary packages from scratch.
November 28, 2019 at 17:03 #26616MystikReasonsParticipantI did as you said but it just complains about missing the ‘arduino:avr’. It doesn’t download any necessary packages.
Reloading/building the project doesn’t help either.
Loading cached code model from C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\BuildCommandLines.txt…
Failed to parse code model from C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
at bq2.j1.j_2(IEnumerable`1 a)
Compiler output:
Checking if any source files need uploading…
Checking for file modifications…
Found changed files since last query (see C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\BuildFileStats.txt.old vs C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\BuildFileStats.txt.new). Rerunning code model query..
Failed to locate best tools for arduino:avr:uno: Platform ‘arduino:avr’ is not installed.
Saved the code model to C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\BuildCommandLines.txt
Failed to parse code model from C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
at bq2.j1.j_2(IEnumerable`1 a)
Compiler output:========== Project Configuration Summary ==========
Arduino_LORA configured in 00:00
========== Configuration: 1 Succeeded, 0 Failed ==========November 28, 2019 at 17:07 #26617supportKeymasterPlease try creating a new project from scratch. Please also update to VisualGDB-5.5.2.3403.msi. This version will download missing packages when you open the project, given that it was fully loaded before (won’t help for projects that were never loaded with the new build).
November 28, 2019 at 17:07 #26618MystikReasonsParticipantYou forgot to mention that I have to install the Arduino AVR Boards package in the visualgdb package manager window, I thought it would do it himself.
After reloading the project I’m still having build errors:
Loading cached code model from C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\BuildCommandLines.txt…
Failed to parse code model from C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
at bq2.j1.j_2(IEnumerable`1 a)
Compiler output:
Checking if any source files need uploading…
Checking for file modifications…
Found changed files since last query (see C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\BuildFileStats.txt.old vs C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\BuildFileStats.txt.new). Rerunning code model query..
Saved the code model to C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\BuildCommandLines.txt
Failed to parse code model from C:\Users\gwerderj\source\repos\Arduino_LORA\VisualGDBCache\Arduino_LORA-Debug-Arduino_Genuino_Uno\CodeModel.json:System.Exception: Arduino code model did not report any sketch sources
at bq2.j1.j_2(IEnumerable`1 a)
Compiler output:========== Project Configuration Summary ==========
Arduino_LORA configured in 00:00
========== Configuration: 1 Succeeded, 0 Failed ==========Update to your last post: I will try build 3403
- This reply was modified 4 years, 12 months ago by MystikReasons.
November 28, 2019 at 17:15 #26620MystikReasonsParticipantOkay so after creating a new project from scratch with the Uno it already has build errors (just created the project).
I’m using your new build 3403.
Launching Arduino builder…
C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe -compile -logger=machine -fqbn=arduino:avr:uno -build-path C:\Users\gwerderj\source\repos\Arduino_MIOTY_LORA_LIKE_Dragino_BME280\Output\Arduino_Genuino_Uno\Debug -unoptimize=sketch -hardware “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/hardware” -hardware C:\Users\gwerderj\Documents/ArduinoData/packages -hardware C:\Users\gwerderj\AppData\Local/Arduino15/packages -tools “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/tools-builder” -tools C:\Users\gwerderj\Documents/ArduinoData/packages -tools C:\Users\gwerderj\AppData\Local/Arduino15/packages -libraries C:\Users\gwerderj\Documents/Arduino/Libraries -prefs=runtime.tools.avr-gcc.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 sketches/Arduino_MIOTY_LORA_LIKE_Dragino_BME280.ino
Error reading file (C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\hardware\uni_erlangen\1.8.1\boards.txt:0): Invalid line format, should be ‘key=value’
————————————————————-
Command exited with code 1
Executable: C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe
Arguments: -compile -logger=machine -fqbn=arduino:avr:uno -build-path C:\Users\gwerderj\source\repos\Arduino_MIOTY_LORA_LIKE_Dragino_BME280\Output\Arduino_Genuino_Uno\Debug -unoptimize=sketch -hardware “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/hardware” -hardware C:\Users\gwerderj\Documents/ArduinoData/packages -hardware C:\Users\gwerderj\AppData\Local/Arduino15/packages -tools “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/tools-builder” -tools C:\Users\gwerderj\Documents/ArduinoData/packages -tools C:\Users\gwerderj\AppData\Local/Arduino15/packages -libraries C:\Users\gwerderj\Documents/Arduino/Libraries -prefs=runtime.tools.avr-gcc.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 sketches/Arduino_MIOTY_LORA_LIKE_Dragino_BME280.ino
Directory: C:\Users\gwerderj\source\repos\Arduino_MIOTY_LORA_LIKE_Dragino_BME280
Command-line action failed========== Project Build Summary ==========
Arduino_MIOTY_LORA_LIKE_Dragino_BME280 built in 00:00
========== Build: 0 Succeeded, 1 Failed ==========November 28, 2019 at 17:22 #26621MystikReasonsParticipantThe new build also doesn’t want to install the missing package (‘arduino:avr’)
Failed to locate best tools for arduino:avr:uno: Platform ‘arduino:avr’ is not installed.
Launching Arduino builder…
C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe -compile -logger=machine -fqbn=arduino:avr:uno -build-path C:\Users\gwerderj\source\repos\Arduino_MIOTY_LORA_LIKE_Dragino_BME280\Output\Arduino_Genuino_Uno\Debug -unoptimize=sketch -hardware “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/hardware” -hardware C:\Users\gwerderj\Documents/ArduinoData/packages -hardware C:\Users\gwerderj\AppData\Local/Arduino15/packages -tools “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/tools-builder” -tools C:\Users\gwerderj\Documents/ArduinoData/packages -tools C:\Users\gwerderj\AppData\Local/Arduino15/packages -libraries C:\Users\gwerderj\Documents/Arduino/Libraries sketches/Arduino_MIOTY_LORA_LIKE_Dragino_BME280.ino
Error reading file (C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\hardware\uni_erlangen\1.8.1\boards.txt:0): Invalid line format, should be ‘key=value’
————————————————————-
Command exited with code 1
Executable: C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe
Arguments: -compile -logger=machine -fqbn=arduino:avr:uno -build-path C:\Users\gwerderj\source\repos\Arduino_MIOTY_LORA_LIKE_Dragino_BME280\Output\Arduino_Genuino_Uno\Debug -unoptimize=sketch -hardware “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/hardware” -hardware C:\Users\gwerderj\Documents/ArduinoData/packages -hardware C:\Users\gwerderj\AppData\Local/Arduino15/packages -tools “C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino/tools-builder” -tools C:\Users\gwerderj\Documents/ArduinoData/packages -tools C:\Users\gwerderj\AppData\Local/Arduino15/packages -libraries C:\Users\gwerderj\Documents/Arduino/Libraries sketches/Arduino_MIOTY_LORA_LIKE_Dragino_BME280.ino
Directory: C:\Users\gwerderj\source\repos\Arduino_MIOTY_LORA_LIKE_Dragino_BME280
Command-line action failed========== Project Build Summary ==========
Arduino_MIOTY_LORA_LIKE_Dragino_BME280 built in 00:00
========== Build: 0 Succeeded, 1 Failed ==========Attachments:
You must be logged in to view attached files.November 28, 2019 at 17:24 #26623MystikReasonsParticipantI also noticed that if you change the hardware directories under Arduino Settings and revert these changes it won’t take the new values.
See my post above: Error reading file (C:\Users\gwerderj\Documents\ArduinoData\packages\arduino\hardware\uni_erlangen\1.8.1\boards.txt:0): Invalid line format, should be ‘key=value’
You see the “uni_erlangen” keyword above but it’s not in the actual hardware directories paths anymore.
- This reply was modified 4 years, 12 months ago by MystikReasons.
Attachments:
You must be logged in to view attached files.November 29, 2019 at 10:10 #26640MystikReasonsParticipantOkay so I figured out why it still used uni_erlangen as reference. I thought VisualGDB is using the following path for their packages: …\AppData\Local\Arduino15\packages\arduino\hardware but I found out its using the following path: …\Documents\ArduinoData\packages\arduino\hardware\avr.
After clearing everything what was in it (the uni_erlangen and the avr folder) I restarted Visual Studio and the path was still selected as …\uni_erlangen\… So this has to be a bug. It still didn’t download the missing package.
So I created a new project and in the device selection it told me to download the avr boards package and this finally installed the package. In the newly created project the build errors disappeared.
And also in every other project the build errors disappeared and the window for the missing packages finally appeared.
Even the projects which wouldn’t open themself anymore are now loading properly.
November 29, 2019 at 10:41 #26641MystikReasonsParticipantIs the build 3403 missing package feature only for libraries or also for platforms?
That would explain why it didn’t resolve the mssing “Arduino AVR Boards” package on his own.
Would you be able to improve your missing package feature to also locate missing platforms?
PS: The “Resolve Project Load Issues” window is only showing when you have installed the necessary platform files (in my example: the Arduino AVR Boards package).
- This reply was modified 4 years, 11 months ago by MystikReasons.
- This reply was modified 4 years, 11 months ago by MystikReasons.
Attachments:
You must be logged in to view attached files.December 2, 2019 at 18:45 #26699supportKeymasterThe new build should report missing platforms as well, however only if they are known to VisualGDB (i.e. listed in one of the platform_index.json files configured via Tools->VisualGDB->Arduino->Package index URLs).
-
AuthorPosts
- You must be logged in to reply to this topic.