Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Is this a known issue with VisualMicro? (Read 226 times)
David Lowndes
Newbies
*
Offline



Posts: 2
Is this a known issue with VisualMicro?
Sep 9th, 2019 at 4:40pm
 
I reported what I believed at the time was a reproducible VS bug to MS, but they've now come back and say that it's a VisualMicro issue. Are you aware of this?

Here's my bug report to MS: https://developercommunity.visualstudio.com/content/problem/670842/vs-hangs-when....

And the MS comment:
Quote:
We have determined that the feedback applies to another product: As the problem has nothing to do with read only files. It us caused by Visual.Micro.Visual.Studio.Arduino.15.dll!Visual.Micro.Visual.Studio.Arduino.Add
InApp.IsSketchProject(object oProject)
which violates threading rules. It has to switch to UI thread before calling VCCLCompilerToolShim.PreprocessorDefinitions.
We recommend that you submit the feedback to that product team at https://www.visualmicro.com/ for Visual.Micro.Visual.Studio.Arduino.15.dll VS extensions.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10568
United Kingdom
Re: Is this a known issue with VisualMicro?
Reply #1 - Sep 9th, 2019 at 4:53pm
 
Thanks for the report. VS recently forced all extensions to work Async and this looks like a hang over from that. It hasn't been an issue in prev vs version but obviously is with the latest.

It is difficult to know which vs commands require switch to main thread before use. It's not well documented.

We will fix during the next week.
Back to top
« Last Edit: Sep 9th, 2019 at 4:54pm by Visual Micro »  
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10568
United Kingdom
Re: Is this a known issue with VisualMicro?
Reply #2 - Sep 15th, 2019 at 7:15pm
 
We switch to te main thread before accessing the cpp compiler properties in Visual Micro 1910.15

Thanks again for the report. The release will be posted to the gallery during the coming week but is already available here:-

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
Back to top
 
WWW  
IP Logged
 
David Lowndes
Newbies
*
Offline



Posts: 2
Re: Is this a known issue with VisualMicro?
Reply #3 - Sep 15th, 2019 at 11:27pm
 
I'm glad MS's comment was useful to you. I don't think the problem I reported to them was actually anything to do with VisualMicro as I can reproduce it on a machine without VM installed - but they have re-opened my bug report and should be looking at it again.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10568
United Kingdom
Re: Is this a known issue with VisualMicro?
Reply #4 - Sep 15th, 2019 at 11:34pm
 
Funny thanks for the update. I couldn't reproduce but have wrapped the compiler access in main thread anyway. Maybe the code will be removed at some future stage but it's better than having them blame us Smiley

Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print