Issue1:
With coderush installed in my cshtml file I can do like
<span[space]
or
<span>[space]
Like the first time I use the spacebar I get an error popup, from then on it just does nothing. I tried changing the expand template shortcut to Tab, I cant see any other bindings to space…
If I remove the extension everything works just fine again.
Issue2:
CR seems to conflict with WebEssentials or something in 2015 that deals with angular…
Without CR:
- Type "ng-" I see a popup of all the angular directives
With CR:
- Type "ng", then if you press dash it goes to like "ng-checked" and has moved on, you dont get your picker or even the ability to just add in your directive…
Hi Steve,
Regarding the first issue, if I understand you correctly, you can reproduce it every time you restart Visual Studio.
If so, it would be helpful if you provide with us a screenshot of the error popup.
Also, share the following information with us:
- CodeRush log files (they can be obtained here: %LocalAppData%\CodeRush\Logs);
- the ActivityLog.xml file (it can be found here: %AppData%\Microsoft\VisualStudio\14.0\ActivityLog.xml);
- Information about extensions you have installed (click the Copy Info button in the Help -> About Microsoft Visual Studio dialog).
I hope this will help us diagnose the cause of the problem on your machine.
Regarding the second issue, I have created a separate thread: CodeRush conflicts with angular directives and will answer you there.
Updated by Pavel on 25-Apr-2016:
Starting with CRR v1.0.11, log files are located at %LocalAppData%\CodeRush\Logs
I also experience the space bar issue in cshtml files. I don't use angular and have a fairly clean out of the box environment; the only other addons of note are postsharp and dot trace. I'm currently doing a lot of editing of cshtml files so have to completely disable code rush. Once I disable code rush the space bar works correctly within cshtml files. I tried to unbind any shortcuts assigned to space bar within code rush but it didn't make a difference.
I've attached the files you requested.
Visual Studio Info:
Microsoft Visual Studio Professional 2015Version 14.0.23107.0 D14RELMicrosoft .NET FrameworkVersion 4.6.01055
Installed Version: Professional
Visual Basic 2015 00325-60003-40760-AA981Microsoft Visual Basic 2015
Visual C# 2015 00325-60003-40760-AA981Microsoft Visual C# 2015
Visual C++ 2015 00325-60003-40760-AA981Microsoft Visual C++ 2015
ASP.NET and Web Tools 14.0.20626.0ASP.NET and Web Tools
ASP.NET Web Frameworks and Tools 2013 5.2.30624.0For additional information, visit http://www.asp.net/
CodeRush for Roslyn (Preview) 1.0.11.0DevExpress CodeRush for Roslyn (Preview) package.
Color Theme Designer 1.0Designer for creating new color themes
Common Azure Tools 1.5Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
GenerateUnitTest 1.0Generates unit test code for methods in classes under test.
JetBrains ReSharper Ultimate 10.0.1 Build 104.0.20151114.160203JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.
Microsoft Azure Mobile Services Tools 1.4Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.0.0NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Office Developer Tools for Visual Studio 2015 ENU 14.0.23025Microsoft Office Developer Tools for Visual Studio 2015 ENU
P4VS - Perforce Plugin for Visual Studio 2016.1.133.5290P4VS is the Perforce integration for Microsoft Visual Studio. P4VS gives developers working in Visual Studio access to Perforce version control features. P4VS gives you easy access to all of the Perforce version control tools and information you need to do your daily work. Check out, check in, see history, and more, directly from Visual Studio. P4VS is a fully compliant Visual Studio Integration Package, designed for full compatibility and ease of use. P4VS is built on P4API.NET, Perforce's fully supported API for the .NET environment. Perforce Software provides fast, robust version control to teams of all sizes working on any type of digital asset development.
PreEmptive Analytics Visualizer 1.2Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.50616.0Microsoft SQL Server Data Tools
Workflow Manager Tools 1.0 1.0This package contains the necessary Visual Studio integration components for Workflow Manager.
Hi Ian,
Thank you for providing the log files for us.
We have researched them and found that we already fixed a similar issue in another thread: System.ArgumentOutOfRangeExtension appears when editing an aspx file
Would you please install the hotfix provided there and confirm that the issue is fixed?
I experience this issue in a TypeScript file. If I press the spacebar after typing something I get an error and then I no longer get a space when I press the spacebar. Here is the contents of the 'ActivityLog.xml' which is referenced by the error message:
<entry>
<record>800</record>
<time>2016/04/28 19:11:14.394</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.NullReferenceException: Object reference not set to an instance of an object.
 at DevExpress.CodeAnalysis.SyntaxNodeExt.FindNode(SyntaxNode root, Type syntaxNodeType, TextSpan textSpan, Boolean checkParent, Boolean findInsideTrivia, Boolean getInnermostNodeForTie, Boolean checkContainsSpanBounds)
 at DevExpress.CodeAnalysis.SyntaxNodeExt.FindNode[TNodeType](SyntaxNode root, TextSpan textSpan, Boolean checkParent, Boolean findInsideTrivia, Boolean getInnermostNodeForTie, Boolean checkContainsSpanBounds)
 at DevExpress.IntelliRush.VS.ItelliRushCommandFactoryBase.CanCommitOnWhiteSpace()
 at DevExpress.IntelliRush.VS.ItelliRushCommandFactoryBase.ExecuteIntelliRushCommand(Guid pguidCmdGroup, UInt32 nCmdID, Char typedChar)
 at DevExpress.IntelliRush.VS.IntelliRushCommandHandler.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at DevExpress.CodeRush.VisualStudio.CommandTargets.CommandTargetChain.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(Guid cmdGroup, UInt32 cmdID, Object inParam)
 at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(TextCompositionEventArgs args)
 at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c.<DispatchTextInputEvents>b__6_0(KeyProcessor p, TextCompositionEventArgs args)
 at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass10_1`1.<Dispatch>b__0()
 at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)</description>
</entry>
Hi Steven,
We already fixed a similar issue. Please install the build with the hotfix: CodeRush.Roslyn-1.0.11.16117.vsix and let us know of your results.
That appears to have fixed my issue. Thanks!
You are welcome, Steven!
Sorry for the delay. The hotfix fixes the issue. Thanks
I am happy to hear that the issue is fixed, Ian. Thank you for letting us know about this.