Visual Micro
https://www.visualmicro.com/forums/YaBB.pl
>> >> Is this a known issue with VisualMicro?
https://www.visualmicro.com/forums/YaBB.pl?num=1568043643

Message started by David Lowndes on Sep 9th, 2019 at 4:40pm

Title: Is this a known issue with VisualMicro?
Post by David Lowndes on 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-removing-a-file-from-a-project-with.html.

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.AddInApp.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.

Title: Re: Is this a known issue with VisualMicro?
Post by Visual Micro on 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.

Title: Re: Is this a known issue with VisualMicro?
Post by Visual Micro on 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

Title: Re: Is this a known issue with VisualMicro?
Post by David Lowndes on 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.

Title: Re: Is this a known issue with VisualMicro?
Post by Visual Micro on 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 :)


Visual Micro » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2020. All Rights Reserved.