Hi everybody!
Updated my VS Micro 1 year license 3 days ago, and updated VSMicro also (an very old version).
Now, nothing works anymore.
1- Creating new projects or building then, I got the errors below.
*Linux/FolderOnly intelli - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at Visual.Micro.Utils.CompilerStringReplacer.replaceFromMapping(String src, Dictionary`2 map, String leftDelimiter, String rightDelimiter, Boolean doubleEscape, Boolean useShortPaths)
at Visual.Micro.Utils.CompilerStringReplacer.formatAndSplit(String src, Dictionary`2 dict, Boolean recursive, Boolean bDoubleQuotedArgs, Boolean clearUnused, Boolean shortPaths, Boolean escapeStrings)
at Visual.Micro.Utils.MCUPreferencesMap.getMergeAndEmpty(String pName)
at Visual.Micro.MiroAppAPI.SketchCompilerArduino.getCommandFromRecipe(String recipe, String avrBasePath, List`1 includePaths, String sourceName, MCUPreferencesMap properties)
at tForIntellisense(FileInfo codeFile, MCUPreferencesMap boardPreferences, List`1 includePaths, List`1 extraCmdParams, SketchBuilder lsketch)
at llisense(SketchBuilder lsketch, Board brd, String srcFilename)
at Visual.Micro.Visual.Studio.Arduino.AddInApp._RefreshIntellisenseOfSketch(Object oProject, SketchBuilder sk)
Compiling debug version of 'Test' for 'ATmega2560 (Mega 2560) (Arduino/Genuino Mega)(mega_atmega2560)'
Visual Studio Version: 2022 [17.0]
Build Folder: "file:///C:/Users/flavi/AppData/Local/Temp/VMBuilds/Test/mega_atmega2560/Debug"
Additional Defines: VM_DBT_HARDWARESERIAL 0;VM_DBT_SOFTWARESERIAL 1;VM_DBT_FASTSERIAL 2;VM_DBT_USB 3;VM_DBT_TEENSY 4;VM_DBT_UART 5;VM_DBT_USART 6;VM_DBT_USBSERIAL 7;VM_DBT_TTYUART 8;VM_DBT_NET_CONSOLE 9;VM_DBT_Uart 10;VM_DBT_COSA 11;VM_DBT_CDCSerialClass 12;VM_DBT_HARDWARESERIAL1 13;VM_DBT_HARDWARESERIAL2 14;VM_DBT_HARDWARESERIAL3 15;VM_DBT_NET_UDP 16;VM_DBT_USBAPI 17;VM_DBT_SERIALUSB 18;VM_DBT_MS430_SERIAL_ 19;VM_DBT_NO_SERIAL 20;VM_DBT_GENERIC_OBJECT 21;VM_DEBUG_ENABLE 1;VM_DEBUG;VM_DEBUG_BANDWIDTH_THROTTLE_MS 50;VM_DEBUGGER_SOFT_TRANSPORT Serial;VM_DEBUGGER_SOFT_TRANSPORT_WRITER Serial;VM_DBT VM_DBT_GENERIC_OBJECT;VM_DEBUG_BREAKPAUSE;
Api: 2.2023.1212-0
Sketch Book: "file:///C:/Users/flavi/Documents/Arduino"
User Libraries: "file:///C:/Users/flavi/Documents/Arduino/libraries"
Build Temp: "file:///C:/Users/flavi/AppData/Local/Temp/VMBuilds/Test/mega_atmega2560/Debug"
Board Support Urls: "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json,https://adafruit.github.io/arduino-board-index/package_adafruit_index.json,"
Core Include Paths
Include Path ino"
Include Path ega"
Deep search for libraries ...
Error: Unable to resolve macros for include
C:\Users\flavi\AppData\Local\Temp\VMBuilds\Test\mega_atmega2560\Debug\Test.cpp
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at Visual.Micro.Utils.CompilerStringReplacer.replaceFromMapping(String src, Dictionary`2 map, String leftDelimiter, String rightDelimiter, Boolean doubleEscape, Boolean useShortPaths)
at Visual.Micro.Utils.CompilerStringReplacer.formatAndSplit(String src, Dictionary`2 dict, Boolean recursive, Boolean bDoubleQuotedArgs, Boolean clearUnused, Boolean shortPaths, Boolean escapeStrings)
at Visual.Micro.Utils.MCUPreferencesMap.getMergeAndEmpty(String pName)
at Visual.Micro.MiroAppAPI.SketchCompilerArduino.getCommandFromRecipe(String recipe, String avrBasePath, List`1 includePaths, String sourceName, MCUPreferencesMap properties)
at Visual.Micro.MiroAppAPI.SketchCompilerArduino.CompileRecipeCaptureError(String sRecipe, FileInfo codeFile, MCUPreferencesMap brdPrefs, List`1 includePaths, List`1 extraCmdParams)
at CUPreferencesMap properties, List`1 includePaths, String srcFilename)
at String sourceFilePath, Board brd, List`1 includePaths, String targetFileNameNoPath)
Object reference not set to an instance of an object
An error was encountered during the 'Deep Search' library discovery process.
Debug build failed for project 'Test'
2- Old projects converted with the "
Convert Solution To Latest Format (Affects Arduino Project(s) Intellisense Only. Required!) " option, I get the same errors too.
3- Uninstalled and installed VS Studio (Community Edition 2022) with the same options before (described in
https://www.visualmicro.com/page/User-Guide.aspx?doc=Getting-started.html) and I get the same errors messages.
Any suggestion to fix the problem?
Or any way to use an old version of Visual Micro (before this new Linux stuff) until a new version with fix?
Best regards!
Attached file with logs.
Sent email with all logs and projects.
.