roslyn: File Rename has NullReferenceException
From @ardalis on January 16, 2017 23:21
Trying to rename a file and getting a failure with stack trace shown:
Stack trace:
System.AggregateException : One or more errors occurred. —> Object reference not set to an instance of an object.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.InvokeWorker(Func1 getFromDocument,IProgressTracker progressTracker,CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.<>c__DisplayClass18_0.<InvokeCore>b__0() at Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformAction(IExtensionManager extensionManager,Object extension,Action action) at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject) ---> (Inner Exception #0) System.NullReferenceException : Object reference not set to an instance of an object. at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.VisualStudioWorkspaceImpl.RemoveDocumentCore(DocumentId documentId,Boolean isAdditionalDocument) at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.VisualStudioWorkspaceImpl.ApplyDocumentRemoved(DocumentId documentId) at Microsoft.CodeAnalysis.Workspace.ApplyProjectChanges(ProjectChanges projectChanges) at Microsoft.CodeAnalysis.Workspace.TryApplyChanges(Solution newSolution,IProgressTracker progressTracker) at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.VisualStudioWorkspaceImpl.TryApplyChanges(Solution newSolution,IProgressTracker progressTracker) at Microsoft.CodeAnalysis.CodeActions.RenameDocumentOperation.TryApply(Workspace workspace,IProgressTracker progressTracker,CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Editor.Implementation.CodeActions.CodeActionEditHandlerService.ProcessOperations(Workspace workspace,ImmutableArray
1 operations,IProgressTracker progressTracker,CancellationToken cancellationToken)
at async Microsoft.CodeAnalysis.Editor.Implementation.CodeActions.CodeActionEditHandlerService.ApplyAsync(<Unknown Parameters>)<—
Copied from original issue: dotnet/roslyn-project-system#1202
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 39 (36 by maintainers)
oh. It’s in a folder called “Clutter”. WTF. What on earth is that folder for??