Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic BUG: Latest update of Visual Micro fails in previously stable environment (RESOLVED) (Read 2180 times)
cfeied
Junior Member
**
Offline


Posts: 49
Joined: May 18th, 2016
BUG: Latest update of Visual Micro fails in previously stable environment (RESOLVED)
Jan 2nd, 2024 at 1:49am
Print Post  
Hi Tim,

I'm a long-time user of VM and former Microsoft dev guy, as you may remember from previous communications. All has been very stable for me ever since we got the linux workflow.

Today (for unrelated reasons) I was compelled to update VisualStudio 2022 a minor step, to version 17.8.3.

I took the opportunity to also update VisualMicro to version 2023.1212.2200. With this version installed I cannot work on any existing projects and cannot create any new projects

Repro: turn on "verbose output," turn off "stop on error," and allow VM to create a new arduino project. Change nothing in the project and attempt to build it. 

On my system this yields the following error messages:

Error #1
Quote:
*Linux/FolderOnly intelli - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.


Error #2
Quote:
Error: Unable to resolve macros for include


Error #3
Quote:
An error was encountered during the 'Deep Search' library discovery process.


I have attached the verbose build log from this process.

The boards I use are Teensy 3.x and 4.x. I use VisualMicro exclusively, but I do have Arduino 1.8.19 and teensyduino 1.59-beta4 installed; they have been stable with the prior versions of VM for a very long time. I cannot install Arduino 2.x at this time because the folder location changes break certain other dependencies.

Unless you have some immediate solution, I will attempt to roll back to the previous version of VM. 

If additional information or assistance in debugging this problem would help, feel free to text me at 
425 -- 894 -- 1701  

Thanks!

Craig
Cool


« Last Edit: Jan 11th, 2024 at 5:08pm by cfeied »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
cfeied
Junior Member
**
Offline


Posts: 49
Joined: May 18th, 2016
Re: BUG: Latest update of Visual Micro fails in previously stable environment
Reply #1 - Jan 2nd, 2024 at 3:09am
Print Post  
Update: 

The problem persisted after uninstalling the latest version of VM and installing version 023.1103.2202.

Rolling back to VM version 2023_1103_2200 did resolve the problem.

In case it helps I have attached a verbose build log for a new empty arduino project created with VM version 023.1103.2202, showing the same errors.

thanks,

Craig
« Last Edit: Jan 2nd, 2024 at 5:39am by cfeied »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2710
Joined: Feb 13th, 2019
Re: BUG: Latest update of Visual Micro fails in previously stable environment
Reply #2 - Jan 2nd, 2024 at 5:16pm
Print Post  
Thanks for the detail around this, can you try the latest release (24.0102.00) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
cfeied
Junior Member
**
Offline


Posts: 49
Joined: May 18th, 2016
Re: BUG: Latest update of Visual Micro fails in previously stable environment
Reply #3 - Jan 2nd, 2024 at 6:56pm
Print Post  
Simon@Visual Micro wrote on Jan 2nd, 2024 at 5:16pm:
Thanks for the detail around this, can you try the latest release (24.0102.00) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES


I have installed the newest version (2024_0102_2200) and am sorry to report that the problem has not yet been resolved. Immediately upon opening an existing project I see the following output:

Code
Select All
*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)
 



Although the startup message above refers to "Linux/FolderOnly," this is an ordinary Arduino project that was created by VisualMicro.

Attempts to build the solution result in the same errors previously reported. I have attached the verbose build output from this most recent attempt.

I noticed a previous suggestion (in another thread) to try switching to "Visual Micro - No IDE"  I can report that when I attempt this, Visual Studio prompts me with a "Connect to Linux" box that says "This project uses remote builds, and a remote machine is required to host the builds and debug. Please enter the remote machine details below."  Since I do not have linux hosts configured for remote builds, I was not able to proceed further.

Fortunately, rolling back to version 2023.1103.2200 once again restores functionality.

thanks,

Craig


« Last Edit: Jan 2nd, 2024 at 7:08pm by cfeied »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2710
Joined: Feb 13th, 2019
Re: BUG: Latest update of Visual Micro fails in previously stable environment
Reply #4 - Jan 3rd, 2024 at 9:56am
Print Post  
Thanks for the update and apologies for the incomplete fix, can you try the updated release (24.0102.01)?
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
cfeied
Junior Member
**
Offline


Posts: 49
Joined: May 18th, 2016
Re: BUG: Latest update of Visual Micro fails in previously stable environment
Reply #5 - Jan 11th, 2024 at 5:06pm
Print Post  
Simon@Visual Micro wrote on Jan 3rd, 2024 at 9:56am:
... can you try the updated release (24.0102.01)?
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Hi Simon,

I can confirm that for me the bug has been resolved with release (24.0102.01). 

I tested this extensively with VS 2022 versions 17.8.1 and 17.8.4 (the current version as of 2024-01-11).  

Thank you very much!

Craig F

« Last Edit: Jan 11th, 2024 at 5:07pm by cfeied »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint