Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all 106942 articles
Browse latest View live

RSRP-469148: ReSharper adds redundant spaces in Collection Initializer code complete

$
0
0
Reporter Martin (IAmMartin) Martin (IAmMartin)
Created Apr 6, 2018 5:51:45 PM
Updated Apr 10, 2018 7:00:41 PM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
2018.1 EAP 6

public void RedundantSpacesTest()
{
// code complete after the "D" |
// DateTime[] valuesOneLine = new DateTime[]{ new D };
DateTime[] valuesOneLine = new DateTime[] { new DateTime(), }; // We now have 2 Spaces at the end

DateTime[] values = new DateTime[]
{
// | code complete after the "D", we now have a redundant space after the ","
// new D
new DateTime(),
};

}

RSRP-468906: No valid declaration

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Mar 27, 2018 1:18:22 PM
Updated Apr 10, 2018 7:05:28 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Submitted
Type Exception
Fix version 2018.2
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM, VS 2015 RTM
ReSharperPlatformVs14 Wave 12 — JetBrains ReSharper Ultimate 2018.1 EAP 5 D Build 112.0.20180326.210300-eap05d

JetBrains dotCover 2018.1 EAP 5 D Build 2018.1.20180327.30814-eap05d
JetBrains dotMemory 2018.1 EAP 5 D Build 2018.1.20180327.30816-eap05d
JetBrains dotTrace 2018.1 EAP 5 D Build 2018.1.20180327.30829-eap05d
JetBrains ReSharper 2018.1 EAP 5 D Build 2018.1.20180327.30638-eap05d
JetBrains ReSharper C++ 2018.1 EAP 5 D Build 2018.1.20180327.30639-eap05d
JetBrains TeamCity Add-in 2018.1 EAP 5 D Build 2018.1.20180327.30630-eap05d

SubProducts.0 = JetBrains dotCover 2018.1 EAP 5 D Build 2018.1.20180327.30814-eap05d
SubProducts.1 = JetBrains dotTrace 2018.1 EAP 5 D Build 2018.1.20180327.30829-eap05d
SubProducts.2 = JetBrains ReSharper C++ 2018.1 EAP 5 D Build 2018.1.20180327.30639-eap05d
SubProducts.3 = JetBrains TeamCity Add-in 2018.1 EAP 5 D Build 2018.1.20180327.30630-eap05d
SubProducts.4 = JetBrains ReSharper 2018.1 EAP 5 D Build 2018.1.20180327.30638-eap05d
SubProducts.5 = JetBrains dotMemory 2018.1 EAP 5 D Build 2018.1.20180327.30816-eap05d

No valid declaration

— EXCEPTION #1/1 [LoggerException]
Message = “No valid declaration”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 5 D Build 112.0.20180326.210300-eap05d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 5 D Build 2018.1.20180327.30814-eap05d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 5 D Build 2018.1.20180327.30829-eap05d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 5 D Build 2018.1.20180327.30639-eap05d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.1 EAP 5 D Build 2018.1.20180327.30630-eap05d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.1 EAP 5 D Build 2018.1.20180327.30638-eap05d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.1 EAP 5 D Build 2018.1.20180327.30816-eap05d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12::a65b9dffcb3dd34ca8ea9f95c38272c9a33d3399


Platform\VisualStudio:
    git::refs/heads/wave12::d337ce2cb88db4ce1bee01229269f4b8a696cdf9

Data.VsVersion = 14.0.25431.1
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.Fail(String messageText)
 at JetBrains.Util.Logging.Logger.Fail(String messageText)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Caches2.CachedTypeMemberBase.AssertIsValid()
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Caches2.CachedTypeMemberBase.GetDeclaration()
 at JetBrains.ReSharper.Psi.CSharp.Impl.DeclaredElement.CSharpDeclaredElement`1.GetDeclaration()
 at JetBrains.ReSharper.Psi.CSharp.Impl.DeclaredElement.CSharpDeclaredElement`1.get_ShortName()
 at JetBrains.ReSharper.Refactorings.ChangeStaticness.ToNonStatic.MakeNonStaticRefactoring.Execute(IProgressIndicator pi)
 at JetBrains.ReSharper.Feature.Services.Refactorings.DrivenRefactoringConflictSearcher.<>c__DisplayClass2_1.<SearchConflicts>b__0()
 at JetBrains.ReSharper.Psi.Transactions.PsiTransactionCookie.ExecuteConditionally(IPsiServices psiServices, Func`1 action, String commandName)
 at JetBrains.ReSharper.Feature.Services.Refactorings.DrivenRefactoringConflictSearcher.SearchConflicts(IProgressIndicator pi, Boolean canPerformRefactoring)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.<>c__DisplayClass42_0.<InitPage>b__0(IProgressIndicator pi)
 at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper`1.ExecuteAction(IProgressIndicator pi)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunStartTaskCallTaskAction(IProperty`1 isDone, ProgressIndicator progressIndicator, TaskThreadAffinity taskThreadAffinity, Action`1 FTask, JetDispatcher dispatcherPrimary)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunCore(TaskThreadAffinity taskThreadAffinity, Action`1 FTask, Func`3 FAttachUi, ProgressIndicator progressIndicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.Run(TaskThreadAffinity taskThreadAffinity, Action`1 task, Func`3 FAttachUi, ProgressIndicator indicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.RefactoringsTaskExecutor.JetBrains.Application.Progress.ITaskExecutor.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.RunWithProgress[TResult](Func`2 action, String taskName, TResult& result)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.InitPage(IRefactoringPage page)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.NextPage(IRefactoringPage currentPage)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.MoveToNextPage()
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WorkflowHostWithWizardForm.<NextClick>b__18_0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action, TaskPriority priority)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WorkflowHostWithWizardForm.NextClick(Object sender, EventArgs e)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWizardForm.myContinueButton_Click(Object sender, EventArgs e)
 at System.Windows.Forms.Control.OnClick(EventArgs e)
 at System.Windows.Forms.Button.OnClick(EventArgs e)
 at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
 at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
 at System.Windows.Forms.Control.WndProc(Message& m)
 at System.Windows.Forms.ButtonBase.WndProc(Message& m)
 at System.Windows.Forms.Button.WndProc(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

RSRP-468819: [Performance Report] Resharper slow

$
0
0
Reporter Garrett OBrien (gobrien) Garrett OBrien (gobrien)
Created Mar 22, 2018 9:17:18 PM
Updated Apr 10, 2018 7:15:55 PM
Subsystem Psi - Caches
Assignee Ivan Serduk (IvanSerduk)
Priority Show-stopper
State Reopened
Type Performance Problem
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 6
VsVersion All Versions
Evaluator: False
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
Product: dotTrace, Version: 2017.3.20180302.72823
Product: ReSharperCpp, Version: 2017.3.20180302.70349
Product: ReSharper, Version: 2017.3.20180302.70613
Time Zone: Eastern Standard Time

Description

I get a lot of slowdowns in resharper, and a window keeps popping up saying "please wait for an editor command to finish". I see a yellow bar at the top of Visual Studio that says "Extension 'JetBrains ReSharper Ultimate 2017.3.3 11.0' likely caused 8 seconds of unresponsiveness" with various numbers for the number of seconds.

RSRP-106543: Make sure that "Introduce variable" context action is available somewhere other than end of statement

$
0
0
Reporter Jura Gorohovsky (gorohoroh) Jura Gorohovsky (gorohoroh)
Created May 5, 2009 7:25:25 PM
Updated Apr 10, 2018 7:25:05 PM
Resolved Apr 6, 2018 2:14:40 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Usability Problem
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
The way it is now, the CA is hard to find

RSRP-469098: C#7 - Erroneous "access to modified closure", with no mutation, on local vars during local-function recursion

$
0
0
Reporter Matthew Lamari (matthewlamari) Matthew Lamari (matthewlamari)
Created Apr 5, 2018 4:32:11 AM
Updated Apr 10, 2018 7:34:34 PM
Resolved Apr 10, 2018 7:34:34 PM
Subsystem Code Analysis - C#
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.1
Affected versions 2017.3.5
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM

The problem manifests only inside local functions, functions defined inside of functions in C#7+

"Access to modified closure" appears when closing over a local variable binding (input formal parameter local var bindings), inside a local function, when there is a recursive call to itself (in tail position or otherwise, provided it's not provably branched away from). Note - this is in code where no mutation is taking place.

static void Main(string[] args)
{
    void Thing(int val)
    {
        var foo = new Func<int>(() => val); // val gets the 'access to modified closure' warning
        if (val <= 0)
        {
            return;
        }
        Thing(foo() - 1);
    }

    Thing(10);
    Console.WriteLine("Done");
}

If the recursive call is removed, no more warning

    void Thing(int val)
    {
        var foo = new Func<int>(() => val); // no warning here now.
        if (val <= 0)
        {
            return;
        }
        // Thing(foo() - 1);  // Take out the recursion, no more warning on the 'val'
    }

Theoretically, derefencing the call back, alone, doesn't trigger the warning,

Expected: No "access to modified closure" warning on the 'val' variable when there is recursion.

Resharper Ultimate 2017.3.5
Devstudio 2017 v 15.6.2, .Net Framework 4.7.02556 (Using 4.7.1)

RSRP-469194: name shouldn't be empty Parameter name: name

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 10, 2018 7:08:48 PM
Updated Apr 10, 2018 7:36:00 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Submitted
Type Exception
Fix version 2018.2
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs14 Wave 12 — JetBrains ReSharper Ultimate 2018.1 EAP 7 Build 112.0.20180410.54036-eap07

JetBrains dotCover 2018.1 EAP 7 Build 2018.1.20180410.62045-eap07
JetBrains dotMemory 2018.1 EAP 7 Build 2018.1.20180410.62050-eap07
JetBrains dotTrace 2018.1 EAP 7 Build 2018.1.20180410.62114-eap07
JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180410.55208-eap07
JetBrains ReSharper C++ 2018.1 EAP 7 Build 2018.1.20180410.55145-eap07
JetBrains TeamCity Add-in 2018.1 EAP 7 Build 2018.1.20180410.55153-eap07

name shouldn't be empty Parameter name: name

— EXCEPTION #1/2 [ArgumentException]
Message = “name shouldn't be empty”
ExceptionPath = Root.InnerException
ClassName = System.ArgumentException
HResult = E_INVALIDARG=COR_E_ARGUMENT=80070057
Source = JetBrains.ReSharper.Psi.CSharp
ParamName = name
StackTraceString = “
 at JetBrains.ReSharper.Psi.CSharp.Impl.CSharpImplUtil.ReplaceIdentifier(ITreeNode parent, ICSharpIdentifier node, String name)
 at JetBrains.ReSharper.Psi.CSharp.Impl.CSharpImplUtil.ReplaceIdentifier(ITreeNode parent, ICSharpIdentifier node, String name)
 at JetBrains.ReSharper.Psi.CSharp.Impl.Tree.RegularParameterDeclarationStub.SetName(String name)
 at JetBrains.ReSharper.Psi.CSharp.Impl.CSharpElementFactoryImpl.CreateParameterDeclaration(ParameterKind kind, Boolean isParametric, Boolean isVarArg, IType type, String name, ICSharpExpression defaultValue)
 at JetBrains.ReSharper.Refactorings.CSharp.ChangeSignature.CSharpChangeSignature.CreateParameterDeclaration(IPsiModule module, String name, IType type, ParameterKind parameterKind, Boolean isParams, Boolean isVarArg, IDeclaration originalDeclaration, Boolean isThis, IParameterValue defaultValue, ChangeSignatureModel model)
 at JetBrains.ReSharper.Refactorings.ChangeSignature.Impl.DefaultParameterValuePage..ctor(ChangeSignatureParameter parameter, ChangeSignatureModel model, Lifetime lifetime)
 at JetBrains.ReSharper.Refactorings.ChangeSignature.Impl.DefaultParameterValuePage.BuildPagesSequence(ChangeSignatureModel model, Lifetime lifetime)
 at JetBrains.ReSharper.Refactorings.ChangeSignature.ChangeSignaturePage.BuildDefaultValuePagesSequence(IProgressIndicator pi)
 at JetBrains.ReSharper.Refactorings.ChangeSignature.ChangeSignaturePage.Commit(IProgressIndicator pi)
 at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper`1.ExecuteAction(IProgressIndicator pi)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “
name shouldn't be empty
Parameter name: name

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 7 Build 112.0.20180410.54036-eap07”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 7 Build 2018.1.20180410.62045-eap07”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 7 Build 2018.1.20180410.62114-eap07”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 7 Build 2018.1.20180410.55145-eap07”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.1 EAP 7 Build 2018.1.20180410.55153-eap07”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180410.55208-eap07”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.1 EAP 7 Build 2018.1.20180410.62050-eap07”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12::976c1c64376a6971d57f2a49d81e5594ce708fcc


Platform\VisualStudio:
    git::refs/heads/wave12::593362cc49ad81f03f90a27558a79ab132b87d90

Data.VsVersion = 14.0.25431.1
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper`1.ExecuteAction(IProgressIndicator pi)
 at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper`1.ExecuteAction(IProgressIndicator pi)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunStartTaskCallTaskAction(IProperty`1 isDone, ProgressIndicator progressIndicator, TaskThreadAffinity taskThreadAffinity, Action`1 FTask, JetDispatcher dispatcherPrimary)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunCore(TaskThreadAffinity taskThreadAffinity, Action`1 FTask, Func`3 FAttachUi, ProgressIndicator progressIndicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.Run(TaskThreadAffinity taskThreadAffinity, Action`1 task, Func`3 FAttachUi, ProgressIndicator indicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.RefactoringsTaskExecutor.JetBrains.Application.Progress.ITaskExecutor.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.RunWithProgress[TResult](Func`2 action, String taskName, TResult& result)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.NextPage(IRefactoringPage currentPage)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.MoveToNextPage()
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WorkflowHostWithWizardForm.<NextClick>b__18_0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action, TaskPriority priority)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WorkflowHostWithWizardForm.NextClick(Object sender, EventArgs e)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWizardForm.myContinueButton_Click(Object sender, EventArgs e)
 at System.Windows.Forms.Control.OnClick(EventArgs e)
 at System.Windows.Forms.Button.OnClick(EventArgs e)
 at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
 at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
 at System.Windows.Forms.Control.WndProc(Message& m)
 at System.Windows.Forms.ButtonBase.WndProc(Message& m)
 at System.Windows.Forms.Button.WndProc(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

RSRP-469146: Sytem.Attribute ambiguity

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 6, 2018 5:29:30 PM
Updated Apr 10, 2018 8:21:39 PM
Resolved Apr 10, 2018 8:21:39 PM
Subsystem Platform - Project Model
Assignee Sergey Kuks (coox)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
  • Roslyn solution from https://github.com/dotnet/roslyn
  • run Build.cmd from command line
  • open in VS
  • E:\temp.Snapshots\roslyn-master\src\Compilers\CSharp\Test\Symbol\Symbols\Source\ExternAliasTests.cs: WorkItem is not an attribute

RSRP-469102: What's new in ReSharper 2018.1: Step 36.3 (Unit tests filter) no space between "/u" and "pd" mentioned.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 5, 2018 11:54:00 AM
Updated Apr 10, 2018 8:28:47 PM
Resolved Apr 10, 2018 8:28:47 PM
Subsystem Tutorials
Assignee Alexey Totin (Alexey.Totin)
Priority Normal
State Fixed
Type Bug
Fix version 2018.1.1
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 7 D 12.0.20180405.062054-eap07

  1. Inspect Step 36.3 (Unit tests filter).

Actual result:
No word about space between "/u" and "pd". It could lead to confusion and "/upd" string as result.

Expected result:
Space is mentioned.


RSRP-469100: What's new in ReSharper 2018.1: Step 8 (Non-trailing arguments) "add missing argument name" not disabled when follow instructions.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 5, 2018 11:24:12 AM
Updated Apr 10, 2018 8:28:53 PM
Resolved Apr 10, 2018 8:28:53 PM
Subsystem Tutorials
Assignee Alexey Totin (Alexey.Totin)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.1.1
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 7 D 12.0.20180405.062054-eap07.

  1. Follow the instructions from Step 8 (Non-trailing arguments) to disable "add missing argument name" behavior.
  2. Press Ctrl+Alt+S.

Actual result:
"Add missing argument name" behavior is not disabled - all argument's names are added to code.

Expected result:
Code is not changed - argument's names are not added.

NOTE:
Code Editing | [language] | Code Style seems more appropriate for that purpose.

RSRP-469171: ValueTuple and await : Unexpected error message "Cannot resolve symbol 'await'"

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Apr 9, 2018 7:12:07 PM
Updated Apr 10, 2018 8:41:03 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Critical
State Fixed In Branch
Type Bug
Fix version No Fix versions
Affected versions 2017.3.5, 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
A wrong error message is displayed when using an await keyword with a task variable inside a value tuple. Please find below a code to repro the issue.


public class Program 
{
public static async Task Main(string[] args)
{
// This is working fine
var (result1, result2) = (await ComputeResult(), await ComputeResult());

// This display an error: "Cannot resolve symbol 'await'" while it should not
Task<bool> computeResultTask1 = ComputeResult();
var (result3, result4) = (await computeResultTask1, await ComputeResult());
}

private static Task<bool> ComputeResult()
{
return Task.FromResult(true);
}
}

RSRP-469164: Rider doesn't recognize Startup.cs and Controller's methods as used in a minimal ASP.NET Core application

$
0
0
Reporter Nikita Tsukanov (kekekeks) Nikita Tsukanov (kekekeks)
Created Apr 8, 2018 4:16:11 PM
Updated Apr 10, 2018 8:43:02 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

App is perfectly operational, but Rider shows "Method is never used" warnings, see attached image.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.0.0" />
    <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.0.2" />
  </ItemGroup>
</Project>
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;

namespace AspCoreTestApp
{
    class Program
    {
        static void Main(string[] args)
        { 
            new WebHostBuilder()
                .UseKestrel()
                .UseStartup<Startup>()
                .Build().Run();
        }
    }

    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvcCore();
        }

        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {            
            app.UseMvc();
        }
    }
    
    [Route("")]
    public class MyController : ControllerBase
    {
        [HttpGet("")]
        public object Test()
        {
            return new ContentResult
            {
                Content = "Hello world",
                ContentType = "text/plain"

            };
        }
    }
}

RSRP-448507: Member imported through "using static" is incorrectly identified as a namespace name

$
0
0
Reporter Andrey Shchekin (ashmind) Andrey Shchekin (ashmind)
Created Sep 24, 2015 9:15:43 AM
Updated Apr 10, 2018 8:43:57 PM
Subsystem Psi - C#
Assignee Olga Lukianova (olka)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 9.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Example:
namespace X {}
enum E { X }

namespace Y {
using static E;

public class C {
private E e = X; // R# Error: Namespace name is not valid at this point
}
}

RSRP-126550: Highlight Usages: color-code collection mutators

$
0
0
Reporter Joe White (joewhite) Joe White (joewhite)
Created Oct 23, 2009 7:21:46 PM
Updated Apr 10, 2018 8:47:26 PM
Subsystem Code Analysis
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Feature
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
"Highlight Usages in File" (in the ReSharper > Search menu) highlights "read" usages in blue, and "write" usages in pink. This is useful for value-type fields. But I do a lot of Highlight Usages on collection-type fields, and usually what I'm looking for is usages that are modifying the collection contents. The current color-coding doesn't help me with that – if the code calls the Add method, it's only reading the collection variable, so the color-coding is the same as read usages, even though in my mind, it's more akin to a write usage.

So, it would be great if this could be enhanced to have another color for collection mutator usages. For example, if I'm highlighting usages of a field (or property) called MyList:

MyList = new List<Foo>(); // MyList highlights as a "write" usage
var x = MyList.Count; // MyList highlights as a "read" usage
MyList.Add(new Foo()); // New: MyList would highlight as a "modify" usage

My specific pain point is collections, so I'm limiting this feature request to the mutator methods on List<T> and IList<T>. Obviously, there's temptation to make a general system for tagging any method as a mutator method, but that would require a lot more design and implementation work. But even a simple, limited-to-collections implementation would still address a need, and have a lot of value (and could probably make it into a much earlier release than a general system).

RSRP-469196: ReSharper Build doesn't follow file's property Copy to Output Directory = "Copy if newer"

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Apr 10, 2018 8:47:43 PM
Updated Apr 10, 2018 8:55:45 PM
Subsystem Solution builder
Assignee Anton Spilnyy (Anton.Spilnyy)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Rehsarper Build is a great feature, but when files are marked as:
Copy to Output Directory = Copy if newer

Resharper Build will copy them even when the files have not changed.
As a reference MSBuild does not copy these files if they are not changed.

RSRP-469197: Flaky test JetBrains.dotMemory.IntegrationTests.Standalone.Cases.ConsoleRunner.StartStandaloneConsoleTest.StartWithArgs


RSRP-469198: Flaky test JetBrains.dotCover.Tests.Core.RemoteApi.RemoteApiTests.AlertTest

RSRP-469199: Merge Sequential Check refactors into uncompilable code

$
0
0
Reporter Jürgen Cruz (Jürgen_Cruz) Jürgen Cruz (Jürgen_Cruz)
Created Apr 10, 2018 10:40:35 PM
Updated Apr 10, 2018 10:40:35 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

The following code is detected by resharper to be able to be refactored:

if (!request.ExecuteLatestVersion.HasValue || !request.ExecuteLatestVersion.Value) {
   //do something
}

and it transforms to:

if (!request.ExecuteLatestVersion)
{
  //do something
}

Which visual studio is complaining that it can't cast a bool? into a bool, which makes sense.

I'm not sure if it should actually be refactored into:

if (request.ExecuteLatestVersion != true)
{
  //do something
}

Since both null and false are different than true. Although I wouldn't like that refactoring since it is no longer clear that it is a nullable flag and if someone changes that to "== false" it would have changed the logic by mistake.

I don't want to turn this check off since there are other merges that actually work and the resulting refactor is not ambiguous. for example:

if (p == null || p.Arguments == null)

refactoring into

if (p?.Arguments == null)

The p?. actually lets the user know it is nullable. so it is not ambiguous.

And it is not only for negated (!) expressions. The same happens with the following:

bool executeLatestVersion = request.ExecuteLatestVersion.HasValue && request.ExecuteLatestVersion.Value;

gets refactored to:

bool executeLatestVersion = request.ExecuteLatestVersion;

which again VS complains about.

RSRP-468948: The range (0 - 97) does not fall within the range (0 - 67).

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Mar 28, 2018 3:23:30 PM
Updated Apr 10, 2018 10:40:52 PM
Subsystem Live Templates
Assignee Slava Tutushkin (slava.tutushkin)
Priority Critical
State Open
Type Exception
Fix version 2018.1.1
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _3c9e1530 — JetBrains ReSharper Ultimate 2018.1 EAP 5 D Build 112.0.20180327.202320-eap05d

JetBrains ReSharper 2018.1 EAP 5 D Build 2018.1.20180327.210106-eap05d

The range (0 - 97) does not fall within the range (0 - 67).

— EXCEPTION #1/2 [InvalidOperationException]
Message = “The range (0 - 97) does not fall within the range (0 - 67).”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.Core
StackTraceString = “
 at JetBrains.Util.TextRange.AssertContainedIn(TextRange rangeContainer)
 at JetBrains.Util.TextRange.AssertContainedIn(TextRange rangeContainer)
 at JetBrains.DocumentModel.impl.ManagedDocumentBase.ReplaceText(TextRange atRange, String text)
 at JetBrains.DocumentModel.Transactions.DocumentTransaction.DoApplyExternalChanges()
 at JetBrains.DocumentModel.Transactions.DocumentTransaction.RollbackWithExternalChanges(EnsureWritableResult result, String message)
 at JetBrains.DocumentModel.Transactions.DocumentTransaction.Commit(IProgressIndicator pi)
 at JetBrains.DocumentModel.Transactions.DocumentTransactionManager.CommitTransaction(IUndoRedoHandler undoRedoHandler, IProgressIndicator pi)
 at JetBrains.DocumentModel.Transactions.DocumentTransactionManager.CommitTransaction(IProgressIndicator pi)
 at JetBrains.DocumentModel.Transactions.DocumentTransactionCookie.Commit(IProgressIndicator pi)
 at JetBrains.DocumentManagers.Transactions.ProjectModelTransactionFactory.ProjectModelTransactionCookie.Commit(IProgressIndicator pi)
 at JetBrains.ReSharper.Feature.Services.Util.AddNewItemHelper.CreateNewFile(IProjectFolder folder, FileSystemPath filePath, String fileText, Action`1 setFileProperties, IFileCreationContext context)
 at JetBrains.ReSharper.Feature.Services.Util.AddNewItemHelper.AddFileOrThrowInternal(ProjectFolderWithLocation folder, String fileName, String fileText, Action`1 setFileProperties, IFileCreationContext context)
 at JetBrains.ReSharper.Feature.Services.Util.AddNewItemHelper.AddFile(ProjectFolderWithLocation parentFolder, String fileName, String fileText, Action`1 setFileProperties, IFileCreationContext context)
 at JetBrains.ReSharper.LiveTemplates.FileTemplates.FileTemplatesManagerBase.AddFile(String fileNameNoExtension, Template template, Action`1 setFileProperties, ProjectFolderWithLocation targetFolder, IFileCreationContext context)
 at JetBrains.ReSharper.LiveTemplates.FileTemplates.FileTemplatesManagerBase.FileFromTemplateWithingFolder(String fileNameNoExtension, Template template, Action`1 setFileProperties, Action`1 init, ProjectFolderWithLocation targetFolder, IFileCreationContext context)
 at JetBrains.ReSharper.LiveTemplates.FileTemplates.FileTemplatesManagerBase.CreateFileFromTemplate(String fileNameNoExtension, ProjectFolderWithLocation[] targetFolders, Template template, Action`1 setFileProperties, IFileCreationContext context, Action`1 init)
 at JetBrains.ReSharper.Feature.Services.LiveTemplates.FileTemplates.DefaultHandler.Execute(IDataContext context, DelegateExecute nextExecute)
 at JetBrains.Application.UI.ActionsRevised.Handlers.ExececutableActionEvaluator.Execute(IAction action, List`1 allActions, IDataContext dataContext)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<ExecuteWithoutRequirements>b__23_0(Lifetime lt)
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.ExecuteWithoutRequirements()
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_0.<PrepareRequirementsAsync>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “The range (0 - 97) does not fall within the range (0 - 67).”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 5 D Build 112.0.20180327.202320-eap05d”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.1 EAP 5 D Build 2018.1.20180327.210106-eap05d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12::e17abdbd751f89b0b5c545b3e91418cdd4418842


Platform\VisualStudio:
    git::refs/heads/wave12::58188c77fe640c62dada0a7dc0b3dffc72e73399

Data.VsVersion = 15.6.27428.2011
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_0.<PrepareRequirementsAsync>b__0()
 at JetBrains.Application.UI.ActionSystem.ActionsRevised.Handlers.RequirementsManager.ExecuteActionAsync(IActionRequirement requirement, Action continueWith, Action failWith, Boolean reSharperIsThinking)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.PrepareRequirementsAsync(OuterLifetime lifetime, Func`1 executeWhenRequirementsReady, Action`1 failWith)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.Execute()
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.<>c__DisplayClass15_0.<CommandTargetExec>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.CommandTargetExec(CommandID commandid, OLECMDEXECOPT cmdExecOpt)
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.<.ctor>b__11_1(CommandID commandid, OLECMDEXECOPT opt, IntPtr in, IntPtr out)
 at JetBrains.VsIntegration.Shell.Package.VsPackageSdkStub.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& guidGroup, UInt32 nCmdId, UInt32 nCmdExcept, IntPtr vIn, IntPtr vOut)
 at Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource.Invoke(String verb, Object pvaIn, Object& pvaOut)
 at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(String verb, Object pvaIn, Object& pvaOut)
 at Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(Object parameter)
 at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
 at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
 at Microsoft.VisualStudio.PlatformUI.NativeMethods.DispatchMessage(MSG& lpmsg)
 at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.<>c.<PushMessageLoopOnContextMenuTrackingComponent>b__218_1(Object sender, PreTranslateMessageEventArgs args)
 at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.FPreTranslateMessageCore(MSG[] pMsg)
 at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.<>c__DisplayClass23_0.<Microsoft.VisualStudio.OLE.Interop.IOleComponent.FPreTranslateMessage>b__0()
 at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.CallAndReturnOnException(Func`1 method, Int32 retValueOnException)
 at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.Microsoft.VisualStudio.OLE.Interop.IOleComponent.FPreTranslateMessage(MSG[] pMsg)
 at Microsoft.VisualStudio.OLE.Interop.IOleComponentManager.FPushMessageLoop(UInt32 dwComponentID, UInt32 uReason, IntPtr pvLoopData)
 at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.PushMessageLoopOnContextMenuTrackingComponent()
 at Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.ExecCommand(UInt32 itemid, Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.Internal.VisualStudio.PlatformUI.HierarchyUtilities.<>c__DisplayClass35_0.<ExecHierParentChain>b__1()
 at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(Func`1 method, Boolean reportError, Boolean setShellErrorInfo)
 at Microsoft.Internal.VisualStudio.PlatformUI.HierarchyUtilities.ExecHierParentChain(IVsHierarchyItemManager manager, IVsUIHierarchy lpUIHCmd, IVsUIHierarchy lpUIHCurrent, UInt32 itemidCurrent, Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.PlatformUI.HierarchyItem.HierarchyContextMenuController.ShowContextMenu(IEnumerable`1 items, Point location)
 at Microsoft.Internal.VisualStudio.PlatformUI.ContextMenuController.ShowContextMenu(IEnumerable`1 items, Point location, Func`2 getController)
 at Microsoft.Internal.VisualStudio.PlatformUI.ContextMenuController.ShowContextMenu(IEnumerable`1 items, Point location)
 at Microsoft.Internal.VisualStudio.PlatformUI.PivotTreeView.OnContextMenuOpening(ContextMenuEventArgs e)
 at System.Windows.FrameworkElement.OnContextMenuOpeningThunk(Object sender, ContextMenuEventArgs e)
 at System.Windows.Controls.ContextMenuEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
 at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
 at System.Windows.ContentElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
 at System.Windows.Controls.PopupControlService.RaiseContextMenuOpeningEvent(IInputElement source, Double x, Double y, Boolean userInitiated)
 at System.Windows.Controls.PopupControlService.ProcessMouseUp(Object sender, MouseButtonEventArgs e)
 at System.Windows.Controls.PopupControlService.OnPostProcessInput(Object sender, ProcessInputEventArgs e)
 at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
 at System.Windows.Input.InputManager.ProcessStagingArea()
 at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
 at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
 at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
 at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

RSRP-468818: Failed to evaluate the data rule. The document offset 873 does not fall within the document range [0, 0].

$
0
0
Reporter Felipe Chiumeo (fchiumeo) Felipe Chiumeo (fchiumeo)
Created Feb 28, 2018 5:28:24 PM
Updated Apr 10, 2018 10:43:42 PM
Resolved Mar 27, 2018 1:58:09 PM
Subsystem No Subsystem
Assignee Alexander Ulitin (alexander.ulitin)
Priority Critical
State Fixed
Type Exception
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 5
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _deb15e48 — JetBrains ReSharper Ultimate 2018.1 EAP 1 Build 112.0.20180222.102651-eap01

JetBrains dotCover 2018.1 EAP 1 Build 2018.1.20180222.115511-eap01
JetBrains ReSharper 2018.1 EAP 1 Build 2018.1.20180222.104120-eap01

Failed to evaluate the data rule. The document offset 873 does not fall within the document range [0, 0].

— EXCEPTION #1/3 [AssertionException]
Message = “The document offset 873 does not fall within the document range [0, 0].”
ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.Util.Assertion+AssertionException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.DocumentModel
StackTraceString = “
 at JetBrains.DocumentModel.DocumentOffset.AssertValid()
 at JetBrains.DocumentModel.DocumentOffset.AssertValid()
 at JetBrains.DocumentModel.DocumentEditorContext..ctor(DocumentOffset caretOffset)
 at JetBrains.TextControl.DataContext.TextControlDataRules.<>c.<.ctor>b__0_3(IDataContext dataContext)
 at JetBrains.Application.DataContext.DataRule`1.JetBrains.Application.DataContext.IDataRule.Evaluate(IDataContext context)
 at JetBrains.Application.DataContext.DataContext.Evaluator.TryEvaluateDataRules(IDataConstant constant, IDataContext dataContext, DataContextValidator validator)


— Outer —

— EXCEPTION #2/3 [InvalidOperationException]
Message = “Failed to evaluate the data rule.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.DataConstant = EditorContext
Data.DataConstantType = “JetBrains.DocumentModel.DocumentEditorContext, JetBrains.Platform.DocumentModel, Version=112.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”
Data.DataRuleObject = JetBrains.Application.DataContext.DataRule1[JetBrains.DocumentModel.DocumentEditorContext]
Data.DataRulePriority = 0
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_INVALIDOPERATION=80131509

--- Outer ---

--- EXCEPTION #3/3 [LoggerException]
Message = “Failed to evaluate the data rule.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 1 Build 112.0.20180222.102651-eap01”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 1 Build 2018.1.20180222.115511-eap01”
Data.SubProducts.#1 = “JetBrains ReSharper 2018.1 EAP 1 Build 2018.1.20180222.104120-eap01”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12-eap1

Platform\VisualStudio:
    git::refs/heads/wave12-eap1::9d28b6e35c395cef932aff004f5d3c2c8e6b14c2

Data.VsVersion = 15.5.27130.2036
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.Logging.LogEx.Error(ILog this, Exception ex, String message)
at JetBrains.Application.DataContext.DataContext.Evaluator.TryEvaluateDataRules(IDataConstant constant, IDataContext dataContext, DataContextValidator validator)
at JetBrains.Application.DataContext.DataContext.DoGetData(IDataConstant constant)
at JetBrains.Application.DataContext.DataContext.JetBrains.Application.DataContext.IDataContext.GetData[T](DataConstant
1 dataConstant)
 at JetBrains.DocumentModel.DataContext.DocumentModelDataRules.<>c.<.ctor>b__0_0(IDataContext dataContext)
 at JetBrains.DocumentModel.DataContext.DocumentModelDataRules.<>c.<.ctor>b__0_0(IDataContext dataContext)
 at JetBrains.Application.DataContext.DataRule`1.JetBrains.Application.DataContext.IDataRule.Evaluate(IDataContext context)
 at JetBrains.Application.DataContext.DataContext.Evaluator.TryEvaluateDataRules(IDataConstant constant, IDataContext dataContext, DataContextValidator validator)
 at JetBrains.Application.DataContext.DataContext.DoGetData(IDataConstant constant)
 at JetBrains.Application.DataContext.DataContext.JetBrains.Application.DataContext.IDataContext.GetData[T](DataConstant`1 dataConstant)
 at JetBrains.IDE.IdePerSolutionDataRules.<>c__DisplayClass0_0.<.ctor>b__0(IDataContext context)
 at JetBrains.Application.DataContext.DataRule`1.JetBrains.Application.DataContext.IDataRule.Evaluate(IDataContext context)
 at JetBrains.Application.DataContext.DataContext.Evaluator.TryEvaluateDataRules(IDataConstant constant, IDataContext dataContext, DataContextValidator validator)
 at JetBrains.Application.DataContext.DataContext.DoGetData(IDataConstant constant)
 at JetBrains.Application.DataContext.DataContext.JetBrains.Application.DataContext.IDataContext.GetData[T](DataConstant`1 dataConstant)
 at JetBrains.ProjectModel.DataContext.ProjectModelDataRules.ProjectElementsToSolution(IDataContext ctx)
 at JetBrains.Application.DataContext.DataRule`1.JetBrains.Application.DataContext.IDataRule.Evaluate(IDataContext context)
 at JetBrains.Application.DataContext.DataContext.Evaluator.TryEvaluateDataRules(IDataConstant constant, IDataContext dataContext, DataContextValidator validator)
 at JetBrains.Application.DataContext.DataContext.DoGetData(IDataConstant constant)
 at JetBrains.Application.DataContext.DataContext.JetBrains.Application.DataContext.IDataContext.GetData[T](DataConstant`1 dataConstant)
 at JetBrains.Application.Settings.Implementation.IsAvailableByDataConstant`1.OptimizedGroup.JetBrains.Application.Settings.IIsAvailableOptimizedGroup.EvaluateItems(IList items, IDataContext context)
 at JetBrains.Application.Settings.Implementation.SettingsStorageMountPoints.FilterMountsByContext(IDataContext context)
 at JetBrains.Application.Settings.Implementation.SettingsStore.GetOrderedMountPointsInContext(IDataContext context)
 at JetBrains.Application.Settings.Implementation.ContextBoundSettingsStoreTransient.ContextBoundMountsInfoTransient.FromContextRangeCore(ContextRange contextRange, ISettingsStore store, BindToContextFlags flags, Boolean isEmptyNarrowContextAllowed, ILogger logger, ISettingsStorageMountPoint[]& mountlist, ISettingsStorageMountPoint& mountLastWide)
 at JetBrains.Application.Settings.Implementation.ContextBoundSettingsStoreLive.ContextBoundMountsInfoLiveOnContextRange.<>c__DisplayClass18_0.<GetCurrentSnapshot>b__0()
 at JetBrains.Util.Threading.SynchronizedLifetime.ExecuteIfNotTerminated(Action λ)
 at JetBrains.Application.Settings.Implementation.ContextBoundSettingsStoreLive.ContextBoundMountsInfoLiveOnContextRange.GetCurrentSnapshot()
 at JetBrains.Application.Settings.Implementation.ContextBoundSettingsStoreLive.ContextBoundMountsInfoLiveOnContextRange.<OnMountSetChangeDispatched>b__10_0()
 at JetBrains.Util.Threading.SynchronizedLifetime.ExecuteIfNotTerminated(Action λ)
 at JetBrains.Application.Settings.Implementation.ContextBoundSettingsStoreLive.ContextBoundMountsInfoLiveOnContextRange.OnMountSetChangeDispatched()
 at JetBrains.Application.Settings.Implementation.ContextBoundSettingsStoreLive.ContextBoundMountsInfoLiveOnContextRange..ctor(Lifetime lifetimeUnsynchronized, ContextRange range, ISettingsStore store, BindToContextFlags flags, ILogger logger, ISettingsChangeDispatch changeDispatch)
 at JetBrains.Application.Settings.Implementation.SettingsStore.BindToContextLive(Lifetime lifetime, ContextRange contextrange, BindToContextFlags flags)
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.TextControl.VsGutterMarginEnabledInReSharper.IsEnabled(Lifetime lifetime, ContextRange contextRange)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.TextControl.VsTextViewShellContext..ctor(Lifetime textControlLifetime, IGutterMarginComponent gutterMarginComponent, VsTextControlDevTen textControl, IUIApplication environment, BulbMenuComponent bulbMenuComponent, IMainWindowPopupWindowContext mainWindowPopupWindowContext, GutterMarkMenuLayouter gutterMarkMenuLayouter, IWindowsHookManager hooksManager)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.TextControl.VsTextViewShellContextProvider.<>c__DisplayClass0_0.<.ctor>b__0(Lifetime textControlLifetime, ITextControl control)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_1`1.<ForEachItemCore>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_0`1.<ForEachItemCore>b__0(AddRemoveEventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.InternalAdd(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.Modify(AddRemove action, TValue item, Object cookie)
 at JetBrains.DataFlow.CollectionBridge`2.<Init>b__22_0(AddRemoveEventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
 at JetBrains.DataFlow.DictionaryEvents`2.InternalAdd(KeyValuePair`2 value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.Add(TValue value, Object cookie)
 at JetBrains.DataFlow.ICollectionEventsEx.Add[TValue](ICollectionEvents`1 thіs, Lifetime lifetime, TValue value, Object cookie)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.TextControl.VsTextControlCreatorDevTen.CreateTextControl[TTextControl](CreateTextControlParams`1 param)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.TextControl.AttachTextControlsToTextViews.VsAttachTextControlsToTextViews.<>c__DisplayClass0_1.<.ctor>b__1()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.TextControl.AttachTextControlsToTextViews.VsAttachTextControlsToTextViews.<>c__DisplayClass0_0.<.ctor>b__0(Lifetime lifetimeView, VsTextViewDataForTextControlDevTen data)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_1`1.<ForEachItemCore>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_0`1.<ForEachItemCore>b__0(AddRemoveEventArgs`1 args)
 at JetBrains.DataFlow.CollectionEvents`1.OnAcknowledgeSinkAddRemove(Action`1 handler, AddRemove addremove)
 at JetBrains.DataFlow.CollectionEvents`1.<.ctor>b__11_0(Action`1 handler)
 at JetBrains.DataFlow.Infra.SignalWithDelegates`1.OnAfterAdvise(Action`1 handler)
 at JetBrains.DataFlow.Signal`1.<>c__DisplayClass19_0.<AdviseCore>b__0()
 at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)
 at JetBrains.DataFlow.Signal`1.AdviseCore(Action`1 handler, Lifetime lifetime)
 at JetBrains.DataFlow.Signal`1.Advise(Lifetime lifetime, Action`1 handler)
 at JetBrains.DataFlow.ICollectionEventsEx.ForEachItemCore[TValue](IReadonlyCollectionEvents`1 thіs, Lifetime lifetime, Action`2 FHandlerA, Action`3 FHandlerB)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.TextControl.AttachTextControlsToTextViews.VsAttachTextControlsToTextViews..ctor(Lifetime lifetimeComponent, ITextControlCreator textControlCreator, IShellLocks locks, Lazy`1 vsEditorAdaptersFactoryService, IWindowsHookManager hookman, IEnumerable`1 findWindowFrame, VsTextViewDataForTextControlCollectorDevTen textViewDataForTextControlCollectorDevTen, ILogger logger)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, ICollection`1 dscs)
 at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
 at JetBrains.Application.Components.ComponentStorage.Compose()
 at JetBrains.ProjectModel.SolutionInstance.OpenSolution(ISolutionOwner solutionOwner)
 at JetBrains.ProjectModel.SolutionManagerBase.<>c__DisplayClass19_0.<CreateSolutionInstance>b__2()
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.<>c__DisplayClass24_0.<ExecuteOneTask>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteOneTask(SolutionLoadTask task)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerAsync.ExecuteTask()
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerAsync.DispatchTasks(Boolean background)
 at JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement solutionElement, SolutionInstance solutionInstance)
 at JetBrains.VsIntegration.ProjectDocuments.VSSolutionManager.<>c__DisplayClass37_0.<OpenVSSolution>b__0(Lifetime lifetime)
 at JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass4_0.<Next>b__0(LifetimeDefinition definition, Lifetime lifetime)
 at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILog logger)
 at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)
 at JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)
 at JetBrains.VsIntegration.ProjectDocuments.VSSolutionManager.OpenVSSolution(Boolean openSolution, Boolean sync)
 at JetBrains.Platform.VisualStudio.SinceVs10.ProjectDocuments.VsSolutionManager10.<OnAfterBackgroundSolutionLoadComplete>b__15_1()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Platform.VisualStudio.SinceVs10.ProjectDocuments.VsSolutionManager10.<OnAfterBackgroundSolutionLoadComplete>b__15_0()
 at JetBrains.Util.Concurrency.UnguardedCallbackMerger.<>c__DisplayClass8_0.<ExecuteOrQueueOrMerge>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuardEx.ExecuteOrQueue(ReentrancyGuard thіs, Lifetime lifetime, String name, Action F, TaskPriority priority)
 at JetBrains.Util.Concurrency.UnguardedCallbackMerger.ExecuteOrQueueOrMerge(Lifetime lifetimeQueue, String name, Action F)
 at JetBrains.Platform.VisualStudio.SinceVs10.ProjectDocuments.VsSolutionManager10.OnAfterBackgroundSolutionLoadComplete()
 at Microsoft.VisualStudio.Shell.Interop.IVsTaskBody.DoWork(IVsTask pTask, UInt32 dwCount, IVsTask[] pParentTasks, Object& pResult)
 at Microsoft.VisualStudio.Services.VsTask.<>c__DisplayClass115_0.<GetCallbackForMultipleParent>b__0(Task`1[] _)
 at Microsoft.VisualStudio.Services.VsTask.<>c__DisplayClass117_0.<GetCallback>b__0()
 at System.Threading.Tasks.Task`1.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()
 at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
 at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
 at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
 at Microsoft.VisualStudio.Services.TaskSchedulerService.VsUIThreadBlockableTaskScheduler.DoOneTask()
 at Microsoft.VisualStudio.Services.TaskSchedulerService.VsUIBackgroundPriorityScheduler.ProcessQueue()
 at Microsoft.VisualStudio.Services.TaskSchedulerService.VsUIBackgroundPriorityScheduler.<OnTaskQueued>b__6_0()
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

RSRP-318624: Inline resource Window has no accelerators

$
0
0
Reporter Julien Lebosquain (mrjul) Julien Lebosquain (mrjul)
Created Jun 28, 2012 8:37:42 PM
Updated Apr 11, 2018 12:03:16 AM
Resolved Apr 9, 2018 5:03:50 PM
Subsystem Localization (i18n, ResX)
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Fixed
Type Usability Problem
Fix version 2018.1
Affected versions 7.0
Fixed In Version ReSharper 2018.1 EAP 8
VsVersion All Versions
Can't toggle "inline all usages" and "remove declaration" using keyboard accelerators since there are no for those two checkboxes.
Viewing all 106942 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>