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
Hot Topic (More than 8 Replies) Intellisense conversion does not work (Read 3037 times)
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Intellisense conversion does not work
Dec 8th, 2023 at 9:02pm
Print Post  
I have several solutions where the conversion does not work.

Output of the conversion:
Code
Select All
Backup To: 8,9002130324
1. Scanning ESP32.vMicroTest for Projects...
	Identified 1 to convert.
2. Scanning Solution Configuration Mapping....
3. Amending Solution Configuration Mapping....
SLN Completed - Writing New Solution File.
4. Updating Arduino Compatible Projects...
	Converting Project: file:///D:/Daten/nnn/eee/Projects/ESP32.vMicroTest/ESP32.vMicroTest.vcxproj
		Updating Global Options...
		Updating Property Groups...
		Updating Property Sheets...
		ERROR: No Shared ImportGroups available!

Reloading 'D:\Daten\nnn\eee\Projects\ESP32.vMicroTest\ESP32.vMicroTest.sln'
Unable to get output directory for this project. Does this project contain a definition for the current solution configuration and platform?
Falscher Parameter. (Ausnahme von HRESULT: 0x80070057 (E_INVALIDARG))
Unable to get output directory for this project. Does this project contain a definition for the current solution configuration and platform?
Falscher Parameter. (Ausnahme von HRESULT: 0x80070057 (E_INVALIDARG))
 



After this, I get a yellow heading in VS that tells:
Current solution contains incorrect configurations mappings. It may cause projects to not work correctly. Open the Configuration Manager to fix them. Open Configuration Manager

I will send a reduced example to info@visualmicro.com

Thanks
  
Back to top
 
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: Intellisense conversion does not work
Reply #1 - Dec 11th, 2023 at 7:10am
Print Post  
Additional Information: when I create a new solution everything is fine including the "Arduino" behind the project name.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Intellisense conversion does not work
Reply #2 - Dec 11th, 2023 at 11:33am
Print Post  
Thanks for the report, and detail.

Can you send us all of the files from the "ProjectFolder\.vs\VMLinuxConvertBackup" folder as a ZIP, either as an attachment here or via email (with a link to this forum thread)?

Can you also confirm which version of Visual Micro you have installed? (Extensions > Manage Extensions > Installed, and select vMicro, the full version is shown on the right hand side).
  
Back to top
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: Intellisense conversion does not work
Reply #3 - Dec 11th, 2023 at 12:25pm
Print Post  
I have sent both per mail

Thanks
  
Back to top
 
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: Intellisense conversion does not work
Reply #4 - Dec 11th, 2023 at 4:23pm
Print Post  
Hi Simon,

thank you for the files. They work as expected.

I have added the Debug configuration to my original files to see, if that would fix the problem.
The conversion worked but I got an error at the end.
But the project was OK, showed "Arduino" and worked as expected.

But doing unload reload on the project show the error again.

But anyway, one step further. 

Thanks


Code
Select All
Backup To: 1,7132271991
1. Scanning ESP32.vMicroTest for Projects...
	Identified 1 to convert.
2. Scanning Solution Configuration Mapping....
3. Amending Solution Configuration Mapping....
SLN Completed - Writing New Solution File.
4. Updating Arduino Compatible Projects...
	Converting Project: file:///D:/Daten/nnn/eee/Projects/ESP32.vMicroTest/ESP32.vMicroTest.vcxproj
		Updating Global Options...
		Updating Property Groups...
		Updating Property Sheets...
		WARN: No Shared ImportGroups available!
		Updating User Macros...
		Adding Property Groups...
		Updating Item Definition Groups...
		Updating Files Within the Project...
		ESP32.vMicroTest Completed - Saving VCXPROJ File
5. Conversion Completed Succesfully!

Reloading 'D:\Daten\nnn\eee\Projects\ESP32.vMicroTest\ESP32.vMicroTest.sln'
*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) 




  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Intellisense conversion does not work
Reply #5 - Dec 11th, 2023 at 4:29pm
Print Post  
Thanks for confirming the files supplied work as expected.

To get it to work we added the entries to the SLN File for the Debug configuration, which should be added the same as the release ones but replacing Release with Debug, in both the Pre and Post Solution sections.

We have improved the error message in the upcoming release to give more indication of the issue, and to direct users to send us the files (as you have) so we can investigate.

We will further improve this in the future so it self-resolves.
  
Back to top
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: Intellisense conversion does not work
Reply #6 - Dec 11th, 2023 at 4:34pm
Print Post  
Does that mean that I simply should fix nothing and wait for a new release?
I have several solutions with the same problem.
I guess they are copy of a copy of a copy ...  Smiley
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Intellisense conversion does not work
Reply #7 - Dec 11th, 2023 at 4:41pm
Print Post  
We are still working on the full fix which will self-resolve the situation, and when this is available we will update this thread.

To amend the SLN Files should be simple enough, then they will convert as expected with the current version of the software.

The edits we made are highlighted in green in the below screenshot from your SLN file, but if you have further trouble before the fixed version is available let us know.
  

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


Posts: 32
Joined: Nov 14th, 2015
Re: Intellisense conversion does not work
Reply #8 - Dec 11th, 2023 at 5:36pm
Print Post  
Update: Resolved

Thanks for the explanation. The topic is not urgent.
I will try it with another solution and /or perhaps simply wait for the next release.

Thank you for investigating and fixing.
« Last Edit: Jan 9th, 2024 at 3:39pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint