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

RSRP-469089: What's new in ReSharper 2018.1: Step 21.3 (Tuples as iterators) misspelling "Deconstrunct iterator" .

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 4, 2018 5:57:43 PM
Updated Apr 9, 2018 3:27:13 PM
Resolved Apr 5, 2018 1:51:47 PM
Subsystem Tutorials
Assignee Alexey Totin (Alexey.Totin)
Priority Show-stopper
State Verified
Type Bug
Fix version 2018.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 7 D 12.0.20180404.035655-eap07d.

  1. Inspect Step 21.3 (Tuples as iterators).

Actual result:
"Deconstrunct iterator variable into ..."

Expected result:
"Deconstruct iterator variable into ..."


RSRP-469088: What's new in ReSharper 2018.1: Step 30 (Value tracking. Pattern matching) "pattern matching" link leads to out variables.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 4, 2018 5:30:34 PM
Updated Apr 9, 2018 3:27:21 PM
Resolved Apr 5, 2018 1:51:59 PM
Subsystem Tutorials
Assignee Alexey Totin (Alexey.Totin)
Priority Show-stopper
State Verified
Type Bug
Fix version 2018.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 7 D 12.0.20180404.035655-eap07d.

  1. Inspect Step 30 (Value tracking. Pattern matching).

Actual result:
"pattern matching" link leads to https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.0/out-var.md (same as "out variables" link).

Expected result:
Either "pattern matching" link leads to other documentation or instead of two links only one "pattern matching and out variables" appears.

RSRP-465120: Visual Studio testsettings files isn't used by ReSharper test engine

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Jun 16, 2017 4:03:36 PM
Updated Apr 9, 2018 3:27:27 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Fixed In Branch
Type Usability Problem
Fix version 2018.1
Affected versions 2017.1.2
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion VS 2017 RTM, VS 2012 RTM U2, VS 2013 RTM, VS 2015 RTM
Visual Studio 2013 update 5.
There is only one test settings file LocalTestRun.testrunconfigin a C# solution. Visual Studio detected it and displays as checked in TEST->Test Settings menu.

If I run test via Resharper it doesn't use any test settings.

There is not testconfig file selected in Resharper -> Options -> Unit Testing -> MSTest.


We do not auto-detect .testrunconfig for VS >= 2012. (But do for VS2010).

RSRP-448986: Custom NUnit installation - a warning about missing dlls is shown even if option isn't enabled

$
0
0
Reporter Alexandra Kuks (Asia.Rudenko) Alexandra Kuks (Asia.Rudenko)
Created Oct 7, 2015 1:09:37 PM
Updated Apr 9, 2018 3:27:35 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Fixed In Branch
Type Cosmetics
Fix version 2018.1
Affected versions 2017.3.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

RSRP-450082: Don't move the selection when I run current session

$
0
0
Reporter Alexandra Kuks (Asia.Rudenko) Alexandra Kuks (Asia.Rudenko)
Created Oct 28, 2015 12:56:10 AM
Updated Apr 9, 2018 3:27:43 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Fixed In Branch
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
1. Open the attached solution, run all tests from solution, group session by namespaces or projects and namespaces
2. in session, collapse all nodes and click Run Current Session - nothing is (visually) selected, all the nodes are folded
3. select the second project, click Run Unit Tests - session is run, project is expanded
4. click Run Current Session - the first project is expanded, and the first test in it is selected; I'd rather expect selection to stay where I'd put it especially if nothing changed in the session.
Also, if on step 3 you select first project in the tree, it isn't expanded neither on step 3 nor on step 4, which makes the behaviour unclear.

RSRP-462326: xUnit.net doesn't use the config file xunit.runner.json ({ "shadowCopy": false })

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Dec 21, 2016 5:19:02 PM
Updated Apr 9, 2018 3:27:50 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Fixed In Branch
Type Feature
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
xUnit.net runner use not the settings in the xunit config files from the tested project (json and xml).

## Sample

json
{ 
"shadowCopy": false
}

RSRP-468569: Show a help link in options for issues that have a help entry (code inspection wiki entry)

$
0
0
Reporter Dmitry Matveev (dmitry.matveev@jetbrains.com) Dmitry Matveev (dmitry.matveev@jetbrains.com)
Created Mar 5, 2018 4:31:28 PM
Updated Apr 9, 2018 3:29:04 PM
Subsystem Code Analysis
Assignee Ivan Serduk (IvanSerduk)
Priority Critical
State Submitted
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
Similarly to this, but I'd hide the actual URL under 'Learn more...'.

RSRP-467552: Debugger data tips: value that has been copied should be the same as shown in the code

$
0
0
Reporter Maltseva Ekaterina (Maltseva.Ekaterina) Maltseva Ekaterina (Maltseva.Ekaterina)
Created Dec 12, 2017 4:29:45 PM
Updated Apr 9, 2018 3:31:44 PM
Subsystem Debugger features
Assignee Mikhail Senkov (micha)
Priority Major
State Fixed In Branch
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
Set braekpoint in the solution on some object with int value
Start to debug
In VS 'Autos' for this value select 'Hexadecimal display'
Restart debugger
In R# data tips this value show as decimal number
Call context menu for this value and select 'Copy value'
Enter somewhere this value and you'll see, that it's hexadecimal
Value that has been copied should be the same as shown in the code

RSRP-467538: Object reference not set to an instance of an object.

$
0
0
Reporter Ian Johnson (Jono7AC) Ian Johnson (Jono7AC)
Created Nov 20, 2017 3:38:52 PM
Updated Apr 9, 2018 3:31:49 PM
Subsystem Debugger features
Assignee Mikhail Senkov (micha)
Priority Critical
State Fixed In Branch
Type Exception
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
ReSharperPlatformVs15 Wave 11 Hive _4981c7d1 — JetBrains ReSharper Ultimate 2017.3 EAP 6 Build 111.0.20171117.131617-eap06

JetBrains ReSharper 2017.3 EAP 6 Build 2017.3.20171117.133018-eap06

SubProducts.0 = JetBrains ReSharper 2017.3 EAP 6 Build 2017.3.20171117.133018-eap06

Object reference not set to an instance of an object.

— EXCEPTION #1/2 [NullReferenceException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root.InnerException
ClassName = System.NullReferenceException
HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
Source = JetBrains.ReSharper.Psi
StackTraceString = “
 at JetBrains.ReSharper.Psi.Tree.TreeNodeExtensions.AssertIsValid(ITreeNode element, String messageText)
 at JetBrains.ReSharper.Psi.Tree.TreeNodeExtensions.AssertIsValid(ITreeNode element, String messageText)
 at JetBrains.ReSharper.Psi.Pointers.PsiPointersExtensions.CreateTreeElementPointer[TTreeNode](TTreeNode element, TreeNodePointerConfiguration configuration)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass2b.<CalculateLocalValues>b__29(IDebugProperty local)
 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
 at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.CalculateAdornments(Lifetime lifetime, ITextControl editor, FramePosition frame, IEnumerable`1 accumulatedReturnValues, IPsiSourceFile psiSourceFile)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass25.<ShowEditorAdornments>b__22()
 at JetBrains.DataFlow.ISignalEx.<>c__DisplayClass1`1.<Advise>b__0(TValue value)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Object reference not set to an instance of an object.”
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 2017.3 EAP 6 Build 111.0.20171117.131617-eap06”
Data.SubProducts.#0 = “JetBrains ReSharper 2017.3 EAP 6 Build 2017.3.20171117.133018-eap06”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave11-eap6::a6b69a3803846236d444b0df15d846b550ca1516

Data.VsVersion = 15.5.27110.0
Data.VsPreview = True
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.ShowEditorAdornments(Lifetime editorLifetime, ITextControl editor, IProjectFile projectItem, FramePosition frame, IEnumerable`1 accumulatedReturnValues)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass12.<>c__DisplayClass18.<OnStackFrameChanged>b__d()
 at JetBrains.ReSharper.Psi.Files.PsiFiles.CommitAllDocumentsAsync(Action success, Action interrupted)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass12.<>c__DisplayClass18.<OnStackFrameChanged>b__c()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Application.Threading.IShellLocksEx.<>c__DisplayClassa.<ExecuteOrQueueReadLock>b__9()
 at JetBrains.Threading.ReentrancyGuardEx.<>c__DisplayClass4.<>c__DisplayClass6.<Queue>b__3()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass5.<BeginInvokeCore>b__3()
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 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-467245: False error in a debugger DataTip: error CS1061: '(int, int)' does not contain a definition for 'x'

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Nov 27, 2017 9:50:39 PM
Updated Apr 9, 2018 3:31:55 PM
Subsystem Debugger features
Assignee Mikhail Senkov (micha)
Priority Normal
State Fixed In Branch
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
using System;

interface IContainer<T>
{
T Value { get; }
}

struct S : IContainer<(int x, int y)>
{
public (int x, int y) Value => default;
}

interface I
{
void Foo<T>(T t) where T : IContainer<(int x, int y)>;
}

class C : I
{
void I.Foo<T>(T t)
{
var value = t.Value;
Console.WriteLine(value.x); // Set breakpoint at this line
}

static void Main()
{
I c = new C();
c.Foo(new S());
}
}

RSRP-467173: Debugger DataTips - change color in dark mode

$
0
0
Reporter Maarten Balliauw (Maarten.Balliauw) Maarten Balliauw (Maarten.Balliauw)
Created Nov 23, 2017 11:51:51 AM
Updated Apr 9, 2018 3:32:00 PM
Resolved Mar 30, 2018 2:04:49 PM
Subsystem Debugger features
Assignee Mikhail Senkov (micha)
Priority Major
State Obsolete
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
http://blog.jetbrains.com/dotnet/2017/11/21/resharper-2017-3-brings-debugger-editor/#comment-504170

how can I change the background color of the DataTip. On my theme (Dark with light editor) is not very well seen the values of variables

RSRP-149666: Search / Replace improvements

$
0
0
Reporter Yuri Astrakhan (yurik) Yuri Astrakhan (yurik)
Created Jan 22, 2010 8:36:29 PM
Updated Apr 9, 2018 3:32:50 PM
Resolved Apr 9, 2018 3:32:49 PM
Subsystem No Subsystem
Assignee Ilya Ryzhenkov (orangy)
Priority Normal
State Declined
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
There are tons of suggestions in MS Connect: 1, 2, 3 and many other that relate to better search and replace VS function. It would be truly wonderful to have that as part of R#.

Search within a specific type of text - comments, code, designer-generated-code, strings, etc would be the first great step.

RSRP-454136: "Go to File" results contain invalid entries

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Feb 18, 2016 8:21:59 PM
Updated Apr 9, 2018 3:33:44 PM
Resolved Apr 2, 2018 11:43:37 AM
Subsystem Navigation - Global
Assignee Alexander Ulitin (alexander.ulitin)
Priority Critical
State Fixed
Type Bug
Fix version 2017.2
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
I've just recently upgraded from Resharper 8 to 10, and from VS 2013 to VS 2015.

Now when I do Ctrl-Shift-T (Resharper -> Navigate -> Go To File...) in my (C#) solution, I get some options that do nothing useful (and even more annoyingly, they are generally the first match in the list). I had trouble reproducing this from scratch with a new solution so I cut down my solution to a simple repro for you, which is attached.

Steps to reproduce:
=============
1. Extract resharper_repro.zip with folder structure intact.
2. Open the solution file in there (Repro.sln) in VS 2015.
3. Select Resharper -> Navigate -> Go To File...
4. Type "Meg".
5. You will see one of the two attached screenshots "WithWarningSymbol.png" or "WithoutWarningSymbol.png". (I'm not sure what causes which one. I have found that if I get the one with the warning symbol, it seems to go away after clearing Resharper cache and restarting VS.)
6. If you get the one with the warning symbol, it will tell you it couldn't open the Project File (but the path it quotes is not the path to a project file).
7. If you get the one without the warning symbol, it will open the Solution Explorer window, but will not change the selection (see attachment AfterClickingMegaTestFolderOption.png). (This is not surprising, because there is nothing in the Solution Explorer that corresponds to the selection anyway; it's just a folder on disk, not a solution folder.)

Expected behaviour:
=============
The popup window shown (at Step 5 above) should only include the second entry that can be seen in the screenshot ("MegaTest.csproj").

RSRP-466910: Search ewerywhere dosn't show equal name first!!!

$
0
0
Reporter Mikhail Pilin (ww) Mikhail Pilin (ww)
Created Nov 2, 2017 8:09:29 PM
Updated Apr 9, 2018 3:33:53 PM
Subsystem Navigation - Search (Find Usages)
Assignee Alexander Ulitin (alexander.ulitin)
Priority Critical
State Submitted
Type Task
Fix version 2018.1.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

RSRP-433781: There is no R# C++ if I try to add C++ project after ClassLib C# project

$
0
0
Reporter Kirill Falk (kfalk) Kirill Falk (kfalk)
Created Feb 16, 2015 11:29:42 AM
Updated Apr 9, 2018 3:34:03 PM
Resolved Mar 31, 2018 12:53:31 PM
Subsystem Platform - Project Model
Assignee Sergey Kuks (coox)
Priority Critical
State Verified
Type Bug
Fix version 9.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
1. create a simple ClassLibrary C# project (C# deamon is working fine)
2. add ConsoleApplication Win32 C++ project and open ConsoleApplication.cpp file (there is no R#)

RSRP-468717: Hierarchy: Renamed class is missing from diagram

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Mar 16, 2018 2:52:22 PM
Updated Apr 9, 2018 3:34:13 PM
Resolved Apr 2, 2018 11:43:37 AM
Subsystem Inspect This - Hierarchies
Assignee Alexander Ulitin (alexander.ulitin)
Priority Normal
State Verified
Type Bug
Fix version 2018.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion VS 2017 RTM, VS 2015 RTM
JetBrains ReSharper Ultimate 2018.1 EAP 4 D Build 12.0.20180316.033851-eap04d

Prereq: newly created Console Application project in VS 2017/2015. Test solution is attached.
1) Invoked ReSharper -> Inspect -> Hierarchies on Program class.
2) Click on "Show on diagram".
3) Right click Program class and choose Refactor ->Rename and rename it to "Program1".
4) Refresh diagram

Actual result:
See screenshot. "Subtypes of Program" tab changes to "Subtypes of {0}". Renamed class is gone.
Expected result:
"Subtypes of Program1" tab name is displayed. Renamed class is presented on diagram.

RSRP-453699: 'Merge conditional expression' mistakenly inserts ?. after non-nullable type

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Feb 10, 2016 10:03:57 PM
Updated Apr 9, 2018 3:34:19 PM
Subsystem Code Analysis - C#
Assignee Alexander Shvedov (shvedov)
Priority Critical
State Fixed In Branch
Type Bug
Fix version 2017.2
Affected versions 10.0.2
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion VS 2015 RTM
using System;

class C
{
int? GetYear(DateTime x)
{
return x == null ? (int?) null : x.Year; // Invoke 'Merge conditional' QF
}
}

ACTUAL:

        return x?.Year;

EXPECTED:

        return x.Year;

RSRP-468936: Unable to cast object of type 'JetBrains.ReSharper.Psi.CSharp.Impl.Tree.PrimaryConstructorDeclaration' to type 'JetBrains.ReSharper.Psi.CSharp.Tree.IConstructorDeclaration'.

$
0
0
Reporter Artem Bukhonov (Artem.Bukhonov) Artem Bukhonov (Artem.Bukhonov)
Created Mar 27, 2018 7:52:14 PM
Updated Apr 9, 2018 3:34:24 PM
Subsystem Quick Fixes
Assignee Alexander Shvedov (shvedov)
Priority Show-stopper
State Fixed In Branch
Type Exception
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
JetBrains JetBrains Rider 2018.1 Build RD-181.4379.170 Date 2018-03-27T13:24:29.961+0000

— EXCEPTION #1/2 [InvalidCastException]
Message = “Unable to cast object of type 'JetBrains.ReSharper.Psi.CSharp.Impl.Tree.PrimaryConstructorDeclaration' to type 'JetBrains.ReSharper.Psi.CSharp.Tree.IConstructorDeclaration'.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidCastException
Data.ThreadLocalDebugInfo = “
RdEndpoint<int, bool>: MainProtocol.PopupInteractionModel.altEnterItemsContributor.$.executeItem
-> RdSignal<ActionExecuteSyncHandshakeResult>: MainProtocol.ActionsModel.execute.$.handshake.$.result

HResult = E_NOINTERFACE=COR_E_INVALIDCAST=80004002
Source = JetBrains.ReSharper.Intentions.CSharp
StackTraceString = “
 at JetBrains.ReSharper.Intentions.CSharp.QuickFixes.UsageChecking.CSharpMemberFromParameterHelper.NeighbourDeclarations(IParametersOwnerDeclaration constructorDeclaration) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\src\Intentions\CSharp\Src\QuickFixes\UsageChecking\CSharpMemberFromParameterHelper.cs:line 56
 at JetBrains.ReSharper.Intentions.CSharp.QuickFixes.UsageChecking.CSharpMemberFromParameterHelper.NeighbourDeclarations(IParametersOwnerDeclaration constructorDeclaration) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\src\Intentions\CSharp\Src\QuickFixes\UsageChecking\CSharpMemberFromParameterHelper.cs:line 56
 at JetBrains.ReSharper.Intentions.QuickFixes.UsageChecking.MemberFromParameterHelper.FindInitializationLocation(IParametersOwnerDeclaration constructorDeclaration, IParameterDeclaration parameterDeclaration) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\src\Intentions\_Core\Src\QuickFixes\UsageChecking\MemberFromParameterHelper.cs:line 156
 at JetBrains.ReSharper.Intentions.QuickFixes.UsageChecking.MemberFromParameterHelper.IntroduceMember(String pattern, NamedElementKinds kind) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\src\Intentions\_Core\Src\QuickFixes\UsageChecking\MemberFromParameterHelper.cs:line 88
 at JetBrains.ReSharper.Intentions.QuickFixes.UsageChecking.IntroduceAndInitializeFieldFix.Execute() in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\src\Intentions\_Core\Src\QuickFixes\UsageChecking\IntroduceAndInitializeFieldFix.cs:line 45
 at JetBrains.ReSharper.Intentions.QuickFixes.UsageChecking.MemberFromParameterFixBase.ExecutePsiTransaction(ISolution solution, IProgressIndicator progress) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\src\Intentions\_Core\Src\QuickFixes\UsageChecking\MemberFromParameterFixBase.cs:line 66
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.<>c__DisplayClass0_4.<Execute>b__1() in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\Core\Services\_Core\Src\Bulbs\BulbActionBase.cs:line 69
 at JetBrains.ReSharper.Psi.Transactions.PsiTransactions.Execute(String commandName, Action handler) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\Core\Psi\_Core\Src\Transactions\PsiTransactions.cs:line 296


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Unable to cast object of type 'JetBrains.ReSharper.Psi.CSharp.Impl.Tree.PrimaryConstructorDeclaration' to type 'JetBrains.ReSharper.Psi.CSharp.Tree.IConstructorDeclaration'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.LogException(Exception ex) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 975
 at JetBrains.Util.Logging.Logger.LogException(Exception ex) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 975
 at JetBrains.ReSharper.Psi.Transactions.PsiTransactions.Execute(String commandName, Action handler) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\Core\Psi\_Core\Src\Transactions\PsiTransactions.cs:line 296
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.<>c__DisplayClass0_3.<Execute>b__0(IProgressIndicator progress) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\Core\Services\_Core\Src\Bulbs\BulbActionBase.cs:line 67
 at JetBrains.ReSharper.Host.Features.Util.Progress.RiderTaskExecutor.ExecuteTask(String taskName, TaskCancelable cancelable, Action`1 task) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Util\Progress\RiderTaskExecutor.cs:line 46
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.Execute(ISolution solution, ITextControl textControl) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\Core\Services\_Core\Src\Bulbs\BulbActionBase.cs:line 56
 at JetBrains.ReSharper.Feature.Services.Intentions.IntentionAction.MyExecutableProxi.Execute() in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\Core\Services\_Core\Src\Intentions\IntentionAction.cs:line 78
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\UI\Controls\BulbMenu\Keys\BulbActionKey.cs:line 83
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.<>c__DisplayClass29_0.<InitMenuGeneral>b__0(Object objKey) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\UI\Controls\GotoByName\BulbMenuComponent.cs:line 278
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 384
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 545
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenu.<>c__DisplayClass49_0.<InitViewModel>b__3(JetPopupMenuItem item) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\UI\Controls\JetPopupMenu\JetPopupMenu.cs:line 363
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 384
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 545
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 384
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 545
 at JetBrains.ReSharper.Host.Features.Services.RdPopupMenuModelBinding.ExecuteItem(Int32 itemId) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Services\RdPopupMenuModelBinding.cs:line 201
 at JetBrains.ReSharper.Host.Features.Services.RdPopupMenuModelBinding.<.ctor>b__11_5(Int32 itemId) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Services\RdPopupMenuModelBinding.cs:line 104
 at JetBrains.Platform.RdFramework.Tasks.RdEndpoint`2.<>c__DisplayClass26_0.<Set>b__0(Lifetime lf, TReq req) in C:\Build Agent\work\53741cd73e5522bb\Platform\RdProtocol\RdFramework\src\Tasks\RdTask.cs:line 557
 at JetBrains.Platform.RdFramework.Tasks.RdEndpoint`2.<>c__DisplayClass27_0.<Init>b__0(UnsafeReader reader) in C:\Build Agent\work\53741cd73e5522bb\Platform\RdProtocol\RdFramework\src\Tasks\RdTask.cs:line 576
 at JetBrains.Platform.RdFramework.Impl.MessageBroker.Execute(Action`1 handler, RdId id, Byte[] msg) in C:\Build Agent\work\53741cd73e5522bb\Platform\RdProtocol\RdFramework\src\Impl\MessageBroker.cs:line 77
 at JetBrains.Platform.RdFramework.Impl.MessageBroker.Subscription.<>c__DisplayClass5_0.<Invoke>b__0() in C:\Build Agent\work\53741cd73e5522bb\Platform\RdProtocol\RdFramework\src\Impl\MessageBroker.cs:line 51
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 300
 at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 664
 at JetBrains.Threading.JetDispatcher.Closure.Execute() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\JetDispatcher.cs:line 609
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 434
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 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 JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
 at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.InternalPumpMessagesOnce() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 646
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run(Func`1 condition, TimeSpan timeout, Boolean bThrowOnTimeout) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 809
 at JetBrains.ReSharper.Host.Features.Services.RiderJetPopupMenus.<>c__DisplayClass14_0.<SendToCustomHost>b__1() in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Services\RiderJetPopupMenus.cs:line 130
 at JetBrains.Threading.ReentrancyGuard.AllowNestedExecution(String name, Action action) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 239
 at JetBrains.ReSharper.Host.Features.Services.RiderJetPopupMenus.SendToCustomHost(JetPopupMenu menu, IRdProperty`1 customModel, ShowWhen when, Boolean isModal, LifetimeDefinition lifetimeDefinitionOptional) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Services\RiderJetPopupMenus.cs:line 137
 at JetBrains.ReSharper.Host.Features.Services.RiderBulbMenuComponent.ShowBulbMenuAdvanced(IEnumerable`1 menuItems, PopupWindowContextSource context, GotoByNameModel gotoByNameModel, Action`1 modelInitHandler, LifetimeDefinition viewLifetimeDefinition, IAutomation captionAutomation, Action`1 beforeShow) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Services\RiderBulbMenuComponent.cs:line 76
 at JetBrains.ReSharper.Intentions.Bulbs.BulbOnGutterMarginIndicator.ExecuteIndicator(IDataContext context, BulbItemsReadyState readyState) in C:\Build Agent\work\4d54332a870bf3eb\Psi.Features\src\Intentions\_Core\Src\Bulbs\GutterMargin\BulbOnGutterMarginIndicator.cs:line 181
 at JetBrains.ReSharper.Host.Features.Intentions.RiderBulbOnGutterMarginIndicator.ExecuteIndicator(IDataContext context, BulbItemsReadyState readyState) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Intentions\RiderBulbOnGutterMarginIndicator.cs:line 190
 at JetBrains.ReSharper.Host.Features.Intentions.RiderBulbOnGutterMarginIndicator.HandleAction(IDataContext context) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Intentions\RiderBulbOnGutterMarginIndicator.cs:line 147
 at JetBrains.Application.UI.ActionsRevised.Handlers.ExececutableActionEvaluator.Execute(IAction action, List`1 allActions, IDataContext dataContext) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\ExececutableActionEvaluator.cs:line 50
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<ExecuteWithoutRequirements>b__23_0(Lifetime lt) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 82
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\RdCore\Src\Lifetime\Lifetimes.cs:line 281
 at ActionExecution.<>c__DisplayClass14_1.<TryExecuteWithRequirements>b__1(ActionExecuteSyncHandshakeResult result) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Features\Actions\RiderActions.cs:line 247
 at JetBrains.Platform.RdFramework.Util.Signal`1.Fire0(Action`1[] listeners, T value) in C:\Build Agent\work\53741cd73e5522bb\Platform\RdProtocol\RdFramework\src\Util\Signal.cs:line 51
 at JetBrains.Platform.RdFramework.Impl.RdSignal`1.<>c__DisplayClass12_0.<.ctor>b__1(UnsafeReader stream) in C:\Build Agent\work\53741cd73e5522bb\Platform\RdProtocol\RdFramework\src\Impl\RdSignal.cs:line 57
 at JetBrains.Platform.RdFramework.Impl.MessageBroker.Execute(Action`1 handler, RdId id, Byte[] msg) in C:\Build Agent\work\53741cd73e5522bb\Platform\RdProtocol\RdFramework\src\Impl\MessageBroker.cs:line 77
 at JetBrains.Platform.RdFramework.Impl.MessageBroker.Subscription.<>c__DisplayClass5_0.<Invoke>b__0() in C:\Build Agent\work\53741cd73e5522bb\Platform\RdProtocol\RdFramework\src\Impl\MessageBroker.cs:line 51
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 300
 at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 664
 at JetBrains.Threading.JetDispatcher.Closure.Execute() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\JetDispatcher.cs:line 609
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 434
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 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 JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
 at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.InternalPumpMessagesOnce() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 646
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 846
 at JetBrains.ReSharper.Host.Product.ReSharperHostMain.Main(Lifetime lifetime, IReSharperHostSettings settings, ILogger logger, ShellProtocol protocol, RdModelRoot modelRoot, ApplicationShutdownRequests shutdownRequests) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Product\ReSharperHostMain.cs:line 40
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass0_0.<.ctor>b__0() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\RunsPublicStaticIntMain.cs:line 80
 at JetBrains.Util.Logging.Logger.Catch(Action action) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 339
 at JetBrains.Threading.JetDispatcher.Closure.Execute() in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\JetDispatcher.cs:line 609
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 434
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 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 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
 at JetBrains.DataFlow.Lifetimes.Using(Action`1 λ) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\RdCore\Src\Lifetime\Lifetimes.cs:line 234
 at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\IJetHostEx.cs:line 95
 at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\HostParameters\Interface\JetHostParametersCaller.cs:line 181
 at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\JetEnvironment.cs:line 251
 at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\JetEnvironment.cs:line 137
 at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.MainX(Assembly assembly, HostInfo hostInfo, String[] args) in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Product\ReSharperHostProgram.cs:line 52
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ) in C:\Build Agent\work\364305ea1b444484\Platform\Core\Shell\RdCore\Src\Lifetime\Lifetimes.cs:line 281
 at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.Main() in C:\Build Agent\work\105d7e5fa9cf8e21\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Product\ReSharperHostProgram.cs:line 23
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)



last.action = ShowIntentionActions

app.eap = true
app.internal = true
app.build = RD-181.4379.170
app.version.major = 2018
app.version.minor = 1
app.build.date = 2018-03-27T13:24:29.961+0000
app.build.date.release = 2017-12-27T00:00:29.961+0000
app.build.date.release = 2017-12-27T00:00:29.961+0000
app.compilation.timestamp = null
app.product.code = RD

os.name = Windows 10
java.version = 1.8.0_152-release
java.vm.vendor = JetBrains s.r.o

UIUtil.isRetina = false
UIUtil.isAppleRetina = false
JBUI.isHiDPI() = false
ImageScaleFactor = 1

RSRP-468655: C# 7.2 False error: Cannot make 'ref' parameter of type

$
0
0
Reporter Andrew Zhilin (andrew_zhilin@yahoo.com) Andrew Zhilin (andrew_zhilin@yahoo.com)
Created Mar 12, 2018 11:56:24 PM
Updated Apr 9, 2018 3:34:28 PM
Subsystem Code Analysis - C#
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Fixed In Branch
Type Bug
Fix version No Fix versions
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
// C# 7.2
public ref struct A {}
public ref struct B
{
  public void SomeMethod(ref A a){}
}

This code compiles without any errors, but Resharper reports:

Class1.cs:6 Cannot make 'ref' parameter of type 'A'

Reference: https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.2/span-safety.md#examples

RSRP-462247: "Merge conditional expression" breaks code

$
0
0
Reporter Andrew (impworks) Andrew (impworks)
Created Dec 15, 2016 2:21:33 PM
Updated Apr 9, 2018 3:36:43 PM
Subsystem Quick Fixes
Assignee Alexander Shvedov (shvedov)
Priority Critical
State Fixed In Branch
Type Bug
Fix version 2018.1
Affected versions 2016.2.2
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
Consider the following code:

class TestClass
{
public ImageTypeEnum? Kind { get; set; }

public string Description => Kind == null ? "(none)" : ((ImageTypeEnum)Kind.Value).ToString();
}

When I apply the suggested "Merge conditional exprerssion" quickfix, the code becomes broken:

class TestClass
{
public ImageTypeEnum? Kind { get; set; }

public string Description => ((ImageTypeEnum?) Kind?.Value)?.ToString() ?? "(none)";
}

The Kind?.Value makes no sense in the new context, because the value is already unwrapped by a safe navigation operator.
Viewing all 106942 articles
Browse latest View live


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