Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA breaks "Enable Faster Project Load" in VS2017
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jschroedl
Ketchup Master

USA
86 Posts

Posted - Feb 22 2017 :  07:59:42 AM  Show Profile  Reply with Quote
VS 2017 adds an experimental C++ project feature called "Enabled Faster Project Load". If you happen to also use VA, the project will not build properly if you use this option. You will see lots of messages in the output similar to "Error: Specified cast is not valid"

According to this triage from MS support the cause is VA using older project build mechanisms.

https://developercommunity.visualstudio.com/comments/22000/view.html

I've run into this issue myself and reported it to Microsoft separately but it looks like a fix will not be coming for VS 2017 RTM.

The workaround is to disable the "faster project load" feature or to disable VA. For now, I've disabled faster project load but would really like to use it if possible.

So, perhaps Visual Assist can fix it from their end?

John

feline
Whole Tomato Software

United Kingdom
15375 Posts

Posted - Feb 22 2017 :  4:10:26 PM  Show Profile  Reply with Quote
Very interesting, thank you. This may well explain a build problem a user has reported seeing with VA active. I am currently trying to reproduce this problem here.

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
15375 Posts

Posted - Feb 23 2017 :  12:34:29 PM  Show Profile  Reply with Quote
Once I knew what I had to do, I was able to reproduce this on demand myself, and I have put in a bug report for this:

case=103990

Thankfully disabling the faster project load is a work around, but you need to know to do this.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2467 Posts

Posted - Mar 09 2017 :  12:06:52 AM  Show Profile  Reply with Quote
Build 2210 has a workaround for case=103990.
In VS2017, when Faster Project Load is enabled, Visual Assist will not be notified of changes to project properties (file added/removed, include directory properties changed, etc). VA will get the updates when the solution is next loaded.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2018 Whole Tomato Software, Inc Go To Top Of Page
Snitz Forums 2000