-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Visual Studio Nuget Package Manager UI does not open if other extension is enabled #11636
Comments
@tonyhallett Could you give us repro steps? |
No. Nobody has noticed anything in particular that could have been the cause. It has happended to me in the last 20 minutes believe it or not ! The first time I noticed it was in a UWP project ( that I ran no tests in ) - a project type that I rarely use. Note that the Package Manager Console can be opened and that there is nothing reported in the Package Manager Output Window Pane. Unfortunately game bar recording do not show the context menu otherwise I would post it. |
If I fork the repo and build the vsix can I debug locally ? Do you want to see my screen some time tomorrow ? I am in the UK. |
Which repo are you referring here?
Sorry, I'm afraid I can't attend it, I have other responsibilities too. |
Nuget |
Sure, you can. We have independent contributors. |
Thanks for the links - the debugging link had the information for installing that I required. |
Debugging is a good suggestion. Just curious, do you test/debug your VSIX in the VS Experimental Instance? If you open NuGet PMUI in that Experimental VS, does the same error occur? Another quick thing to check:
This is the sort of error I've seen with assembly version issues/conflicts. I'd check any configs you may find here:
Also any assembly errors show up in ILDasm? |
Indeed.
Unfortunately I do not have the issue on my machine. If it does reappear I will see if it occurs in the experimental instance. I have version 6.0.1.1 of NuGet.PackageManagement.UI. I used Reflector to check the nuget dependencies and they all opened. I opened NuGet.PackageManagement.UI in ILDasm and there were no errors. 6.0.1.1 is a release candidate.... I will update visual studio when I get the opportunity. |
@tonyhallett I reached out to the VS Extensibility team, and their suggestion was to get a full heap dump. They said,
I'd suggest, the next time a contributor has a repro of this problem, in VS use the Help -> Report a Problem to submit a report. Be sure to reference this issue, and the issue in your repo, so we can see the context of we have in this thread. Make sure to include a DMP in that report and that it finishes uploading. For more information on doing that, see https://docs.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022 |
@donnie-msft Thank you. I will inform the users of the extension. |
I am one of the users of @tonyhallett FCC extension. As per instructions, I have reproduced the issue this morning and submitted a report via Visual Studio with DMP attached: https://developercommunity.visualstudio.com/t/NuGet-Package-Manager-prevented-from-ope/1684617 |
@cutty225 Just took a look and replied. In short, the DMP is corrupted, and I could not reproduce the NuGet issue. Instead, your extension was not successfully loaded. My first guess is there's a broken MEF export in your extension. NuGet also uses an export for the Output Window in VS and implements an
|
@donnie-msft |
@cutty225 has also cleared the MEF cache FortuneN/FineCodeCoverage#213 (comment) which may be a common resolution.
Seems unlikely to me ? I will fork the repo so I can search it efficiently. Is there a method to get MEF to provide better logging ? |
Found this.. maybe a better approach than just deleting the folder.
|
Also using these MEF Analyzers may be helpful to identify code issues: |
@donnie-msft Thanks |
@donnie-msft Do you think there's still something to investigate on NuGet end? |
@nkolev92 We don't know either way until we receive a DMP and someone takes a look at that. |
Thank you reporting this issue. At this point we do not have enough information to continue investigating the issue. |
I can reproduce the error on my Visual Studio 2022 17.4.1 installation. With Fine Code Coverage activated, I get this entry in the AcivityLog.xml file, and PMUI does not show.
Version of Fine Code Coverage is 1.1.188 If I disable Fine Code Coverage extension, then the above entry is not written ti ActivityLog, and the PMUI shows up as expected. |
Reported as new issue: https://developercommunity.visualstudio.com/t/Nuget-package-manager-not-opening/10215434 |
@bstordrup Are there exact steps I can follow to reproduce the issue? I installed FCC, ran tests with code coverage, loaded the FCC tool window and then loaded Manage Packages for Solution without issues. |
@jeffkl Not sure. As I demonstrated in the screen record, all I did was to enable the FCC extension, and then the Package Management UI would no longer load. Disabling it made the PMUI work again. That were the steps provided. Did any of the files provided in by bug report that was closed provide any further information around Visual Studion? |
The feedback ticket had the recording of you enabling the FCC extension and then Package Manager not loading. I think the Activity Log also shows the error you had included in the main description. What I'd really like to do is repro it on my machine and then look at it under the debugger. |
NuGet Product Used
Visual Studio Package Management UI
Product Version
Visual Studio: 2022 Enterprise / Possibly Professional/Communiy - multiple versions
Worked before?
No response
Impact
I'm unable to use this version
Repro Steps & Context
I am a contributor to a Visual Studio extension Fine Code Coverage that is built for Visual Studio 2019 and Visual Studio 2022.
Users of the 2022 extension are reporting the following behaviour.
FCC ( Fine Code Coverage ) and (NPMUI) Nuget Package Management UI working together no problem.
For no known reason this changes
With FCC enabled NPMUI no longer works.
Disable FCC and NPMUI works.
The logs provided by the 3 users of FCC that have reported the issue are consistent in the error.
Comparing the two VS activity logs generated in each case, I can see the following in the log with FCC enabled that doesn't appear in with it disabled:
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: