I originally raised this in ticket T493274, but it seems to have got far worse in the last few weeks, possibly coinciding with visual studio updates. I've started getting these errors every few minutes, and not just in code windows any more. For example, I've currently got a "ExtractStringToResourceProvider" error and an "ExtractStringToResourceReplaceAllProvider" error attached to the ErrorList window in VS2017
Stack traces are below:
System.NullReferenceException : Object reference not set to an instance of an object.
at DevExpress.CodeAnalysis.VisualBasic.Refactorings.ExtractStringToResource.ExtractStringToResourceRefactoring.ChechAvailability(ITextDocumentServices textDocumentServices,RefactoringContext context,Boolean replaceAll)
at async DevExpress.CodeAnalysis.VisualBasic.Refactorings.ExtractStringToResource.ExtractStringToResourceRefactoring.GetActionsAsync(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.VisualBasic.Features.ExtractStringToResource.ExtractStringToResourceProvider.GetRefactoringsAsync(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.GetAvailableRefactorings(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
System.NullReferenceException : Object reference not set to an instance of an object.
at DevExpress.CodeAnalysis.VisualBasic.Refactorings.ExtractStringToResource.ExtractStringToResourceRefactoring.ChechAvailability(ITextDocumentServices textDocumentServices,RefactoringContext context,Boolean replaceAll)
at async DevExpress.CodeAnalysis.VisualBasic.Refactorings.ExtractStringToResource.ExtractStringToResourceRefactoring.GetActionsAsync(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.VisualBasic.Features.ExtractStringToResource.ExtractStringToResourceReplaceAllProvider.GetRefactoringsAsync(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.GetAvailableRefactorings(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
InlineTempProvider was another one I think I saw a lot of
Hi Kevin,
Please collect CodeRush log files and send them to us for research. You can use the "CodeRush\Support\CodeRush Logs…" menu item to open the log files folder. It would be very helpful if you could also provide a source code fragment where these errors happen. In addition, specify the version of Visual Studio you are currently using. Click the "Help\About Microsoft Visual Studio" button and then "Copy Info", and paste it to this ticket.
Some log files attached. My current VS2017 version is as follows - I see there's a new update today, but I've not installed it yet:
Microsoft Visual Studio Enterprise 2017
Version 15.1 (26403.3) Release
VisualStudio.15.Release/15.1.0+26403.3
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Enterprise
Architecture Diagrams and Analysis Tools 00369-60000-00001-AA153
Microsoft Architecture Diagrams and Analysis Tools
Visual Basic 2017 00369-60000-00001-AA153
Microsoft Visual Basic 2017
Visual C# 2017 00369-60000-00001-AA153
Microsoft Visual C# 2017
Visual C++ 2017 00369-60000-00001-AA153
Microsoft Visual C++ 2017
Visual F# 4.1 00369-60000-00001-AA153
Microsoft Visual F# 4.1
Add New File 3.5
The fastest and easiest way to add new files to any project - including files that start with a dot
ASP.NET and Web Tools 2017 15.0.30320.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 1.0
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.50303.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.30209.0
Azure App Service Tools v3.0.0
Bundler & Minifier 2.4.340
Adds support for bundling and minifying JavaScript, CSS and HTML files in any project.
CodeRush for Roslyn 16.2.7.0
DevExpress CodeRush for Roslyn package.
Common Azure Tools 1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
CSS Tools 1.0.14
Provides additional features to the CSS editor in Visual Studio.
Dotfuscator Community Edition 5.27.0.4679-release+ce-vs15.e4937ba.20161216.158
PreEmptive Protection - Dotfuscator CE
Editor Enhancements 1.0.27
Provides additional features such as HTML and URL encodings, transformations and sorting of selected text the editor.
EditorConfig Language Service 1.17.202
Language service for .editorconfig files.
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
File Icons 2.6
Adds icons for files that are not recognized by Solution Explorer
File Nesting 2.6.67
Automatically nest files based on file name and enables developers to nest and unnest any file manually
GitHub.VisualStudio 2.2.0.8
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
HTML Tools 1.0.3
Productivity tools for the HTML editor
Image Optimizer 3.6.103
Uses industry standard tools to optimize any JPEG, PNG and Gifs - including animated Gifs. Can do both lossy and lossless optimization.
Image Sprites 1.4.47
Boost your website's performance by creating image sprites to reduce the amount of HTTP requests needed.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JavaScript Transpiler 0.8.20
The simplest way to transpile JS and JSX to EcmaScript 5 without any complicated node.js tools in your project. It uses the TypeScript compiler behind the scenes.
KofePackagePackage Extension 1.0
KofePackagePackage Visual Studio Extension Detailed Info
Markdown Editor 1.11.201
A full featured Markdown editor with live preview and syntax highlighting. Supports GitHub flavored Markdown.
MenuCommands Extension 1.0
MenuCommands Visual Studio Extension Detailed Info
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Node.js Tools 1.3.50316.00
Adds support for developing and debugging Node.js apps in Visual Studio
NuGet Package Manager 4.1.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Open Command Line 2.1.179
Opens a command line at the root of the project. Support for all consoles such as CMD, PowerShell, Bash etc. Provides syntax highlighting, Intellisense and execution of .cmd and .bat files.
Package Installer 2.0.99
Makes it easier, faster and more convenient than ever to install Bower, npm, Yarn, JSPM, TSD, Typings and NuGet packages to any project
Package Security Alerts 1.0.17
Identifies npm and Bower packages that contains known security vulnerabilities to ensure your project is always using the most secure package versions.
Project File Tools 1.0.1
Provides Intellisense and other tooling for XML based project files such as .csproj and .vbproj files.
Redgate ReadyRoll 1.13.23.3401
Extend DevOps processes to your SQL Server databases and safely automate database deployments.
Visit https://www.red-gate.com/readyroll for more information.
Copyright © 2011 Red Gate Software Ltd. All rights reserved.
This software contains components from Component Owl.
SQL Server is a registered trademark of Microsoft Corporation.
Visual Studio is a registered trademark of Microsoft Corporation.
ReadyRoll contains code from the following open source software:
NuGet https://www.nuget.org/
SQL LocalDB Wrapper https://github.com/martincostello/sqllocaldb
Autofac https://autofac.org/
Json.NET https://json.net/
MahApps.Metro http://mahapps.com/
SemVer https://github.com/maxhauser/semver
Menees Diff Controls http://www.menees.com/
Log4Net http://logging.apache.org/log4net/
Extended WPF Toolkit https://wpftoolkit.codeplex.com/
Code InfoBox VSX http://www.codeproject.com/Articles/55196/Code-InfoBox-Visual-Studio-Extension-VSX
OctoPack https://github.com/OctopusDeploy/OctoPack
SQLite https://sqlite.org/
This product contains icons from http://www.visualpharm.com distributed under a free backlink license.
For license details or other notices relating to the above software, please see NOTICE.TXT and EULA.rtf in the ReadyRoll application folder.
Redgate SQL Prompt 7.4.1.1025
Write, format, and refactor SQL effortlessly
SQL Server Data Tools 15.1.61702.140
Microsoft SQL Server Data Tools
Syntax Highlighting Pack 2.6.118
Adds syntax highlighting and snippet support for a wide variety of programming languages such as Clojure, Go, Jade, Lua, Swift, Ruby and many more…
TypeScript 2.1.5.0
TypeScript tools for Visual Studio
Visual Commander 2.6.3
For more information about Visual Commander, see the website at https://vlasovstudio.com/visual-commander/.
Vue.js Pack 2017 1.1.8
Contains HTML Intellisense and code snippets for the Vue.js JavaScript library
Web Compiler 1.11.326
Compiler for LESS, Sass and CoffeeScript files
Web Extension Pack 2017 15.0.2
The easiest way to set up Visual Studio for the ultimate web development experience.
ZenCoding 1.2.11
Provides ZenCoding for the HTML Editor - full support for static HTML, Razor and WebForms.
Kevin,
Thank you for the provided log files. We have made several corrections and have prepared a daily build including the changes.
Please install the following build: CodeRush.Roslyn-16.2.7.17109.vsix and see that it works better.
I am looking forward to hearing from you.
Thank you Alex, will install shortly and see how it performs. In case it's not covered, I just had another case. This time it was in the Output window after running a unit test, and was for ParameterRefactoringProvider:
System.NullReferenceException : Object reference not set to an instance of an object.
at async DevExpress.CodeAnalysis.Refactorings.RefactoringAction.IsAvailable(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.RefactoringIsAvailable(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.GetAvailableRefactorings(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
It won't let me zip the relevant log file, as it's still in use, but here is the content:
Information: Initializing CodeRush package
Information: Starting CodeRush Engine
Warning: Project item events for VJSharpProjectItemsEvents were not hooked because it is not installed.
Information: Initializing monitors…
Information: Initializing 'HookMonitor'…
Information: 'HookMonitor' successfully initialized.
Information: Monitors initialized
Information: Initializing services…
Information: Initializing 'CodeMetric'…
Information: 'CodeMetric' successfully initialized.
Information: Initializing 'ActiveContextEventsService'…
Information: 'ActiveContextEventsService' successfully initialized.
Information: Initializing 'WpfTextViewCreationListener'…
Information: 'WpfTextViewCreationListener' successfully initialized.
Information: Initializing 'Menus'…
Information: 'Menus' successfully initialized.
Information: Initializing 'Keyboard'…
Information: 'Keyboard' successfully initialized.
Information: Initializing 'Version'…
Information: 'Version' successfully initialized.
Information: Initializing 'Debug Visualizer'…
Information: 'Debug Visualizer' successfully initialized.
Information: Initializing 'ToolWindows'…
Information: 'ToolWindows' successfully initialized.
Information: Initializing 'Strings'…
Information: 'Strings' successfully initialized.
Information: Initializing 'Contexts'…
Information: 'Contexts' successfully initialized.
Information: Initializing 'CodeStyle'…
Information: 'CodeStyle' successfully initialized.
Information: Initializing 'CodeCleanUp'…
Information: 'CodeCleanUp' successfully initialized.
Information: Initializing 'TextCommand'…
Information: 'TextCommand' successfully initialized.
Information: Initializing 'DynamicList'…
Information: 'DynamicList' successfully initialized.
Information: Initializing 'Template'…
Information: 'Template' successfully initialized.
Information: Initializing 'Shortcuts'…
Information: 'Shortcuts' successfully initialized.
Information: Initializing 'SmartSelections'…
Information: 'SmartSelections' successfully initialized.
Information: Initializing 'Refactoring'…
Information: 'Refactoring' successfully initialized.
Information: Initializing 'Option'…
Information: 'Option' successfully initialized.
Information: Initializing 'Navigation'…
Information: 'Navigation' successfully initialized.
Information: Initializing 'Naming'…
Information: 'Naming' successfully initialized.
Information: Initializing 'Clipboard'…
Information: 'Clipboard' successfully initialized.
Information: Initializing 'Adornments'…
Information: 'Adornments' successfully initialized.
Information: Initializing 'Action'…
Information: 'Action' successfully initialized.
Information: Initializing 'Command'…
Information: 'Command' successfully initialized.
Information: Initializing 'CREventTrackerService'…
Information: 'CREventTrackerService' successfully initialized.
Information: Services initialized
Information: Initializing plugIns…
Information: Initializing 'TestRunnerPlugIn'…
Information: 'TestRunnerPlugIn' successfully initialized.
Information: Initializing 'DecompilerPlugin'…
Information: 'DecompilerPlugin' successfully initialized.
Information: Initializing 'AdvancedSelectionPlugIn'…
Information: 'AdvancedSelectionPlugIn' successfully initialized.
Information: Initializing 'SelectionEmbeddingPlugIn'…
Information: 'SelectionEmbeddingPlugIn' successfully initialized.
Information: Initializing 'XamlPastePlugIn'…
Information: 'XamlPastePlugIn' successfully initialized.
Information: Initializing 'NextReferencePlugIn'…
Information: 'NextReferencePlugIn' successfully initialized.
Information: Initializing 'ThemeManagerPlugIn'…
Information: 'ThemeManagerPlugIn' successfully initialized.
Information: Initializing 'TestStandardPlugIn'…
Information: 'TestStandardPlugIn' successfully initialized.
Information: Initializing 'OptionsPlugIn'…
Information: 'OptionsPlugIn' successfully initialized.
Information: Initializing 'NgenPlugin'…
Information: 'NgenPlugin' successfully initialized.
Information: Initializing 'SetupWizardPlugIn'…
Information: 'SetupWizardPlugIn' successfully initialized.
Information: Initializing 'StandardPlugIn'…
Information: 'StandardPlugIn' successfully initialized.
Information: Initializing 'CodeIssuesEnginePlugIn'…
Information: 'CodeIssuesEnginePlugIn' successfully initialized.
Information: Initializing 'TempBreakpointsPlugin'…
Information: 'TempBreakpointsPlugin' successfully initialized.
Information: Initializing 'DebugVisualizerPlugIn'…
Information: 'DebugVisualizerPlugIn' successfully initialized.
Information: Initializing 'ContinuousTestingPlugIn'…
Information: 'ContinuousTestingPlugIn' successfully initialized.
Information: PlugIns initialized
Error: Failed to set Global::Ctrl+Alt+BACKSPACE binding for CodeRush.MultiSelectClear
Error: Message: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Error: Type: System.ArgumentException
Error: Source:
Error: StackTrace: at EnvDTE.Command.set_Bindings(Object pVar)
at DevExpress.CodeRush.Package.CommandServices.RegisterCommandKeyBinding(IAction action, Nullable`1 commandId)
Information: CodeRush Engine Started
Information: Search tests in 'FibriaEDIPluginTests' project…
Information: Search tests in 'EdifactPluginTests' project…
Information: Search tests in 'CommsGatewayMCPTests' project…
Information: Search tests in 'CommsGatewayMCPTests' project…
Information: Search tests in 'PapinetPluginTests' project…
Information: Search tests in 'ParserTests' project…
Information: Search tests in 'ParserTests' project…
Information: Search tests in 'MCPPluginTests' project…
Information: Search tests in 'MCPPluginTests' project…
Error: Message: Collection was modified; enumeration operation may not execute.
Error: Type: System.InvalidOperationException
Error: Source: mscorlib
Error: StackTrace: at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at DevExpress.CodeRush.Foundation.Adornments.DocumentAdornmentHolder.<GetDocumentAdornments>d__23.MoveNext()
at System.Linq.Buffer`1…ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at DevExpress.CodeRush.Foundation.Adornments.DocumentAdornmentHolder.RemoveAllAdornments(TextSpan span, TextVersion textVersion)
at DevExpress.CodeRush.Foundation.Adornments.DocumentAdornmentHost.RemoveAllAdornments(TextSpan span, TextVersion textVersion)
at DevExpress.CodeRush.Foundation.Adornments.DocumentAdornmentHost.BufferChanged(Object sender, TextBufferChangedEventArgs e)
Error: Message: Object reference not set to an instance of an object.
Error: Type: System.NullReferenceException
Error: Source: DevExpress.CodeAnalysis.VisualBasic
Error: StackTrace: at DevExpress.CodeAnalysis.VisualBasic.Refactorings.AvailabilityHelper.CanReorderArgument(SemanticModel model, IList`1 arguments, ArgumentSyntax argument)
at DevExpress.CodeAnalysis.VisualBasic.Refactorings.AvailabilityHelper.CanReorderArgument(SemanticModel model, ArgumentSyntax argument)
at DevExpress.CodeAnalysis.VisualBasic.Refactorings.AvailabilityHelper.CanReorderArgument(SemanticModel model, SyntaxNode syntaxNode)
at DevExpress.CodeAnalysis.VisualBasic.Refactorings.AvailabilityHelper.<CanReorderAtCaret>d__16.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.VisualBasic.Refactorings.ReorderParametersRefactoring.<RefactoringIsAvailable>d__7.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DevExpress.CodeAnalysis.Refactorings.RefactoringAction.<IsAvailable>d__9.MoveNext()
Information: Search tests in 'FibriaEDIPluginTests' project…
Kevin,
Thank you for the additional log. I have registered a new ticket for this issue: NullReferenceException is thrown inside reorder parameters refactoring
Looks better so far, though I have been working on a C# project since installing it, whereas I was working on a VB project when I was getting the errors. Assuming that's not relevant, it looks like you've resolved it!