Sysprogs forums › Forums › VisualGDB › error creating arduino project
- This topic has 12 replies, 2 voices, and was last updated 6 years, 2 months ago by
support.
-
AuthorPosts
-
February 14, 2019 at 13:31 #23845
SergeyGly
ParticipantFebruary 14, 2019 at 18:11 #23852support
KeymasterLook like something on your computer is preventing VisualGDB from running the Arduino builder properly.
Please double-check that your antivirus is not blocking the following file:
C:\Program Files (x86)\Sysprogs\VisualGDB\Arduino\arduino-builder.exe
If it doesn’t help, please open View->Other Windows->VisualGDB Diagnostics Console, reproduce the problem and share the log from the console.
February 15, 2019 at 09:00 #23867SergeyGly
ParticipantThanks for answer.
I not have Antivirus.
LOG:
C:\Program Files\Sysprogs\VisualGDB\Arduino\arduino-builder.exe -compile -logger=machine -fqbn=arduino:avr:uno -build-path C:\Users\Work\AppData\Local\Temp\tmp2003.tmp\Build -code-model-file C:\Users\Work\AppData\Local\Temp\tmp2003.tmp\CodeModel.json -hardware “C:/Program Files/Arduino/hardware” -hardware C:/Users/Work/AppData/Local/arduino15/packages/arduino/hardware -hardware C:\Users\Work\AppData\Local/Arduino15/packages -tools “C:/Program Files/Arduino/tools-builder” -tools C:\Users\Work\AppData\Local/Arduino15/packages -built-in-libraries “C:/Program Files/Arduino/libraries” -libraries C:\Users\Work\Documents/Arduino/Libraries sketch.ino
Updating COM port list…: 10 msec
Unexpected exception: Failed to query Arduino code model
—————— System.Exception ——————
System.Exception: Failed to query Arduino code model
at mm1.a.b(qw a)
at VisualGDB.Common_GUI.WPF.ItemizedProgressWindow.<>c__DisplayClass1_2`1.<RunAction>b__0()
Unexpected exception: Exception of type ‘mi2’ was thrown.
—————— mi2 ——————
mi2: Exception of type ‘mi2’ was thrown.
at e52.s1[_Type](q`1 a)
at zf.z1.e_2[_ResultType](bl1`1 d, String c, ja2 b, String[] a)
at mm1.b(String a)
at VisualGDB.WPF.Wizards.Embedded.Arduino.ArduinoPlatformPage.ControllerImpl.CommitPage(z commitMode)
at VisualGDB.WPF.Wizards.WPFWizardWindow.ControllerImpl.TryPrepareAndCommitPagesUntil(Int32 pageIndex)February 15, 2019 at 12:18 #23871SergeyGly
ParticipantMore LOG:
C:\Program Files\Sysprogs\VisualGDB\Arduino\arduino-builder.exe -compile -logger=machine -fqbn=avr:1.6.23:nano -build-path C:\Users\Work\AppData\Local\Temp\tmp7014.tmp\Build -code-model-file C:\Users\Work\AppData\Local\Temp\tmp7014.tmp\CodeModel.json -hardware “C:\Program Files\Sysprogs\VisualGDB\Arduino/hardware” -hardware C:/Users/Work/AppData/Local/arduino15/packages/arduino/hardware -hardware C:\Users\Work\AppData\Local/Arduino15/packages -tools “C:\Program Files\Sysprogs\VisualGDB\Arduino/tools-builder” -tools C:\Users\Work\AppData\Local/Arduino15/packages -libraries C:\Users\Work\Documents/Arduino/Libraries sketch.ino
Updating COM port list…: 18 msec
Unexpected exception: Could not find file ‘C:\Users\Work\AppData\Local\Temp\tmp7014.tmp\CodeModel.json’.
—————— System.IO.FileNotFoundException ——————
System.IO.FileNotFoundException: Could not find file ‘C:\Users\Work\AppData\Local\Temp\tmp7014.tmp\CodeModel.json’.
File name: ‘C:\Users\Work\AppData\Local\Temp\tmp7014.tmp\CodeModel.json’
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at mm1.a.b(qw a)
at VisualGDB.Common_GUI.WPF.ItemizedProgressWindow.<>c__DisplayClass1_2`1.<RunAction>b__0()
Updating COM port list…: 12 msec
Unexpected exception: Exception of type ‘mi2’ was thrown.
—————— mi2 ——————
mi2: Exception of type ‘mi2’ was thrown.
at e52.s1[_Type](q`1 a)
at zf.z1.e_2[_ResultType](bl1`1 d, String c, ja2 b, String[] a)
at mm1.b(String a)
at VisualGDB.WPF.Wizards.Embedded.Arduino.ArduinoPlatformPage.ControllerImpl.CommitPage(z commitMode)
at VisualGDB.WPF.Wizards.WPFWizardWindow.ControllerImpl.TryPrepareAndCommitPagesUntil(Int32 pageIndex)February 15, 2019 at 12:23 #23872SergeyGly
ParticipantWhen I run the program in the console, I see the following message:
The version of “C: \ Program Files \ Sysprogs \ VisualGDB \ Arduino \ arduino-builder.exe” is not compatible with the version of Windows running on this computer. Check your system information to find out which version of x86 (32-bit) or x64 (64-bit) you need, and get it from your software vendor.I haw Windows 7 32bit
February 15, 2019 at 22:17 #23879support
KeymasterThanks, looks like we indeed shipped the 64-bit version of the Arduino builder instead of the 32-bit one. We have fixed it in this build: VisualGDB-5.4.103.2813.msi
February 19, 2019 at 10:08 #23896SergeyGly
ParticipantThank. After the update, I created an arduino project.
But when compiling produces an error :
Severity Code Description Project File Line Suppression State
Error [Clang IntelliSense] Error: ‘Arduino.h’ file not found Miscellaneous Files D:\Sergey\Ard\ArduinoProject4\ArduinoProject4\VisualGDBCache\ArduinoProject4-Debug-Arduino_Nano\GeneratedPrototypes.h 3I changed different settings and probably got confused.
Help please set up Tools->VisualDGB->Arduino setting.
Attachments:
You must be logged in to view attached files.February 19, 2019 at 18:46 #23901support
KeymasterPlease try deleting the %LOCALAPPDATA%\VisualGDB\ArduinoSettings.xml file to reset all Arduino-related settings.
If this doesn’t help, please also delete the %LOCALAPPDATA%\Arduino15 folder and let VisualGDB re-download the necessary packages.
February 20, 2019 at 10:29 #23904SergeyGly
ParticipantThank.
Creating a new and import project arduino works.
But with projects arduino ESP8266-WeMos there are problems.
A new project (Blink) with ESP8266-WeMos is created and works without problems.
An imported project with ESP8266 is created with errors.
Attachments:
You must be logged in to view attached files.February 20, 2019 at 13:57 #23908SergeyGly
ParticipantVisual Studio 2015 + Windows 7 x32 – project with ESP8266 is imported with problems.
Visual Studio 2017 + Windows 10 x64 – project with ESP8266 is imported without problems.
-
This reply was modified 6 years, 2 months ago by
SergeyGly.
February 20, 2019 at 17:52 #23910support
KeymasterPerhaps some of the native ESP8266 tools also only work on 64-bit targets? Please try building the failing project manually from the Arduino IDE. Does it build successfully?
If yes, please try comparing the Arduino-builder command lines from VisualGDB and the Arduino IDE (you can use Process Monitor to find out the command line used by the Arduino IDE). Let us know if you notice any differences and we will help you configure VisualGDB to work around them.
February 21, 2019 at 20:43 #23921SergeyGly
ParticipantHello.
I found what was the reason.
I read in the OUT window that I have not installed the Arduino library.
After I downloaded this library, the project was successfully assembled and programmed into the ESP8266 module.thanks for the help. I apologize for that.
I was just scared that the project manager did not have all the files except the INO-file.
-
This reply was modified 6 years, 2 months ago by
SergeyGly.
February 21, 2019 at 21:09 #23926support
KeymasterGood to know it works. If you encounter further issues, don’t hesitate to get back to us.
-
This reply was modified 6 years, 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.