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

RSRP-469151: [AspMvcAction]/[AspMvcController] do not work for webapi (asp.core)

$
0
0
Reporter Marcelo Volmaro (Marcelo.Volmaro) Marcelo Volmaro (Marcelo.Volmaro)
Created Apr 6, 2018 11:04:12 PM
Updated Apr 13, 2018 8:09:58 PM
Subsystem ASP.NET
Assignee Slava Trenogin (derigel)
Priority Critical
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Arguments decorated with those AspMvc attributes are not resolved (marked in red by RS) when they are pointing out to a webapi action/controller.

Probably because they are trying to resolve (internally, I guess) against Controller instead of ControllerBase...

RSRP-469122: Cannot advance beyond the end of the range. Parameter name: units Actual value was 7.61888233252343.

$
0
0
Reporter Fedor Buyvol-Kot (Fedor.Buyvol-Kot) Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Created Apr 5, 2018 3:58:37 PM
Updated Apr 13, 2018 8:47:54 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _7ca6e00d — JetBrains ReSharper Ultimate 2018.1 EAP 7 Build 112.0.20180405.72015-eap07

JetBrains dotCover 2018.1 EAP 7 Build 2018.1.20180405.75838-eap07
JetBrains dotMemory 2018.1 EAP 7 Build 2018.1.20180405.75843-eap07
JetBrains dotTrace 2018.1 EAP 7 Build 2018.1.20180405.75839-eap07
JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180405.73111-eap07
JetBrains ReSharper C++ 2018.1 EAP 7 Build 2018.1.20180405.73118-eap07

SubProducts.0 = JetBrains dotCover 2018.1 EAP 7 Build 2018.1.20180405.75838-eap07
SubProducts.1 = JetBrains dotTrace 2018.1 EAP 7 Build 2018.1.20180405.75839-eap07
SubProducts.2 = JetBrains ReSharper C++ 2018.1 EAP 7 Build 2018.1.20180405.73118-eap07
SubProducts.3 = JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180405.73111-eap07
SubProducts.4 = JetBrains dotMemory 2018.1 EAP 7 Build 2018.1.20180405.75843-eap07

Cannot advance beyond the end of the range. Parameter name: units Actual value was 5.81395348837209.

— EXCEPTION #1/2 [ArgumentOutOfRangeException]
Message = “Cannot advance beyond the end of the range.”
ExceptionPath = Root.InnerException
ClassName = System.ArgumentOutOfRangeException
Data.CurrentPosition = 1
Data.AttemptedPosition = 1.058139534883721
Data.Units = 5.8139534883720927
HResult = COR_E_ARGUMENTOUTOFRANGE=80131502
ParamName = units
ActualValue = 5.8139534883720927

— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “
Cannot advance beyond the end of the range.
Parameter name: units
Actual value was 5.81395348837209.

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 7 Build 112.0.20180405.72015-eap07”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 7 Build 2018.1.20180405.75838-eap07”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 7 Build 2018.1.20180405.75839-eap07”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 7 Build 2018.1.20180405.73118-eap07”
Data.SubProducts.#3 = “JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180405.73111-eap07”
Data.SubProducts.#4 = “JetBrains dotMemory 2018.1 EAP 7 Build 2018.1.20180405.75843-eap07”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12-eap7::6f1db5735b46f32507c03777a6ef219232c03c6c


Platform\VisualStudio:
    git::refs/heads/wave12-eap7::f8c8de2b1299de97b8084ef948770cd0f67a1412

Data.VsVersion = 15.6.27428.2027
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.Progress.ProgressIndicator.JetBrains.Application.Progress.IProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.ProgressIndicator.JetBrains.Application.Progress.IProgressIndicator.Advance(Double units)
 at JetBrains.ReSharper.UnitTestFramework.UI.VS.ViewModels.UnitTestSessionProgressOnTaskBar.<>c__DisplayClass0_2.<.ctor>b__8()
 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__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)

RSRP-462102: Use of deprecated NuGet.Core.dll in ReSharper causing files not to get cleaned up from NuGetScratch folder

$
0
0
Reporter Dave Glick (somedave) Dave Glick (somedave)
Created Dec 6, 2016 10:58:38 PM
Updated Apr 13, 2018 9:11:36 PM
Subsystem Platform - Project Model
Assignee Alexander Ulitin (alexander.ulitin)
Priority Critical
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
NuGet used to clean up this folder on behalf of callers but no longer does due to NuGet.Core.dll being deprecated. The eventual leak can cause GBs of data to get written and never cleaned up. See this issue for more detailed information: https://github.com/NuGet/Home/issues/4040

RSRP-469035: Transition failed: Transition from state on event . Cause: System.ServiceModel.EndpointNotFoundException: There

$
0
0
Reporter David Stacey-Gee (mikeg@gee-soft.co.uk) David Stacey-Gee (mikeg@gee-soft.co.uk)
Created Mar 20, 2018 1:24:45 PM
Updated Apr 13, 2018 9:56:41 PM
Resolved Apr 4, 2018 9:00:12 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Duplicate
Type Exception
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _188944d0 — JetBrains ReSharper Ultimate 2018.1 EAP 3 Build 112.0.20180317.133322-eap03

JetBrains dotCover 2018.1 EAP 3 Build 2018.1.20180317.134708-eap03
JetBrains dotMemory 2018.1 EAP 3 Build 2018.1.20180317.134710-eap03
JetBrains dotTrace 2018.1 EAP 3 Build 2018.1.20180317.134715-eap03
JetBrains ReSharper 2018.1 EAP 3 Build 2018.1.20180317.134525-eap03
JetBrains ReSharper C++ 2018.1 EAP 3 Build 2018.1.20180317.134526-eap03
JetBrains TeamCity Add-in 2018.1 EAP 3 Build 2018.1.20180317.134527-eap03

Transition failed: Transition from state <RunnerStarting> on event <local::RunnerStarted>. Cause: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.pipe://mikestacey-b4a7/vstest.discoveryengine/21084 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. —> System.IO.PipeException: The pipe endpoint 'net.pipe://mikestacey-b4a7/vstest.discoveryengine/21084' could not be found on your local machine. — End of inner exception stack trace — Server stack trace: at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri, IPipeTransportFactorySettings transportFactorySettings) at System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress address, Uri via) at System.ServiceModel.Channels.CommunicationPool2.TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, TKey& key) at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout) at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade) at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.VisualStudio.TestPlatform.Core.ITestRunnerService.InitializeConnection(IEnumerable1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.TestRunnerServiceProxy.InitializeConnection(IEnumerable1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.<>c__DisplayClass23_0.<OpenClient>b__1(ITestRunnerService x) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.ResurrectableProxy1.WithTimeout(Action1 action) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.OpenClient() at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument) at Appccelerate.StateMachine.Machine.States.State2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext2 context)

--- EXCEPTION #1/1 [LoggerException]
Message = “
Transition failed: Transition from state <RunnerStarting> on event <local::RunnerStarted>.
Cause: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.pipe://mikestacey-b4a7/vstest.discoveryengine/21084 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.IO.PipeException: The pipe endpoint 'net.pipe://mikestacey-b4a7/vstest.discoveryengine/21084' could not be found on your local machine.
--- End of inner exception stack trace ---

Server stack trace:
at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri, IPipeTransportFactorySettings transportFactorySettings)
at System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress address, Uri via)
at System.ServiceModel.Channels.CommunicationPool
2.TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, TKey& key)
 at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
 at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
 at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
 at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
 at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
 at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
 at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
 at Microsoft.VisualStudio.TestPlatform.Core.ITestRunnerService.InitializeConnection(IEnumerable`1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.TestRunnerServiceProxy.InitializeConnection(IEnumerable`1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.<>c__DisplayClass23_0.<OpenClient>b__1(ITestRunnerService x)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.ResurrectableProxy`1.WithTimeout(Action`1 action)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.OpenClient()
 at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument)
 at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = vb
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 3 Build 112.0.20180317.133322-eap03”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 3 Build 2018.1.20180317.134708-eap03”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 3 Build 2018.1.20180317.134715-eap03”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 3 Build 2018.1.20180317.134526-eap03”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.1 EAP 3 Build 2018.1.20180317.134527-eap03”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.1 EAP 3 Build 2018.1.20180317.134525-eap03”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.1 EAP 3 Build 2018.1.20180317.134710-eap03”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12-eap3-take2

Platform\VisualStudio:
    git::refs/heads/wave12-eap3-take2::52fab4436e0faa19489e3510ea47c7a0f301d5b4

Data.VsVersion = 15.7.27512.0
Data.VsPreview = True
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.<.ctor>b__17_16(Object sender, TransitionExceptionEventArgs`2 args)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.<.ctor>b__17_16(Object sender, TransitionExceptionEventArgs`2 args)
 at Appccelerate.StateMachine.Machine.StateMachine`2.RaiseEvent[T](EventHandler`1 eventHandler, T arguments, ITransitionContext`2 context, Boolean raiseEventOnException)
 at Appccelerate.StateMachine.Machine.StateMachine`2.OnExceptionThrown(ITransitionContext`2 context, Exception exception)
 at Appccelerate.StateMachine.Machine.Contexts.TransitionContext`2.OnExceptionThrown(Exception exception)
 at Appccelerate.StateMachine.Machine.States.State`2.HandleException(Exception exception, ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.States.State`2.HandleEntryActionException(ITransitionContext`2 context, Exception exception)
 at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryActions(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.States.State`2.Entry(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(IState`2 source, IState`2 target, 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.ActiveStateMachine`2.ProcessEventQueue(CancellationToken cancellationToken)
 at Appccelerate.StateMachine.ActiveStateMachine`2.<Start>b__32_0()
 at System.Threading.Tasks.Task.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()
 at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
 at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
 at System.Threading.Tasks.ThreadPoolTaskScheduler.LongRunningThreadWork(Object obj)
 at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
 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 System.Threading.ThreadHelper.ThreadStart(Object obj)

RSRP-276289: Unable to rename a method with "Build" word

$
0
0
Reporter Samuel Tremblay (mystcreater) Samuel Tremblay (mystcreater)
Created Sep 27, 2011 6:27:31 PM
Updated Apr 13, 2018 10:04:45 PM
Resolved Apr 13, 2018 10:04:45 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Can't Reproduce
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
When I try to rename a method with the word "Build", I receive a warning from Resharper that tells me that conflicts were found but it's a private method that is not use in my class. I tried with many projects in many class and the behavior is always the same.

RSRP-469262: Razor page reports semicolon expected inside block

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Apr 13, 2018 10:07:34 PM
Updated Apr 13, 2018 10:07:56 PM
Subsystem JavaScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3.5, 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
In the screenshot, Resharper is showing that it expects a semicolon after the IpAddress property name, but a semicolon is not required there. If a semicolon is put there, the warning is not resolved and the semicolon is included in the text output (it doesn't complete the @ tag).


<script>
@{
var index = 0;

foreach (var node in Model.DmrNodes)
{
<Text>addNodeAddress("@node.IpAddress", "@index");</Text>
index++;
}
}
</script>

RSRP-275926: Create parameter 'ParameterName' in containing method and update hierarchy fails

$
0
0
Reporter Jarmo Poolak (JPollack) Jarmo Poolak (JPollack)
Created Sep 21, 2011 2:57:50 PM
Updated Apr 13, 2018 10:08:23 PM
Resolved Apr 13, 2018 10:08:23 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Bug
Fix version Backlog
Affected versions 2018.1, 6.0 EAP
Fixed In Version ReSharper Undefined
VsVersion All Versions
public interface IUdpClient
{
void Listen(int listenPort);
}
    
    public class UdpClientWrapper : IUdpClient{
protected UdpClient UdpClient { get; set; }

        public void Listen(int listenPort)
{
            // Refactor: Create parameter 'OnEndReceive'
            // in containing method and update hierarchy
UdpClient.BeginReceive(OnEndReceive, messageState);
}
    }

Refactor: 'Create parameter 'OnEndReceive' in containing method and update hierarchy'

Updates the method signature:
public void Listen(int listenPort, AsyncCallback onEndReceive)

It adds the last method parameter as 'onEndReceive' but AFAIK it should be 'OnEndReceive' (with capitalized 'O').

However, refactor 'Create parameter 'OnEndReceive' in containing' gives expected result.

RSRP-469263: Create parameter in containing method and pull: produces uncompilable code.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 13, 2018 10:11:47 PM
Updated Apr 13, 2018 10:11:47 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 #12.0.20180413.123914.

  1. Invoke "Create other -> Create parameter 'OnEndReceive' in containing method and pull" QF on OnEndReceive.

Actual result:
Uncompilable code:

        public interface IUdpClient
        {
            void Listen(int listenPort);
        }

        public class UdpClientWrapper : IUdpClient
        {
            protected UdpClient UdpClient { get; set; }

            public void Listen(int listenPort, AsyncCallback OnEndReceive)
            {
                // Refactor: Create parameter 'OnEndReceive' 
                // in containing method and update hierarchy
                UdpClient.BeginReceive(OnEndReceive, messageState);
            }
        }

Expected result:
Compilable code.

NOTE:
"Create other -> Create parameter 'OnEndReceive' in containing method" QF produces compilable code:

        public interface IUdpClient
        {
            void Listen(int listenPort, AsyncCallback OnEndReceive);
        }

        public class UdpClientWrapper : IUdpClient
        {
            protected UdpClient UdpClient { get; set; }

            public void Listen(int listenPort, AsyncCallback OnEndReceive)
            {
                // Refactor: Create parameter 'OnEndReceive' 
                // in containing method and update hierarchy
                UdpClient.BeginReceive(OnEndReceive, messageState);
            }
        }

RSRP-468051: TypeScript: false positives on 'Cannot resolve symbol' in ReactJS application

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Jan 22, 2018 8:34:10 PM
Updated Apr 13, 2018 10:49:27 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Critical
State Submitted
Type Bug
Fix version 2018.2
Affected versions 2017.3.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Open attached solution

Result: plenty of 'Cannot resolve symbol' errors:

RSRP-460083: Apply "Mark as HTML" and other language injections for multiple concatenated strings and for string interpolations / template strings

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Aug 2, 2016 4:43:34 PM
Updated Apr 14, 2018 1:03:30 AM
Subsystem Language injection
Assignee Nikita Popov (poksh)
Priority Critical
State Submitted
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
I expect that when I mark first string as HTML, second and third will be implicitly marked. Also R# should treat them as single string and realize that tag is actually closed. IMHO, this feature is useless without it.

RSRP-469020: Component descriptor JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWindows.WinFormsControls.IntroFieldWindow [Singleton, Corrup

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 2, 2018 11:42:45 AM
Updated Apr 14, 2018 1:19:04 AM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Submitted
Type Exception
Fix version 2018.2
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs14 Wave 12 — JetBrains ReSharper Ultimate 2018.1 EAP 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
JetBrains TeamCity Add-in 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d

SubProducts.0 = JetBrains dotCover 2018.1 EAP 6 D Build 2018.1.20180402.50943-eap06d
SubProducts.1 = JetBrains dotTrace 2018.1 EAP 6 D Build 2018.1.20180402.50839-eap06d
SubProducts.2 = JetBrains ReSharper C++ 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d
SubProducts.3 = JetBrains TeamCity Add-in 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d
SubProducts.4 = JetBrains ReSharper 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d
SubProducts.5 = JetBrains dotMemory 2018.1 EAP 6 D Build 2018.1.20180402.50830-eap06d

Component descriptor JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWindows.WinFormsControls.IntroFieldWindow [Singleton, Corrupted] is corrupted and cannot be accessed

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Component descriptor JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWindows.WinFormsControls.IntroFieldWindow [Singleton, Corrupted] is corrupted and cannot be accessed”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.ComponentModel
StackTraceString = “
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.FactoryComponentContainer.CreateInstanceCore(Lifetime lifetime, Type type, IComponentContainer parent, Object[] args)
 at JetBrains.Application.Components.FactoryComponentContainer.CreateInstance(Lifetime lifetime, Type objecttype, IComponentContainer parent, Object[] args)
 at JetBrains.Application.UI.Automation.IAutomationViewsRegistryEx.CreateView[TRes](Lifetime lifetime, Type typeView, IComponentContainer containerForFactoring, IAutomation oAutomation)
 at JetBrains.Application.UI.Automation.IAutomationViewsRegistryEx.TryCreateViewBy[TRes](IAutomationViewsRegistry thіs, Lifetime lifetime, IAutomation oAutomation, ViewKind kind, IComponentContainer containerForFactoring)
 at JetBrains.Application.UI.UIAutomation.EitherControlEx.GetWinFormsControlWithViewsRegistrySupport(EitherControl eithercontrol, Lifetime lifetime, IAutomationViewsRegistry viewsreg, DataContexts datacontexts)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWizardForm.ContentChanged_Presentation(Lifetime lifeValue, IRefactoringPage value)
 at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass26_0`1.<ForEachValue>b__0(Lifetime lf, TValue value, Object cookie)
 at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass27_1`1.<ForEachValue>b__1(Lifetime lifetimeValue)
 at JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass4_0.<Next>b__0(LifetimeDefinition definition, Lifetime lifetime)
 at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILog logger)
 at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)
 at JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)
 at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass27_0`1.<ForEachValue>b__0(PropertyChangedEventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Component descriptor JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWindows.WinFormsControls.IntroFieldWindow [Singleton, Corrupted] is corrupted and cannot be accessed”
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 TeamCity Add-in 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.1 EAP 6 D Build 2018.1.20180402.50703-eap06d”
Data.SubProducts.#5 = “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 = 14.0.25431.1
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.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
 at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WorkflowHostWithWizardForm.ShowPage(IRefactoringPage page, Boolean hasBack)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.MoveToPreviousPage()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action, TaskPriority priority)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WorkflowHostWithWizardForm.BackClick(Object sender, EventArgs e)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWizardForm.myBackButton_Click(Object sender, EventArgs e)
 at System.Windows.Forms.Control.OnClick(EventArgs e)
 at System.Windows.Forms.Button.OnClick(EventArgs e)
 at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
 at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
 at System.Windows.Forms.Control.WndProc(Message& m)
 at System.Windows.Forms.ButtonBase.WndProc(Message& m)
 at System.Windows.Forms.Button.WndProc(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

RSRP-469264: NullReferenceException is thrown in JetBrains.ReSharper.UnitTestProvider.nUnit.v30.NUnitServiceProvider.GetRunStrategy(IUnitTestElement element)

$
0
0
Reporter Kelsie Kerchmar (kkerchmar) Kelsie Kerchmar (kkerchmar)
Created Apr 14, 2018 8:05:04 AM
Updated Apr 14, 2018 8:10:11 AM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3.5
Fixed In Version ReSharper Undefined
VsVersion VS 2017 15.3

I have a project full of unit tests which is using the new VS2017 project format. The project targets 'net461'. This is significant because while this is a supported setup in VS2017, it is worth noting that the .NET Framework 4.6.1 project templates in VS2017 still use the old project format. Therefore, this exact setup has a high likelihood of not having been well-trodden compared to other arrangements, such as a .NET Core project using the new VS2017 project format, or a .NET Framework project using the old project format.

Here's what a simple project looks like that can repro the issue I'm about to describe:

<Project ToolsVersion="15.0" Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="NUnit" Version="3.10.1" />
  </ItemGroup>
</Project>

For about half of my team (the other half is unaffected), when they attempt to run the NUnit3 tests using resharper in VS2017, they get a NullReferenceException in JetBrains.ReSharper.UnitTestProvider.nUnit.v30.NUnitServiceProvider.GetRunStrategy(IUnitTestElement element). The same issue occurs in the v26 nUnit provider; I originally had attempted to upgrade to a newer version of NUnit to see if it would resolve the issue, but it did not resolve it.

This is the decompiled code where the exception is thrown. I don't know until Monday when I can debug the exception which line is the offender:

public IUnitTestRunStrategy GetRunStrategy(IUnitTestElement element)
{
  IProject project = element.Id.Project;
  if (!project.IsDotNetCoreProject())
    return (IUnitTestRunStrategy) this.myRunStrategy;
  if (this.myDotNetCoreSdkResolver.GetVersion(project) < ImportantSdkVersions.VsTestVersion)
    return (IUnitTestRunStrategy) this.myDotNetTestRunStrategy ?? (IUnitTestRunStrategy) (this.myDotNetTestRunStrategy = (DotNetTestRunStrategy) this.mySolution.GetComponent<NUnitDotNetTestRunStrategy>());
  if (element.Id.TargetFrameworkId.IsNetCoreApp)
    return (IUnitTestRunStrategy) this.myDotNetVsTestRunStrategy ?? (IUnitTestRunStrategy) (this.myDotNetVsTestRunStrategy = (DotNetVsTestRunStrategy) this.mySolution.GetComponent<NUnitDotNetVsTestRunStrategy>());
  return (IUnitTestRunStrategy) this.myRunStrategy;
}

This method has some code that cares whether the project is a .NET Core project, and it seemed a little bit suspicious to me that the crash would happen specifically in a method that cares if the project is a .NET Core project, because it is not a .NET Core project, and I had a hunch that maybe the project was being erroneously treated as a .NET Core project, and maybe that was causing issues.

I'll have to wait until Monday to get access to one of my colleague's machines that is actually exhibiting the crash, but in the meantime, I used dotPeek decompiler and symbol server to debug this on my machine which is not exhibiting the crash, and I observed that the project is indeed erroneously being considered a .NET Core project.

The offending method calls JetBrains.ProjectModel.IsDotNetCoreProject, which returns true because DotNetCoreSDK is not null in the ProjectImpl.ProjectProperties. I traced the fact that DotNetCoreSDK is not null back to JetBrains.VsIntegration.ProjectDocuments.Projects.Builder.GetOrCreateDescriptor. This method calls this.NeedsDotNetCoreSDK, which erroneously returns true. The expression in that method:

  return projectTypeGuid == CSharpProjectPropertiesFactory.ProjectKProjectTypeGuid || !projectLocation.ExtensionWithDot.Equals(".vcxproj", StringComparison.OrdinalIgnoreCase) && TargetFrameworkIdInProjectFile.Instance.GetTargetFrameworkIds(projectLocation).Any<TargetFrameworkId>();

evaluates to:

false || true && true

where the target framework ids result is just one entry, '.NETFramework,Version=v4.6.1'.

I believe the last part of this expression is the bug, because it is treating any target framework id having been set in the project as indicative of the project being a .NET Core project, which is not true, because the new VS2017 project format can be used for .NET Framework projects as well.

I created a .NET Framework project with the legacy project format and checked out how this same code played out, and indeed there are no target framework ids, and so that expression evaluates to 'false', confirming that this is where things are going awry.

At the end of the day, I don't yet know if this is what is causing the crash half my team is experiencing, and it will be Monday before I can get a debugger on the actual exception being thrown. But in the meantime, this seems like enough information to show that something isn't right here.

This issue was reproduced on multiple versions of ReSharper ultimate 2017, and the code snippets from above are decompiled from the 2017.3.5 (2018-03-23) build.

RSRP-276558: Double QuickFix "Remove Expression"

$
0
0
Reporter Serge Baltic (baltic) Serge Baltic (baltic)
Created Sep 30, 2011 3:43:57 PM
Updated Apr 14, 2018 2:17:06 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
            int a = new Random().Next();
if (a == 5 && Keys.A == Keys.A) { }

On Keys.A == Keys.A.

RSRP-469254: Don't run Unit tests (MSTest) when build fails

$
0
0
Reporter Kirill Falk (kfalk) Kirill Falk (kfalk)
Created Apr 13, 2018 11:28:46 AM
Updated Apr 14, 2018 3:56:26 PM
Resolved Apr 14, 2018 3:56:12 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Verified
Type Bug
Fix version 2018.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 RTM
VsVersion All Versions
  • Create a sample MSTest or xUnit project
  • Run test, clear test result
  • break compiltation and rerun test once again -> PASSED

RSRP-469243: Create Integration test for navigation to shared C++ file

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 12, 2018 8:45:53 PM
Updated Apr 14, 2018 3:57:12 PM
Subsystem Internals
Assignee Alexander Petrovsky (apetrov2)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
for some reason in C++ file is shared between 2 projects and it is open in the editor in a context of one file a message box 'The document is already shown' will pop up on navigation to a different context.
STR:
  • open .cpp file
  • put caret on foo and call go to base
  • open another .cpp file
  • perform the same navigation. This should work after my fix

Scenario 2
  • modufy but don't save shared .h so foo is still there
  • repeat steps from STR. Navigation should perform and .h will be saved (no changes lost)

RSRP-469183: [VS 2017 15.7 Preview 3] No intellisense and refactoring actions when edit csproj files

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Apr 10, 2018 4:28:31 PM
Updated Apr 14, 2018 4:06:44 PM
Resolved Apr 14, 2018 4:06:44 PM
Subsystem Platform - VS Integration
Assignee Sergey Kuks (coox)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.1.1
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Now on Visual Studio 2017 15.7 Preview 3, ReSharper doesn't provide no intellisense, refactoring actions, etc. when edit the csproj file without unload the project.
This worked very well in Visual Studio 2017 15.6.5.


Also worked in VS 2017 Preview 2



RSRP-469186: Blazor support

$
0
0
Reporter Maarten Balliauw (Maarten.Balliauw) Maarten Balliauw (Maarten.Balliauw)
Created Mar 8, 2018 3:33:38 AM
Updated Apr 14, 2018 4:58:06 PM
Subsystem ASP.NET - Razor
Assignee Slava Trenogin (derigel)
Priority Normal
State Submitted
Type Feature
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-468645: Get a warning when using [Values] attribute in NUnit tests with [Test] attribute

$
0
0
Reporter Anup Shah (anup@onenaught.com) Anup Shah (anup@onenaught.com)
Created Mar 12, 2018 1:49:29 PM
Updated Apr 14, 2018 6:10:50 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2016.3.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

Problem:
Try to use the [Values] attribute in an NUnit test, as seen in any example here: https://github.com/nunit/docs/wiki/Values-Attribute

By default you will get the NUnit.MethodWithParametersAndTestAttribute warning.

Example:

Expected behaviour:
No warning.

RSRP-469265: Code analysis considers parentheses surrounding a pointer variable as redundant (in unsafe code)

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Apr 14, 2018 8:40:17 PM
Updated Apr 14, 2018 8:40:17 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3.5, 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Reproduced for all the 3 cases below (2017.3.5 and 2018.1 EAP 8).

public static unsafe byte[] GetBytes(this float obj)
{
    float* x = &obj;
    var n = (*x).GetBytes();
    var m = (*&obj).GetBytes();
    var k = (*(float*)&obj).GetBytes();
    return n;
}

Without "Remove redundant parentheses" inspection the context action is available:


With "Remove redundant parentheses" inspection the Quick-fix is suggested as well:

RSRP-469266: Add inheritdoc CA should have lower priority

$
0
0
Reporter Alexander Ulitin (alexander.ulitin) Alexander Ulitin (alexander.ulitin)
Created Apr 14, 2018 11:56:34 PM
Updated Apr 14, 2018 11:56:34 PM
Subsystem Context Actions
Assignee Matthias Koch (Matthias.Koch)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
See screenshot:
Move to Derived.cs is much more usable in this context.


public class Derived : Base
{
}
public class Base
{
private Derived a = new Derived();
}
Viewing all 106942 articles
Browse latest View live