Bug 44762 - Adding a NuGet package before workspace loading is complete errors with NRE
Summary: Adding a NuGet package before workspace loading is complete errors with NRE
Status: VERIFIED FIXED
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Windows ()
Version: master
Hardware: PC Windows
: --- normal
Target Milestone: 1.0
Assignee: xamarininteractive
URL:
Depends on:
Blocks:
 
Reported: 2016-09-27 03:13 UTC by Daniel Cazzulino
Modified: 2017-02-16 16:52 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
A screenshot of the error dialog (36.29 KB, image/png)
2016-09-27 03:13 UTC, Daniel Cazzulino
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Daniel Cazzulino 2016-09-27 03:13:08 UTC
Created attachment 17755 [details]
A screenshot of the error dialog

Repro:

1 - Create a new WPF workbook
2 - While the "Loading Workspace" or "Preparing Workspace" message is being shown (this takes a bit), open File | Add Package
3 - Type a character in search

Actual result:
- A (nice looking dialog ;)) with a generic NRE message shows

Expected:
- Maybe disable the Add Package while loading isn't done yet?
Comment 1 Arpit Jha 2016-09-27 08:28:36 UTC
I have checked this issue with Workbook 0.10.0.428 and observed that before loading workbook project if we add a nuget package then on searching a nuget package throws NRE.

Screencast : http://www.screencast.com/t/bN0lEjX8h
Comment 2 Sandy Armstrong [MSFT] 2016-09-27 15:41:32 UTC
Yeah, this should be disabled. Thanks.
Comment 3 Sandy Armstrong [MSFT] 2016-10-20 23:10:13 UTC
Bug exists on Mac too.
Comment 4 Sandy Armstrong [MSFT] 2016-11-04 12:27:07 UTC
This has been fixed in recent builds.