microsoft / RTVS

R Tools for Visual Studio.
MIT License
390 stars 110 forks source link

Error loading R package #2505

Closed huguesv closed 8 years ago

huguesv commented 8 years ago

From activity log. I've upgraded from yesterday's build. This is Windows 7.

LegacySitePackage failed for package [RPackage]Source: 'Microsoft.VisualStudio.R.Package' Description: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at 
Microsoft.VisualStudio.R.Package.Options.R.RToolsSettingsImplementation.SaveSettings() at
 Microsoft.VisualStudio.R.Package.Options.R.RToolsSettingsImplementation.set_Connections(IConnectionInfo[] value) at
 Microsoft.R.Components.ConnectionManager.Implementation.ConnectionManager.SaveConnectionsToSettings() at
 Microsoft.R.Components.ConnectionManager.Implementation.ConnectionManager.UpdateRecentConnections() at
 Microsoft.R.Components.ConnectionManager.Implementation.ConnectionManager..ctor(IStatusBar statusBar, IRSettings settings, IRInteractiveWorkflow interactiveWorkflow) at
 Microsoft.R.Components.ConnectionManager.Implementation.ConnectionManagerProvider.CreateConnectionManager(IRInteractiveWorkflow interactiveWorkflow) at
 Microsoft.R.Components.InteractiveWorkflow.Implementation.RInteractiveWorkflow..ctor(IRSessionProvider sessionProvider, IConnectionManagerProvider connectionsProvider, IRHistoryProvider historyProvider, IRPackageManagerProvider packagesProvider, IRPlotManagerProvider plotsProvider, IActiveWpfTextViewTracker activeTextViewTracker, IDebuggerModeTracker debuggerModeTracker, ICoreShell coreShell, IRSettings settings, IWorkspaceServices wss, Action onDispose) at
 Microsoft.VisualStudio.R.Package.Repl.VsRInteractiveWorkflowProvider.CreateRInteractiveWorkflow() at
 System.Lazy`1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy`1.get_Value() at
 Microsoft.VisualStudio.R.Package.Repl.VsRInteractiveWorkflowProvider.GetOrCreate() at
 Microsoft.VisualStudio.R.Packages.R.PackageCommands.GetCommands(ExportProvider exportProvider) 
at Microsoft.VisualStudio.R.Packages.R.RPackage.CreateMenuCommands() at
 Microsoft.VisualStudio.R.Package.Packages.BasePackage`1.Initialize() at Microsoft.VisualStudio.R.Packages.R.RPackage.Initialize() at
 Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)
MikhailArkhipov commented 8 years ago

https://github.com/Microsoft/RTVS/commit/d438dc8cf54f4b468cdf5687d4de94cd7f754da2