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
 [VS 2010] Visual Assist Disabled for C# project
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AshMcConnell
Junior Member

16 Posts

Posted - Jan 26 2012 :  07:13:21 AM  Show Profile  Reply with Quote
Hi Folks,

I've been using Visual Assist with C++ projects for years. I've started writing from C# (for a Unity3d Project) and Visual Assist is completely disabled, everything is greyed out.

Any ideas what could be causing the problem?

Thanks
Ash

Edited by - AshMcConnell on Jan 26 2012 07:13:56 AM

feline
Whole Tomato Software

United Kingdom
18748 Posts

Posted - Jan 26 2012 :  12:24:28 PM  Show Profile  Reply with Quote
I am assuming you are working in .cs files. If so can you check:

VA Options -> Projects -> File Handling -> Extensions to ignore

and see if .cs; has been added to this list? This would certainly cause the effect you are seeing.

If .cs is not in this list, can you try creating a new, default C# solution, and see if VA is active in this solution?

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

AshMcConnell
Junior Member

16 Posts

Posted - Jan 30 2012 :  04:58:36 AM  Show Profile  Reply with Quote
Hi Feline,

Sorry for the late reply, I had a bit of a busy weekend.

It oddly just started working, I think perhaps when I reopened the solution. Perhaps it was the way unity starts visual studio to open a .cs file.

Not sure why, but everything works now :)

All the best,
Ash
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18748 Posts

Posted - Jan 30 2012 :  11:33:41 AM  Show Profile  Reply with Quote
When the problem went away, did you load the IDE yourself and then load the solution?

If there is a problem related to how unity starts visual studio then this might come back again next time unity loads the IDE. Just something to be aware of. If this problem comes back again then please let me know, and I will do what I can to help.

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

AshMcConnell
Junior Member

16 Posts

Posted - Jan 31 2012 :  02:41:36 AM  Show Profile  Reply with Quote
Hi Feline,

Yep, just tried double clicking on a .cs file in unity and it loads the solution, but VAX isn't active. It works fine if I load the solution manually. It's not a huge problem to start VS manually (and how I'd normally work in any case), just a little odd.

Thanks for your help
All the best,
Ash
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18748 Posts

Posted - Jan 31 2012 :  10:25:33 AM  Show Profile  Reply with Quote
This is a little odd. Can you please try running Process Explorer:

http://technet.microsoft.com/en-us/sysinternals/bb896653

and right click on the "devenv.exe" line, and select Properties. On the Image tab, you should have the command line used to launch the IDE. Are there any command line switches? Is "devenv.exe" listed as a child process of unity?

In the IDE, are you able to load VA's options dialog? If not, this would suggest VA is disabled for some reason.

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

AshMcConnell
Junior Member

16 Posts

Posted - Feb 01 2012 :  08:58:59 AM  Show Profile  Reply with Quote
Hi Feline,

It has -Embedding as a switch. devenv.exe is listed under wininit.exe->services.exe->svchost.exe. The VA Options dialog is greyed out.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18748 Posts

Posted - Feb 01 2012 :  7:16:18 PM  Show Profile  Reply with Quote
It turns out the "-Embedding" switch does something "interesting". When I use the Windows run dialog to run the command:

devenv.exe -Embedding <path to .cs file>

the VS2010 process starts, and then exits, without ever appearing on the screen. Which makes sense if VS2010 thinks it is being embedded inside another process, but that process does not actually exist, which it doesn't here.

Is Unity something I can just download for free, perhaps a demo version, and try out here? A quick web search found this:

http://unity3d.com/

is this the right product? If so which version are you using? What do I need to know about getting it to use VS2010 as an editor? Also which OS are you working under? Is this a 32bit or 64bit OS?

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

AshMcConnell
Junior Member

16 Posts

Posted - Feb 07 2012 :  11:22:07 AM  Show Profile  Reply with Quote
Hi Feline,

Sorry I didn't get this notification for some reason. Yep Unity3d.com is correct, it can be downloaded for free. I am using Windows 7 64 bit.

I think, by default, it uses Monodevelop, but it's quite easy to switch to Visual Studio. Here is how: -

http://unity3d.com/support/documentation/Manual/VisualStudioIntegration.html

quote:
In Unity, go to Edit->Preferences, and make sure that Visual Studio is selected as your preferred external editor.
Doubleclick a C# file in your project. Visual Studio should automatically open that file for you.
You can edit the file, save, and switch back to Unity.


All the best,
Ash
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18748 Posts

Posted - Feb 09 2012 :  12:09:36 AM  Show Profile  Reply with Quote
Thank you for the details, I am seeing the same problem here. Interestingly there is no sign of a problem if I set the external editor to VS2008, so that is a possible work around if you have access to VS2008.

case=64588

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

Pathogen-David
Starting Member

USA
1 Posts

Posted - Mar 21 2012 :  02:13:42 AM  Show Profile  Reply with Quote
I can confirm that the same thing happens to me with Visual Studio 2010 on Windows 7 64-bit with Unity 3.5.

The workaround of launching Visual Studio via the solution file generated by Unity also works for me, opening scripts in Unity still causes them to be opened in the Visual Studio instance I started as expected, so this workaround is good enough for now.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18748 Posts

Posted - Mar 22 2012 :  4:04:26 PM  Show Profile  Reply with Quote
Thank you for the update, it is good to know that this work around is working.

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

NMD
Starting Member

1 Posts

Posted - Apr 14 2012 :  1:07:41 PM  Show Profile  Reply with Quote
I have the same issue, If I load VS2010 from within unity VAX is completely disabled, cant even get at the options.

If I open the solution manually in VS, VAX works just fine... Its kind of annoying actually but still better than using Mono Develop.

Win 7 x64, VS2010 Ultimate, Unity 3.5 Pro.

I know this is the wrong forum but wouldn't it be awesome if Unity supported debugging in VS?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18748 Posts

Posted - Apr 17 2012 :  3:19:36 PM  Show Profile  Reply with Quote
This is still on our list of known bugs, but unfortunately no progress on fixing this yet.

As for Unity supporting debugging in VS, that is something you would have to ask the Unity developers about. VA stays out of the way of debugging, since we are here to help you with your code, not with working out what your program is doing

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 19 2014 :  12:39:06 AM  Show Profile  Reply with Quote
case=64588 is fixed in build 2047
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000