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

RSRP-468580: [Performance Report] Re: #1278598

$
0
0
Reporter Tim Kempton (timkempton) Tim Kempton (timkempton)
Created Mar 5, 2018 8:51:31 PM
Updated Apr 7, 2018 12:43:23 PM
Resolved Apr 5, 2018 11:44:21 PM
Subsystem Refactorings
Assignee Slava Tutushkin (slava.tutushkin)
Priority Show-stopper
State Fixed
Type Performance Problem
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
Evaluator: False
OS Version: Microsoft Windows NT 10.0.15063.0
Product: ReSharper, Version: 2017.3.20180302.70613
Time Zone: GMT Standard Time

Description

This takes 30 minutes to run on a small solution with < 1000 files

RSRP-469155: Label.TextColor is set more then once (allowed in Xamarin)

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 7, 2018 2:11:33 PM
Updated Apr 7, 2018 2:11:33 PM
Subsystem XAML
Assignee Alexander Shvedov (shvedov)
Priority Critical
State Open
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
use the solution from RSRP-469152
in GeodatabaseTransactions.xaml
            <Label x:Name="MessageTextBlock"
Grid.Row="3" Grid.ColumnSpan="4"
Text="Generating local geodatabase ..."
TextColor="Blue" FontSize="Micro"
VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"
Margin="5"
LineBreakMode="CharacterWrap">
<Label.TextColor>
<OnPlatform x:TypeArguments="Color">
<OnPlatform.Platforms>
<On Platform="iOS" Value="Blue" />
<On Platform="Android" Value="White" />
<On Platform="UWP" Value="Blue" />
</OnPlatform.Platforms>
</OnPlatform>
</Label.TextColor>
</Label>

RSRP-469156: Implicit operator is not found or fails in case of UWP

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 7, 2018 2:15:57 PM
Updated Apr 7, 2018 2:15:57 PM
Subsystem XAML
Assignee Olga Lukianova (olka)
Priority Critical
State Open
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
use solution from RSRP-469152
open GeodatabaseTransactions.xaml in UWP context (note, in iOs and Android it is ok)
see Invalid type: expected type is 'Color', actual type is 'OnPlatform<Color>'
            <Label x:Name="MessageTextBlock"
Grid.Row="3" Grid.ColumnSpan="4"
Text="Generating local geodatabase ..."
TextColor="Blue" FontSize="Micro"
VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"
Margin="5"
LineBreakMode="CharacterWrap">
<Label.TextColor>
<OnPlatform x:TypeArguments="Color">
<OnPlatform.Platforms>
<On Platform="iOS" Value="Blue" />
<On Platform="Android" Value="White" />
<On Platform="UWP" Value="Blue" />
</OnPlatform.Platforms>
</OnPlatform>
</Label.TextColor>
</Label>

RSRP-188475: Safe Delete for a class with inheritors: warn

$
0
0
Reporter Valentin Kipiatkov (valentin) Valentin Kipiatkov (valentin)
Created Aug 16, 2010 3:46:12 PM
Updated Apr 7, 2018 2:40:58 PM
Resolved Apr 7, 2018 2:40:58 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Usability Problem
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
User could be unaware about inheritors left.

RSRP-188501: Inplace Change Signature: bad signature rendering

$
0
0
Reporter Valentin Kipiatkov (valentin) Valentin Kipiatkov (valentin)
Created Aug 16, 2010 7:50:36 PM
Updated Apr 7, 2018 2:49:25 PM
Subsystem Refactorings - Inplace
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Open
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-188950: 'Extract method' forgets to insert type arguments and using directives for retargetable types

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Aug 20, 2010 5:47:58 PM
Updated Apr 7, 2018 2:53:01 PM
Resolved Apr 7, 2018 2:53:01 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
// .NET 2.0
using System.Collections.Generic;

public class A
{
public static List<int> Foo()
{
return null;
}
}
// .NET 4.0
class B
{
static void Main()
{
var x = A.Foo(); // Extract method from expression A.Foo()
}
}

Result:

class B
{
static void Main()
{
var x = Bar();
}

static List Bar() // List is unresolved
{
return A.Foo();
}
}

RSRP-190381: QFix on "?? Left Operand Never Null": Breaks Code (Changes Expression Type)

$
0
0
Reporter Serge Baltic (baltic) Serge Baltic (baltic)
Created Sep 3, 2010 8:52:39 PM
Updated Apr 7, 2018 2:54:46 PM
Resolved Apr 7, 2018 2:54:46 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
void X()
{
    bool f = bool.Parse(Console.ReadLine());
    int? x = null;

    if(f)
        x = 5;

    int n = f ? (x ?? 6) : 7;
}

?? 6 is highlighted as redundant.

The QFix removes it without adding any cast, which changes the expression type from int to int?, which breaks the assignment.

RSRP-190522: Add reference to library quick fix

$
0
0
Reporter Olga Lukianova (olka) Olga Lukianova (olka)
Created Sep 7, 2010 5:14:53 PM
Updated Apr 7, 2018 3:02:22 PM
Resolved Apr 7, 2018 3:02:22 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. We have mixed solution: VB + C#
2. We write such code in C# file
3. Use quick fix to add reference

The result is that reference has been added but using directive hasn't been added.

[StandardModule]
public class X
{
}

RSRP-190704: Need context action to move assignment out of object initializer

$
0
0
Reporter Valentin Kipiatkov (valentin) Valentin Kipiatkov (valentin)
Created Sep 9, 2010 10:23:43 PM
Updated Apr 7, 2018 3:06:04 PM
Resolved Apr 7, 2018 3:06:04 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
  Foo foo = new Foo{ Prop1 = Bar1(), Prop2 = Bar2() };

Sometimes it's necessary to move one of the initializers out. For example:

  Foo foo = new Foo{ Prop2 = Bar2() };
Prop1 = Bar1();

This can be needed, for example, to make property assignment conditional, or to extract object creation into separate method.

RSRP-191003: Warn when refactoring is performed while in debug mode

$
0
0
Reporter Andrew Serebryansky (marcus23) Andrew Serebryansky (marcus23)
Created Sep 16, 2010 3:14:51 PM
Updated Apr 7, 2018 3:14:00 PM
Resolved Apr 7, 2018 3:14:00 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
I was trying to rename a field, Resharper scanned project, has shown additional places in the comments, got my okay, and then nothings happend. I tried again nothing happed. Finally I noticed that the project has debug in progress and I forgot to stop it. And no changes are made because of this. Is it possible to add a message indicatig that project is under debug and no chages are possible.

RSRP-469147: Feature request: Method only calls itself

$
0
0
Reporter Vianney PHILIPPE (vianney) Vianney PHILIPPE (vianney)
Created Apr 6, 2018 5:35:25 PM
Updated Apr 7, 2018 3:34:16 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Description

When an interface method only calls itself (cycle), it can be removed.

Sample repro

[UsedImplicitly]
public interface IStuff
{
void OnlyCallsItself();
}

internal sealed class Foo : IStuff
{
private readonly IStuff wrapped;
public Foo(IStuff wrapped)
{
this.wrapped = wrapped;
}
public void OnlyCallsItself()
{
wrapped.OnlyCallsItself();
}
}

[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public sealed class FooBuilder
{
internal Foo Create(IStuff stuff)
{
return new Foo(stuff);
}
}

Expected result

Method OnlyCallsItself only calls itself and it can be removed.

Actual result

Nothing.
But I can safely remove all OnlyCallsItself methods.

Versions

Resharper 2017.3.5

RSRP-469157: Red fonts are seen on regular types such as System when reference to System is included

$
0
0
Reporter Hector Echegoyen (hechegoyen) Hector Echegoyen (hechegoyen)
Created Apr 7, 2018 4:38:27 PM
Updated Apr 7, 2018 4:38:27 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

As shown on the attached zip file Red fonts are seen on regular types such as System when reference to System is included. The solution compiles and runs fine. I performed a Repair using the installer but it did not make a difference. I should mention that yesterday there was a Windows Update that seemed to be pretty big so I'm not sure what's confusing Resharper. Thanks.

RSRP-468672: MSTest: test marked with [Workitem(), Workitem()] cannot be run as inconclusive

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Mar 14, 2018 12:58:05 AM
Updated Apr 7, 2018 5:56:08 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Fixed In Branch
Type Bug
Fix version 2018.1.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Create new MSTest project
2. Add [Workitem(1), Workitem(2)] to the top of test case

Result: test cannot be run as inconclusive
Unable to process test-case <UnitTestProject2.UnitTest1.TestMethod1>. Test-case dump: Properties: MSTestDiscoverer.TestClassName = UnitTestProject2.UnitTest1 TestObject.Traits = System.Collections.Generic.KeyValuePair`2[System.String,System.String][] TestCase.CodeFilePath = C:\Users\angelina.elycheva\source\repos\UnitTestProject2\UnitTestProject2\UnitTest1.cs TestCase.DisplayName = TestMethod1 TestCase.ExecutorUri = executor://mstestadapter/v2 TestCase.FullyQualifiedName = UnitTestProject2.UnitTest1.TestMethod1 TestCase.Id = 98c9151d-1023-52eb-4a3a-91de0b1a68df TestCase.LineNumber = 12 TestCase.Source = C:\Users\angelina.elycheva\source\repos\UnitTestProject2\UnitTestProject2\bin\Debug\UnitTestProject2.dll Traits: WorkItem = 1 WorkItem = 2 An item with the same key has already been added.

--- EXCEPTION #1/2 [ArgumentException]
Message = “An item with the same key has already been added.”
ExceptionPath = Root.InnerException
ClassName = System.ArgumentException
HResult = E_INVALIDARG=COR_E_ARGUMENT=80070057
Source = mscorlib
StackTraceString = “
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.OnTestFound(TestCase test)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “
Unable to process test-case <UnitTestProject2.UnitTest1.TestMethod1>.
Test-case dump: Properties:
MSTestDiscoverer.TestClassName = UnitTestProject2.UnitTest1
TestObject.Traits = System.Collections.Generic.KeyValuePair`2[System.String,System.String][]
TestCase.CodeFilePath = C:\Users\angelina.elycheva\source\repos\UnitTestProject2\UnitTestProject2\UnitTest1.cs
TestCase.DisplayName = TestMethod1
TestCase.ExecutorUri = executor://mstestadapter/v2
TestCase.FullyQualifiedName = UnitTestProject2.UnitTest1.TestMethod1
TestCase.Id = 98c9151d-1023-52eb-4a3a-91de0b1a68df
TestCase.LineNumber = 12
TestCase.Source = C:\Users\angelina.elycheva\source\repos\UnitTestProject2\UnitTestProject2\bin\Debug\UnitTestProject2.dll
Traits:
WorkItem = 1
WorkItem = 2
An item with the same key has already been added.

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 2 Build 112.0.20180306.121807-eap02”
Data.SubProducts.#0 = “JetBrains ReSharper C++ 2018.1 EAP 2 Build 2018.1.20180306.123910-eap02”
Data.SubProducts.#1 = “JetBrains TeamCity Add-in 2018.1 EAP 2 Build 2018.1.20180306.122901-eap02”
Data.SubProducts.#2 = “JetBrains ReSharper 2018.1 EAP 2 Build 2018.1.20180306.122857-eap02”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave12-eap2-take2

Data.VsVersion = 15.5.27130.2027
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.OnTestFound(TestCase test)
at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentActionHolder`1.Execute(Object argument)
at Appccelerate.StateMachine.Machine.Transitions.Transition`2.PerformActions(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.Fire(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.StateMachine`2.Fire(TEvent eventId, Object eventArgument)
at Appccelerate.StateMachine.PassiveStateMachine`2.ProcessQueuedEvents()
at Appccelerate.StateMachine.PassiveStateMachine`2.Execute()
at Appccelerate.StateMachine.PassiveStateMachine`2.Fire(TEvent eventId, Object eventArgument)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.TestRunnerServiceClient.DiscoveryComplete(Int64 totalTests, IEnumerable`1 lastChunk, Boolean isAborted)
at SyncInvokeDiscoveryComplete(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
at System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceiveAsyncResult.OnReceive(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.SynchronizedMessageSource.ReceiveAsyncResult.OnReceiveComplete(Object state)
at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
at System.ServiceModel.Channels.StreamConnection.OnRead(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Security.NegotiateStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.NegotiateStream.ReadCallback(AsyncProtocolRequest asyncRequest)
at System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result)
at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)
at System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean haveResult, Int32 error, Int32 numBytes)
at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

RSRP-468306: Value cannot be null. Parameter name: node

$
0
0
Reporter Ivan Serduk (IvanSerduk) Ivan Serduk (IvanSerduk)
Created Feb 8, 2018 6:03:58 PM
Updated Apr 7, 2018 8:05:42 PM
Subsystem No Subsystem
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Show-stopper
State Fixed In Branch
Type Exception
Fix version 2018.1.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _138bc0bdReSharper — JetBrains ReSharper Ultimate 2018.1 EAP 1 D Build 112.0.20180208.135133-eap01d

JetBrains ReSharper 2018.1 EAP 1 D Build 2018.1.20180208.135133-eap01d

Value cannot be null. Parameter name: node

— EXCEPTION #1/2 [ArgumentNullException]
Message = “Value cannot be null.”
ExceptionPath = Root.InnerException
ClassName = System.ArgumentNullException
HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
Source = JetBrains.ReSharper.Psi
ParamName = node
StackTraceString = “
 at JetBrains.ReSharper.Psi.Tree.TreeNodeExtensions.GetTokenType(ITreeNode node) in C:\projects\dotnet-products\Psi.Features\Core\Psi\_Core\Src\Tree\TreeNodeExtensions.cs:line 285
 at JetBrains.ReSharper.Psi.Tree.TreeNodeExtensions.GetTokenType(ITreeNode node) in C:\projects\dotnet-products\Psi.Features\Core\Psi\_Core\Src\Tree\TreeNodeExtensions.cs:line 285
 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.CSharpTypingAssistBase.<>c__DisplayClass103_0.<TryProcessSmartIndentOnEnterViaDeclarativeFormatter>b__1(IFile file) in C:\projects\dotnet-products\Psi.Features\Core\Services\CSharp\Src\TypingAssist\CSharpTypingAssistBase.cs:line 2072
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistUtils.CommitPsiOnlyAndProceedWithDirtyCaches[TLanguage,T](TypingAssistBase typingAssist, ITextControl textControl, Func`2 action) in C:\projects\dotnet-products\Psi.Features\Core\Services\_Core\Src\TypingAssist\TypingAssistUtils.cs:line 66
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistLanguageBase`1.CommitPsiOnlyAndProceedWithDirtyCaches[T](ITextControl textControl, Func`2 action) in C:\projects\dotnet-products\Psi.Features\Core\Services\_Core\Src\TypingAssist\TypingAssistLanguageBase.cs:line 57
 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.CSharpTypingAssistBase.<>c__DisplayClass103_0.<TryProcessSmartIndentOnEnterViaDeclarativeFormatter>b__0() in C:\projects\dotnet-products\Psi.Features\Core\Services\CSharp\Src\TypingAssist\CSharpTypingAssistBase.cs:line 2004
 at JetBrains.DocumentModel.Transactions.DocumentTransactionManager.DoTransaction(String commandName, Func`1 handler) in C:\projects\dotnet-products\Platform\Core\Text\Documents\Src\Transactions\DocumentTransactionManager.cs:line 81


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “
Value cannot be null.
Parameter name: node

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 1 D Build 112.0.20180208.135133-eap01d”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.1 EAP 1 D Build 2018.1.20180208.135133-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave12-duke-bugfix::5e6cd3bfbf79b152840d8965d9b0a4bf5c02af81

Data.VsVersion = 15.5.27130.2026
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex) in C:\projects\dotnet-products\Platform\Core\Shell\Core\Src\Logging\ILogger.cs:line 24
 at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex) in C:\projects\dotnet-products\Platform\Core\Shell\Core\Src\Logging\ILogger.cs:line 24
 at JetBrains.Util.Logging.LogEx.Error(ILog this, Exception ex, String message) in C:\projects\dotnet-products\Platform\Core\Shell\RdCore\Src\Logging\LogEx.cs:line 213
 at JetBrains.Util.Logging.Logger.LogException(Exception ex) in C:\projects\dotnet-products\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 974
 at JetBrains.DocumentModel.Transactions.DocumentTransactionManager.DoTransaction(String commandName, Func`1 handler) in C:\projects\dotnet-products\Platform\Core\Text\Documents\Src\Transactions\DocumentTransactionManager.cs:line 89
 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.CSharpTypingAssistBase.TryProcessSmartIndentOnEnterViaDeclarativeFormatter(ITextControl textControl, Func`2 useExtraStub, String extraStub, Func`3 getExtraStub, Action`1 modifySettings, Boolean newLineEncountered, CachingLexer lexer, Int32& offset1, Int32& virtualOffset1) in C:\projects\dotnet-products\Psi.Features\Core\Services\CSharp\Src\TypingAssist\CSharpTypingAssistBase.cs:line 2002
 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.CSharpTypingAssistBase.ProcessSmartIndentOnEnter(ITextControl textControl, Func`2 useExtraStub, String extraStub, Func`3 getExtraStub, Action`1 modifySettings, Boolean newLineEncountered, CachingLexer lexer, Int32& offset1, Int32& virtualOffset) in C:\projects\dotnet-products\Psi.Features\Core\Services\CSharp\Src\TypingAssist\CSharpTypingAssistBase.cs:line 2171
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistLanguageBase`1.DoSmartIndentOnEnterImpl(ITextControl textControl, Func`2 dumbIndentToken, Func`2 noIndentToken, Func`2 useExtraStub, String extraStub, Func`3 getExtraStub, Action`1 modifySettings) in C:\projects\dotnet-products\Psi.Features\Core\Services\_Core\Src\TypingAssist\TypingAssistLanguageBase.cs:line 307
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistLanguageBase`1.DoIndentOnEnter(ITextControl textControl, Func`2 dumbIndentToken, Func`2 noIndentToken, Func`2 useExtraStub, String extraStub, Func`3 getExtraStub, Action`1 modifySettings) in C:\projects\dotnet-products\Psi.Features\Core\Services\_Core\Src\TypingAssist\TypingAssistLanguageBase.cs:line 187
 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.CSharpTypingAssistBase.HandleEnterPressed(IActionContext context) in C:\projects\dotnet-products\Psi.Features\Core\Services\CSharp\Src\TypingAssist\CSharpTypingAssistBase.cs:line 1093
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.ChainedContextBase`2.CallNext() in C:\projects\dotnet-products\Psi.Features\Core\Services\_Core\Src\TypingAssist\TypingAssistManager.cs:line 175
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.Handle[TContext,THandler](TContext context, List`1 handlers, ChainedContextBase`2 chainedContextFactory) in C:\projects\dotnet-products\Psi.Features\Core\Services\_Core\Src\TypingAssist\TypingAssistManager.cs:line 71
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.Act(ITextControl textControl, String actionId, DelegateExecute nextExecute) in C:\projects\dotnet-products\Psi.Features\Core\Services\_Core\Src\TypingAssist\TypingAssistManager.cs:line 80
 at JetBrains.ReSharper.Feature.Services.TypingAssist.ExternalActionHandler.Execute(IDataContext context, DelegateExecute nextExecute) in C:\projects\dotnet-products\Psi.Features\Core\Services\_Core\Src\TypingAssist\ExternalActionHandler.cs:line 33
 at JetBrains.Application.UI.ActionsRevised.Handlers.ExececutableActionEvaluator.Execute(IAction action, List`1 allActions, IDataContext dataContext) in C:\projects\dotnet-products\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:\projects\dotnet-products\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 83
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ) in C:\projects\dotnet-products\Platform\Core\Shell\RdCore\Src\Lifetime\Lifetimes.cs:line 287
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.ExecuteWithoutRequirements() in C:\projects\dotnet-products\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 75
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_0.<PrepareRequirementsAsync>b__1() in C:\projects\dotnet-products\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 52
 at JetBrains.Util.Logging.Logger.Catch(Action action) in C:\projects\dotnet-products\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 339
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_0.<PrepareRequirementsAsync>b__0() in C:\projects\dotnet-products\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 52
 at JetBrains.Application.UI.ActionSystem.ActionsRevised.Handlers.RequirementsManager.ExecuteActionAsync(IActionRequirement requirement, Action continueWith, Action failWith, Boolean reSharperIsThinking) in C:\projects\dotnet-products\Platform\Core\Shell\Shell\Src\UI\ActionSystem\ActionsRevised\Handlers\RequirementsManager.cs:line 94
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.PrepareRequirementsAsync(OuterLifetime lifetime, Func`1 executeWhenRequirementsReady, Action`1 failWith) in C:\projects\dotnet-products\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 48
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.Execute() in C:\projects\dotnet-products\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 70
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass26_0.<TryDelegateToTypingHandlers_NonTyping>b__0() in C:\projects\dotnet-products\Platform\VisualStudio\Core\Src\TextControl\VsTextControlOleCommandTarget.cs:line 290
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.WithRegisteredDelegateBackToVsHandler(String sCommandName, Action`1 FExecDelegateBackToVs, Action FRun) in C:\projects\dotnet-products\Platform\VisualStudio\Core\Src\TextControl\VsTextControlOleCommandTarget.cs:line 349
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.TryDelegateToTypingHandlers_NonTyping(CommandID commandid, Action`1 FExecDelegateBackToVs) in C:\projects\dotnet-products\Platform\VisualStudio\Core\Src\TextControl\VsTextControlOleCommandTarget.cs:line 290
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.TryDelegateToTypingHandlers(Boolean bIsTyping, CommandID commandid, IntPtr pvaIn, Action`1 FExecDelegateBackToVsClosed) in C:\projects\dotnet-products\Platform\VisualStudio\Core\Src\TextControl\VsTextControlOleCommandTarget.cs:line 263
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass29_0.<Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec>b__0() in C:\projects\dotnet-products\Platform\VisualStudio\Core\Src\TextControl\VsTextControlOleCommandTarget.cs:line 396
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in C:\projects\dotnet-products\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 300
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action) in C:\projects\dotnet-products\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 524
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in C:\projects\dotnet-products\Platform\VisualStudio\Core\Src\TextControl\VsTextControlOleCommandTarget.cs:line 383
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CompoundTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)

RSRP-468986: Code Analysis not working most of the time

$
0
0
Reporter Werner de Vries (werner.devries) Werner de Vries (werner.devries)
Created Mar 30, 2018 12:20:49 PM
Updated Apr 7, 2018 10:25:34 PM
Resolved Apr 7, 2018 10:25:34 PM
Subsystem Code Analysis
Assignee Sergey Kuks (coox)
Priority Critical
State Fixed
Type Bug
Fix version 2018.1
Affected versions 2017.3.3, 2017.3.5, 2017.3.1, 2017.3, 2017.3.2, 2017.2, 2017.1.2, 2017.1.1, 2017.1, 2016.3.1, 2016.3.2, 2016.3, 2017.2.1, 2017.2.2
Fixed In Version ReSharper Undefined
VsVersion VS 2017 15.3, VS 2015 RTM

Summary: Resharper's Code Analysis is disabled for almost all files most of the time. Many of my colleagues report the same issue. The is a forum topic about it for a long time, but still no solution. I (and other people) tried a lot of things to get things working again, even after a complete reinstall of my PC and Visual Studio 2017 + Resharper the problem persists.

Since the forum topic does not get enough attention I decided to create this issue, because we pay enough money for these tools every year and now they only work 50% of the time. We might as well cancel our subscription if this does not get solved anytime soon.

Link to the forum topic: https://resharper-support.jetbrains.com/hc/en-us/community/posts/115000015424-Code-Analysis-Not-Working-on-Many-Files?page=1#community_comment_360000121564


RSRP-469036: No single target framework in project Microsoft.CodeAnalysis.Debugging.Package Sequence contains more than one element

$
0
0
Reporter Maltseva Ekaterina (Maltseva.Ekaterina) Maltseva Ekaterina (Maltseva.Ekaterina)
Created Apr 2, 2018 5:34:27 PM
Updated Apr 7, 2018 10:25:34 PM
Resolved Apr 7, 2018 10:25:34 PM
Subsystem Platform - VS Integration
Assignee Sergey Kuks (coox)
Priority Show-stopper
State Fixed
Type Exception
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _8ca9bb57 — JetBrains ReSharper Ultimate 2018.1 EAP 6 D Build 112.0.20180402.30101-eap06d

JetBrains dotCover 2018.1 EAP 6 D Build 2018.1.20180402.50943-eap06d
JetBrains dotMemory 2018.1 EAP 6 D Build 2018.1.20180402.50830-eap06d
JetBrains dotTrace 2018.1 EAP 6 D Build 2018.1.20180402.50839-eap06d
JetBrains ReSharper 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d
JetBrains ReSharper C++ 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d

No single target framework in project Microsoft.CodeAnalysis.Debugging.Package Sequence contains more than one element

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Sequence contains more than one element”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = System.Core
StackTraceString = “
 at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
 at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
 at JetBrains.ProjectModel.ProjectExtensions.GetSingleTargetFrameworkId(IProject project)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “No single target framework in project Microsoft.CodeAnalysis.Debugging.Package Sequence contains more than one element”
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 6 D Build 112.0.20180402.30101-eap06d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 6 D Build 2018.1.20180402.50943-eap06d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 6 D Build 2018.1.20180402.50839-eap06d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d”
Data.SubProducts.#3 = “JetBrains ReSharper 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d”
Data.SubProducts.#4 = “JetBrains dotMemory 2018.1 EAP 6 D Build 2018.1.20180402.50830-eap06d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12::d5658c4f384a97f08769998a4f0dd60cb299aeae


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

Data.VsVersion = 15.6.27428.2015
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.ProjectModel.ProjectExtensions.GetSingleTargetFrameworkId(IProject project)
 at JetBrains.ProjectModel.ProjectExtensions.GetSingleTargetFrameworkId(IProject project)
 at JetBrains.ProjectModel.Impl.ProjectToAssemblyReference.CreateFromLocation(IProject project, FileSystemPath location, TargetFrameworkId targetFramework)
 at JetBrains.DocumentManagers.Transactions.Actions.AddReferenceAction.Prepare()
 at JetBrains.DocumentManagers.Transactions.ProjectModelEditorBase.AddModuleReference(IProject project, IModule referenceToAdd, TargetFrameworkId targetFrameworkId)
 at JetBrains.DocumentManagers.Transactions.ProjectModelTransactionFactory.ProjectModelTransactionCookie.AddModuleReference(IProject project, IModule referenceToAdd, TargetFrameworkId targetFrameworkId1)
 at JetBrains.ReSharper.Psi.Modules.GenericModuleReferencer.ReferenceModule(IPsiModule module, IPsiModule moduleToReference)
 at JetBrains.ReSharper.Psi.Modules.GenericModuleReferencer.ReferenceModuleWithType(IPsiModule module, ITypeElement typeToReference)
 at JetBrains.ReSharper.Psi.Modules.ModuleReferencerService.ReferenceModuleWithType(IPsiModule module, ITypeElement typeToReference)
 at JetBrains.ReSharper.Intentions.QuickFixes.ReferenceModuleAndTypeFixItem.ExecuteBeforePsiTransaction(ISolution solution, IProjectModelTransactionCookie cookie, IProgressIndicator progress)
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.<>c__DisplayClass0_3.<Execute>b__0(IProgressIndicator progress)
 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.<>c__DisplayClass11_0.<RunStartTask>b__0()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass18_0.<BeginInvokeCore>b__0()
 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)
 at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
 at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
 at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
 at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
 at System.Windows.Forms.Application.RunDialog(Form form)
 at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
 at System.Windows.Forms.Form.ShowDialog()
 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.UITaskExecutorRuns.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task)
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.Execute(ISolution solution, ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.Intentions.IntentionAction.MyExecutableProxi.Execute()
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked()
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.<>c__DisplayClass29_0.<InitMenuGeneral>b__0(Object objKey)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenu.<>c__DisplayClass49_0.<InitViewModel>b__3(JetPopupMenuItem item)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value)
 at JetBrains.Application.UI.Controls.JetPopupMenu.Detail.JetPopupMenuDoc.ExecuteSelectedItem()
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuMainpartView.OnMouseUp(MouseEventArgs e)
 at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
 at System.Windows.Forms.Control.WndProc(Message& m)
 at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuMainpartView.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)
 at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.InternalPumpMessagesOnce()
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run(Func`1 condition, TimeSpan timeout, Boolean bThrowOnTimeout)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.JetPopupMenuOverlordView.Show(Boolean isModal)
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenus.ShowCore(JetPopupMenu menu, ShowWhen when, Boolean isModal, LifetimeDefinition lifetimeDefinitionOptional, IJetPopupMenuOverlordView parentView)
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.ShowMenuOnKeys(LifetimeDefinition viewLifetimeDefinition, PopupWindowContextSource context, ICollection`1 rootItems, IAutomation menuCaptionAutomation, Action`1 beforeShow, ShowWhen showWhen)
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.ShowBulbMenu(ICollection`1 keys, PopupWindowContextSource context, IAutomation captionControl, Action`1 beforeShow, LifetimeDefinition viewLifetimeDefinition)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.TextControl.GutterMargin.VsGutterMarginControl.MouseProcessor.<>c__DisplayClass10_0.<MouseUp>b__0()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Application.Threading.IShellLocksEx.<>c__DisplayClass1_0.<ExecuteOrQueueReadLock>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action, TaskPriority priority)
 at JetBrains.Application.Threading.IThreadingEx.ExecuteOrQueue(IThreading thіs, String name, Action action)
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteOrQueueReadLock(IShellLocks thіs, String name, Action F)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.TextControl.GutterMargin.VsGutterMarginControl.MouseProcessor.MouseUp(Object sender, MouseButtonEventArgs e)
 at System.Windows.Input.MouseButtonEventArgs.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.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
 at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
 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-462746: Continuous line indent multiplier does not work correctly

$
0
0
Reporter Christian Schuster (chrischu) Christian Schuster (chrischu)
Created Jan 27, 2017 4:29:43 PM
Updated Apr 8, 2018 1:34:08 AM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Show-stopper
State Reopened
Type Bug
Fix version 2018.1.1
Affected versions 2016.3.2
Fixed In Version ReSharper 2017.3 EAP 1
VsVersion VS 2015 RTM
I configured the "continuous line indent multiplier" like this (and my indent is set to 2 spaces):


So if I'm not mistaken a continous line should be indented by 4 spaces (2 base indent * 2 multiplier), but as shown in the following screenshot it does not seem to be applied that way:


Changing the "continuous line indent multiplier" to higher values does not seem to change the indent as well, which leads me to belive that the "continuous line indent multiplier" is not applied at all.

I am using R#2016.3.2.

RSRP-155169: Getter is incorrectly formatted on change inside body which makes it containing only one statement

$
0
0
Reporter Valentin Kipiatkov (valentin) Valentin Kipiatkov (valentin)
Created Feb 12, 2010 8:52:18 PM
Updated Apr 8, 2018 1:34:46 AM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Major
State Open
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
    public IEnumerable<KeyValuePair<ElementId, UsageState>> UsedMemberIds
{
get
{
foreach(KeyValuePair<ITypeMember, UsageState> pair in myMergedData.TypeMemberStates)
{
ElementId? id = myElementIdCache[pair.Key];
if (id != null)
yield return new KeyValuePair<ElementId, UsageState>((ElementId)id, pair.Value);
}
}
}

convert foreach to LINQ:

    public IEnumerable<KeyValuePair<ElementId, UsageState>> UsedMemberIds
{
get {
return from pair in myMergedData.TypeMemberStates let id = myElementIdCache[pair.Key] where id != null select new KeyValuePair<ElementId, UsageState>((ElementId)id, pair.Value);
}
}

(brace layout is incorrect).

RSRP-274385: Code cleanup should keep trailing new-line

$
0
0
Reporter Petr Kuzel (pkuzel) Petr Kuzel (pkuzel)
Created Jul 25, 2011 2:46:49 PM
Updated Apr 8, 2018 1:35:06 AM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Major
State Submitted
Type Cosmetics
Fix version Backlog
Affected versions 6.0
Fixed In Version ReSharper Undefined
VsVersion All Versions
Diff after the code cleanup:

+ } +} \ No newline at end of file

=== Expected behaviour
C#, VB.NET, HTML, ... source files ends with the trailing new-line.

RSRP-402967: Provide additional setting for first brace position in multiline generic methods/type definitions

$
0
0
Reporter Andrey Shchekin (ashmind) Andrey Shchekin (ashmind)
Created Feb 5, 2014 3:28:39 AM
Updated Apr 8, 2018 1:35:32 AM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Major
State Submitted
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Example:

public class Test { // single line: K&R style
...
}

// but

public class Test<T>
where T : class
{ // multiline: BSD style
...
}
Viewing all 106942 articles
Browse latest View live


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