Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Cannot open source file in Visual Studio IDE

Moderators: Vladimir Kondratyev, Anton Katilin

Cannot open source file in Visual Studio IDE

Postby DJarrin » Fri Mar 23, 2007 8:26 pm

No matter what I try, the "Open Declaration in Visual Studio" never opens the selected class in the IDE.

Here's the entry from the log,

[YourKit Profiler 2.0.3 for .NET] VS Plugin connected
[YourKit Profiler 2.0.3 for .NET] System.Runtime.InteropServices.COMException: A namespace may exist in multiple projects so it is not possible to retrieve the name through the ProjectItem
at EnvDTE.CodeElement.get_ProjectItem()
at YourKit200703092021.VSPlugin.tryToShow(CodeElement codeType)


I do not have repeated namespaces in multiple projects. I do have multiple projects on my Solution, but the namespaces are different across projects. Also, the namespaces may not match exactly the name of the project, for example:

My class "TabControl" has the namespace Company.Product.Application.WinForms and the project name is "Controls".

One thing to consider is that I am using Visual Studio "Solution Folders" to organize different projects in separate "Solution Folders." I have done some Visual Studio DTE programming and know that the DTE API may not handle "Solution Folders."

I would suggest you attempt to find the source file to open through inspecting the .PDB file as other products do.

I really hope you can come up with a workable solution in the near future.
DJarrin
 
Posts: 15
Joined: Thu Mar 08, 2007 3:31 pm

Postby Vladimir Kondratyev » Sat Mar 24, 2007 5:08 pm

Please send us complete log file (from %USER_HOME%\.ynp\logs directory) to support(at)yourkit.com. It will help a lot to investigate and fix the problem. Also it will be _very_ helpful if you send us some test demo VS-project which reproduces the problem.

Thank you in advance.

Sincerely,
Vladimir Kondratyev
YourKit, LLC
Vladimir Kondratyev
 
Posts: 1444
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Vladimir Kondratyev » Mon Mar 26, 2007 2:59 pm

We've managed to reproduce the problem. The bugfix release 2.0.6 will be available for download today.

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
 
Posts: 1444
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Anton Katilin » Mon Mar 26, 2007 4:20 pm

Build 2.0.6 is available for download at http://www.yourkit.com/dotnet/download/
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am

Postby Chris C » Tue Apr 10, 2007 3:49 pm

Hi,

just dowloaded the latest version today, which generally speaking, looks good...

I seem to be having the same issue regarding source control integration, I've looked at the logs in the folder you mentioned, nothing in there apart from messages saying that the session has started/stopped.

The normal solution I use is large, having many folders and projects, I've created another solution with just the application in it, I still get the same problem.

Is there anything else I should be looking at?

Thanks,

Chris
Chris C
 
Posts: 2
Joined: Tue Apr 10, 2007 3:19 pm

Postby Chris C » Tue Apr 10, 2007 4:53 pm

Just realised a slight typo - I meant source code integration, as opposed to source control integration!
Chris C
 
Posts: 2
Joined: Tue Apr 10, 2007 3:19 pm

Postby Vladimir Kondratyev » Wed Apr 11, 2007 3:36 pm

Hello Chris,

Please provide more information about the code you are trying to open (exact type name or method name or field name etc). How many projects does your solution have?

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
 
Posts: 1444
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany


Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

cron