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

RSRP-279760: Add intentions to convert "as" to "cast" and vice-versa

$
0
0
Reporter Carlos Costa e Silva (carloscs) Carlos Costa e Silva (carloscs)
Created Nov 10, 2011 4:11:12 PM
Updated Oct 8, 2018 3:39:38 PM
Resolved Oct 8, 2018 3:39:37 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Feature
Fix version Unidentified prior version
Affected versions 6.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Add intention to convert "x as y" to "(y) x" and the converse, convert "(y) x" to "x as y".

RSRP-62538: C# Context Actions for change explicit cast to a safe cast (as) and vice versa

$
0
0
Reporter Matt Eland (meland) Matt Eland (meland)
Created Mar 25, 2008 9:16:06 PM
Updated Oct 8, 2018 3:41:32 PM
Resolved Oct 8, 2018 3:41:31 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Feature
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Given the following code:

MyType foo1 = anotherObect.SomePropertyThatIsOfTypeObject as MyType;
MyType foo2 = (MyType)anotherObect.SomePropertyThatIsOfTypeObject;

foo1.Name = "Mufasa"; // R# warns of foo1 possibly being null but does not provide an option to change foo1 to an explicit cast either on this line or on foo1's declaration.

It'd be nice to have context actions on as to change it to an explicit cast. It'd be nice to have context actions on (MyType) to change it to a safe cast.

This would be particularly useful for situations like the third line where foo1 might be null, but really, a safe cast isn't needed so my desired fix would be to change foo1 to use an explicit cast instead of as.

RSRP-280206: To explicit implementation does not update calls

$
0
0
Reporter Yuri Astrakhan (yurik) Yuri Astrakhan (yurik)
Created Nov 11, 2011 11:25:04 PM
Updated Oct 8, 2018 3:43:18 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 6.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
    class Foo:IEnumerable
{
public IEnumerator GetEnumerator()
{
throw new NotImplementedException();
}

public IEnumerator Bar()
{
return GetEnumerator();
}
}

Doing "to explicit implementation" on GetEnumerator() does not update Bar() to be "((IEnumerable)this).GetEnumerator()"

RSRP-469432: Invalid expression is always false

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 26, 2018 8:12:37 PM
Updated Oct 8, 2018 3:45:52 PM
Resolved Oct 8, 2018 3:45:52 PM
Subsystem Code Analysis - C#
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
using System;

namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
if (!(args is var arguments)) return;
foreach (var argument in arguments)
{
Console.WriteLine(argument);
}
}
}
}

RSRP-281477: Fix Signature For XML Comments Doesn't Work With Nullable Types

$
0
0
Reporter Kevin Watkins (MrKWatkins) Kevin Watkins (MrKWatkins)
Created Nov 17, 2011 3:44:57 PM
Updated Oct 8, 2018 3:45:53 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 6.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
If we have the following in a class:

public void SomeMethod(int? parameter)
{
}

/// <summary>
/// <see cref="SomeMethod()"/>
/// </summary>
public void OtherMethod()
{
}
ReSharper will highlight the brackets in the <see> element with 'Incorrect signature of 'SomeMethod''. If I then click on 'Fix signature' in the actions list I get the following:

/// <summary>
/// <see cref="SomeMethod(Nullable{T})"/>
/// </summary>
public void OtherMethod()
{
}
Which is incorrect; I should get:

/// <summary>
/// <see cref="SomeMethod(int?)"/>
/// </summary>
public void OtherMethod()
{
}
Visual Studio 2008, C#, .NET 3.5 project, ReSharper 6.1.0.11493.

RSRP-281860: xml comment copy from base/update to match base

$
0
0
Reporter Philip Lee (philiplee) Philip Lee (philiplee)
Created Nov 18, 2011 5:42:15 PM
Updated Oct 8, 2018 3:49:55 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 6.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Ideally there should be a way of inheriting comments from a base class, but since there isn't
we have to copy base class commments.

Currently R# has a quick fix to copy comments from base class.
Once the comment has been copied R# hides this quick fix.
It would be useful if there was then quick fix to 'update comments to match base class' when the comments differ.

It would be even better if we could change the comment in the base class and then R# could offer to push the comment out to some or all derived classes.

RSRP-282138: Feature request: Offer quick-fix for common invalid HTML: A&B => A&B

$
0
0
Reporter T (thymin) T (thymin)
Created Nov 21, 2011 1:46:55 AM
Updated Oct 8, 2018 3:51:15 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-282205: Missing "Remove parameter" quick-fix when ReSharper detects that "Parameter is only used for precondition check(s)".

$
0
0
Reporter Allon Guralnek (allong) Allon Guralnek (allong)
Created Nov 21, 2011 12:54:06 PM
Updated Oct 8, 2018 3:53:46 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions 6.0, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I have a method that has a Contract.Requires() precondition check on one of its parameters. I have removed all usages of that parameter from the method body, except for the precondition check, and ReSharper correctly detects that "Parameter <x> is only used for precondition check(s)" and fades it out. And I indeed want to remove that parameter, its usages and its precondition check, since it is no longer used.

Unfortunately, when I click on that parameter, the only quick-fixes offered are "Create overload without parameter", "Annotate with 'CanBeNullAttribute'" and "Annotate with 'NotNullAttribute'". I must first manually remove the precondition check (the removal produces no visual indication that anything has changed, the parameter remains faded out as before) and only then does the "Remove parameter (and update usages)" quick-fix appear.

Since in both cases the parameter is faded out, I'd expect to have the same quick-fixes in both cases - to remove the parameter.

RSRP-466783: Custom pattern involving type parameter loses outer scope (type is a nested type)

$
0
0
Reporter Kit Cragin (kcragin) Kit Cragin (kcragin)
Created Oct 24, 2017 11:59:26 PM
Updated Oct 8, 2018 3:57:15 PM
Resolved Oct 8, 2018 3:57:15 PM
Subsystem Structured Patterns (SSR)
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
The sequence of images below shows what happens when I create and apply a custom pattern replacement when one of the types is nested. For example the type DTO.Volume ends up becoming Volume after the custom type is applied.

Given
Code
class DTO
{
struct Volume { ... }
}

When I create and apply the custom pattern





Then I get this incorrect result:



When I was expecting

RSRP-283300: Incorrect text in bubble solution on invalid reference type T

$
0
0
Reporter Jarmo Poolak (JPollack) Jarmo Poolak (JPollack)
Created Nov 25, 2011 2:46:52 PM
Updated Oct 8, 2018 3:57:30 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Cosmetics
Fix version Backlog
Affected versions 6.0, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Example invalid C# code
public class TestClass
{
public T GetStatus<T>() where T : Constant
{
}
}

public static class Constant
{
}

If clicking on 'Constant' on GetStatus definition row a bubble with help is provided. The text is 'Make class 'Constant' non-sealed.'

Using the help it changes
public static class Constant
to
public class Constant
which is correct action.

However the bubble help text should be changed to:
'Make class 'Constant' non-static.'


Note that hovering over the same 'Constant' displays tooltip with the following message:
'Cannot use sealed class 'Constant' as type parameter constraint.'

I am not sure is this Visual Studio or ReSharper's message. Here the 'sealed class' should be replaced with 'static class' too.

RSRP-284215: AddReturnFix must work with multitypes

$
0
0
Reporter Alexey Kuptsov (alexey.kuptsov) Alexey Kuptsov (alexey.kuptsov)
Created Nov 30, 2011 7:32:40 PM
Updated Oct 8, 2018 4:00:43 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Improvement
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
using System;

internal class Test
{
public void ConvertValue(Func<string> value)
{
}

public void ConvertValue(Func<int> value)
{
}

public void Foo()
{
ConvertValue(() => { {caret}});
}
}
Must suggest to select 'return null' or 'return 0' (with hotspot).

RSRP-471129: Create quickfixes for altering VB language level as we have in C#

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Aug 17, 2018 4:44:37 PM
Updated Oct 8, 2018 4:08:36 PM
Subsystem Platform - VS Integration
Assignee Andrew Karpov (andrew.karpov)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-466714: Could not bind the component argument descriptor on JetBrains.ReSharper.Feature.Services.QuickFixes.QuickFixTable. Component descriptor JetBrains.ReSh

$
0
0
Reporter Maltseva Ekaterina (Maltseva.Ekaterina) Maltseva Ekaterina (Maltseva.Ekaterina)
Created Oct 19, 2017 2:53:31 PM
Updated Oct 8, 2018 4:11:11 PM
Resolved Oct 8, 2018 4:11:11 PM
Subsystem Platform - Layered Settings
Assignee Serge Baltic (baltic)
Priority Show-stopper
State Can't Reproduce
Type Exception
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 11 Hive _8ca9bb57 — JetBrains ReSharper Ultimate 2017.3 EAP 1 PRE Build 111.0.20171018.104551-eap01pre

JetBrains dotCover 2017.3 EAP 1 PRE Build 2017.3.20171018.105916-eap01pre
JetBrains dotMemory 2017.3 EAP 1 PRE Build 2017.3.20171018.105915-eap01pre
JetBrains dotTrace 2017.3 EAP 1 PRE Build 2017.3.20171018.105917-eap01pre
JetBrains ReSharper 2017.3 EAP 1 PRE Build 2017.3.20171018.105808-eap01pre
JetBrains ReSharper C++ 2017.3 EAP 1 PRE Build 2017.3.20171018.105804-eap01pre

SubProducts.0 = JetBrains dotCover 2017.3 EAP 1 PRE Build 2017.3.20171018.105916-eap01pre
SubProducts.1 = JetBrains dotTrace 2017.3 EAP 1 PRE Build 2017.3.20171018.105917-eap01pre
SubProducts.2 = JetBrains ReSharper C++ 2017.3 EAP 1 PRE Build 2017.3.20171018.105804-eap01pre
SubProducts.3 = JetBrains ReSharper 2017.3 EAP 1 PRE Build 2017.3.20171018.105808-eap01pre
SubProducts.4 = JetBrains dotMemory 2017.3 EAP 1 PRE Build 2017.3.20171018.105915-eap01pre

Could not bind the component argument descriptor on JetBrains.ReSharper.Daemon.SolutionAnalysis.IssuesSerializer.IssuesTypesWriter. Component descriptor JetBrains.ReSharper.Feature.Services.Daemon.HighlightingSettingsManagerImpl [Singleton, Corrupted] is corrupted and cannot be accessed

— EXCEPTION #1/3 [InvalidOperationException]
Message = “Component descriptor JetBrains.ReSharper.Feature.Services.Daemon.HighlightingSettingsManagerImpl [Singleton, Corrupted] is corrupted and cannot be accessed”
ExceptionPath = Root.InnerException.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.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin)


— Outer —

— EXCEPTION #2/3 [InvalidOperationException]
Message = “Could not bind the component argument descriptor on JetBrains.ReSharper.Daemon.SolutionAnalysis.IssuesSerializer.IssuesTypesWriter.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.ArgumentDescriptorString = “JetBrains.ReSharper.Feature.Services.Daemon.HighlightingSettingsManagerImpl [Singleton, Corrupted]”
Data.ArgumentDescriptorType = JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor
Data.ArgumentIndex = 2
Data.Origin = JetBrains.ReSharper.Daemon.SolutionAnalysis.IssuesSerializer.IssuesTypesWriter
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_INVALIDOPERATION=80131509

— Outer —

— EXCEPTION #3/3 [LoggerException]
Message = “Could not bind the component argument descriptor on JetBrains.ReSharper.Daemon.SolutionAnalysis.IssuesSerializer.IssuesTypesWriter.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2017.3 EAP 1 PRE Build 111.0.20171018.104551-eap01pre”
Data.SubProducts.#0 = “JetBrains dotCover 2017.3 EAP 1 PRE Build 2017.3.20171018.105916-eap01pre”
Data.SubProducts.#1 = “JetBrains dotTrace 2017.3 EAP 1 PRE Build 2017.3.20171018.105917-eap01pre”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2017.3 EAP 1 PRE Build 2017.3.20171018.105804-eap01pre”
Data.SubProducts.#3 = “JetBrains ReSharper 2017.3 EAP 1 PRE Build 2017.3.20171018.105808-eap01pre”
Data.SubProducts.#4 = “JetBrains dotMemory 2017.3 EAP 1 PRE Build 2017.3.20171018.105915-eap01pre”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave11-qx-perfGuide

Data.VsVersion = 15.4.27004.2002
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin)
 at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.DelayedInitializationStrategy.<Dispatch>b__2()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass5.<BeginInvokeCore>b__3()
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
 at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
 at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
 at System.Windows.Window.ShowHelper(Object booleanBox)
 at System.Windows.Window.Show()
 at System.Windows.Window.ShowDialog()
 at JetBrains.UI.Extensions.WindowUtil.<>c__DisplayClass21.<ShowDialogWithGuardedCreation>b__19()
 at JetBrains.Application.UI.Components.UIApplication.ApplicationModalStateEx.<>c__DisplayClass1`1.<WithModalState>b__0(Lifetime lifetime)
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ)
 at JetBrains.Application.UI.Components.UIApplication.ApplicationModalStateEx.WithModalState[T](IApplicationModalState appModalState, Func`1 modalAction)
 at JetBrains.UI.Extensions.WindowUtil.ShowDialogWithGuardedCreation(Lifetime lifetime, WindowModality modality, Func`3 FCreateView, IThreading threading, Object ownerwindow, IApplicationModalState applicationModalState)
 at JetBrains.UI.Extensions.WindowUtil.<>c__DisplayClass1d.<ShowDialogWithGuardedCreation>b__17()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Application.Threading.IThreadingEx.<>c__DisplayClass7.<>c__DisplayClass9.<ExecuteOrQueueWhenNotGuarded>b__4()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass5.<BeginInvokeCore>b__3()
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

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

$
0
0
Reporter Tatyana Lunegova (lunega) Tatyana Lunegova (lunega)
Created Oct 8, 2018 4:16:13 PM
Updated Oct 8, 2018 4:17:15 PM
Subsystem UI
Assignee Daniel Degtyarev (daniel.degtyarev)
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 183 Hive _cfcc61ab — JetBrains ReSharper Ultimate 2018.3 EAP 2 D Build 183.0.20181008.52751-eap02d

JetBrains dotCover 2018.3 EAP 2 D Build 2018.3.20181008.54209-eap02d
JetBrains dotMemory 2018.3 EAP 2 D Build 2018.3.20181008.54742-eap02d
JetBrains dotTrace 2018.3 EAP 2 D Build 2018.3.20181008.54205-eap02d
JetBrains ReSharper 2018.3 EAP 2 D Build 2018.3.20181008.54358-eap02d
JetBrains ReSharper C++ 2018.3 EAP 2 D Build 2018.3.20181008.54739-eap02d

SubProducts.0 = JetBrains dotCover 2018.3 EAP 2 D Build 2018.3.20181008.54209-eap02d
SubProducts.1 = JetBrains dotTrace 2018.3 EAP 2 D Build 2018.3.20181008.54205-eap02d
SubProducts.2 = JetBrains ReSharper C++ 2018.3 EAP 2 D Build 2018.3.20181008.54739-eap02d
SubProducts.3 = JetBrains ReSharper 2018.3 EAP 2 D Build 2018.3.20181008.54358-eap02d
SubProducts.4 = JetBrains dotMemory 2018.3 EAP 2 D Build 2018.3.20181008.54742-eap02d

Object reference not set to an instance of an object.

— EXCEPTION #1/2 [NullReferenceException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root.InnerException
ClassName = System.NullReferenceException
HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
Source = JetBrains.ReSharper.Features.Internal
StackTraceString = “
 at JetBrains.ReSharper.Features.Internal.ReSharper.Options.InternalPage.<.ctor>b__2_5()
 at JetBrains.ReSharper.Features.Internal.ReSharper.Options.InternalPage.<.ctor>b__2_5()
 at JetBrains.Util.Logging.Logger.Catch(Action action)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 2 D Build 183.0.20181008.52751-eap02d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 2 D Build 2018.3.20181008.54209-eap02d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 2 D Build 2018.3.20181008.54205-eap02d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 2 D Build 2018.3.20181008.54739-eap02d”
Data.SubProducts.#3 = “JetBrains ReSharper 2018.3 EAP 2 D Build 2018.3.20181008.54358-eap02d”
Data.SubProducts.#4 = “JetBrains dotMemory 2018.3 EAP 2 D Build 2018.3.20181008.54742-eap02d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183::b75ce5f3ddc9fcaf8271084383142645117824fd


Platform\VisualStudio:
    git::refs/heads/183::db57f5344bde841f69261cfa30f49bb580b232ec

Data.VsVersion = 15.8.28010.2041
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.ReSharper.Features.Internal.ReSharper.Options.InternalPage..ctor(Lifetime lifetime, OptionsSettingsSmartContext optionsSettingsSmartContext, IOptionsDialogViewOwner optionsDialogOwner, IMultiCoreFibersPoolStrategyOptionsProvider multiCoreFibersPoolStrategyOptionsProvider)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at JetBrains.Application.Components.SingletonTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Components.SingletonTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, ICollection`1 dscs, IComponentContainer container)
 at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
 at JetBrains.Application.Components.ComponentStorage.Compose()
 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.Options.OptionsDialog.OptionsPageFactory.CreateOptionsPage(OptionsPageDescriptor pagedescriptor, IComponentContainer containerParent, OptionsSettingsSmartContext injectSettingsStoreSmartContext, IShellLocks locks)
 at JetBrains.Application.UI.Options.OptionsDialog.OptionsPageInOptionsContextAutomation.GetOrCreateOptionsPage()
 at JetBrains.Application.UI.Options.OptionsDialog.OptionsPageInOptionsContextAutomation.GetControlFromExistingOptionsPage()
 at JetBrains.Application.UI.Options.OptionsDialog.OptionsAutomation.GetSearchablePage(OptionsPageWithoutContextAutomationFactory factoryPagesWithoutContext, OptionsPageWithoutContextAutomation node, OptionsPageInOptionsContextAutomationFactory fact, UserFriendlySettingsLayer optContext, IContextBoundSettingsStoreLive trans)
 at JetBrains.Application.UI.Options.OptionsDialog.OptionsAutomation.<>c__DisplayClass12_0.<HandleSearchRequest>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuardEx.ExecuteOrQueue(ReentrancyGuard thіs, Lifetime lifetime, String name, Action F, TaskPriority priority)
 at JetBrains.Application.Threading.IThreadingEx.ExecuteOrQueue(IThreading thіs, Lifetime lifetime, String name, Action action, TaskPriority priority)
 at JetBrains.Application.UI.Options.OptionsDialog.OptionsAutomation.HandleSearchRequest(Lifetime currentSearchLifetime, OptionsModel model, IShellLocks locks, String searchText, IProperty`1 propFactoryPagesInContext, OptionsPageWithoutContextAutomationFactory factoryPagesWithoutContext, StaticKeywordsPerPageKeeper staticKeywordsPerPageKeeper, UsageStatistics activityTracking)
 at JetBrains.Application.UI.Options.OptionsDialog.OptionsAutomation.<>c__DisplayClass11_4.<.ctor>b__33(LifetimeDefinition definition, Lifetime currentSearchLifetime)
 at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILog logger)
 at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)
 at JetBrains.Application.UI.Options.OptionsDialog.OptionsAutomation.<>c__DisplayClass11_1.<.ctor>b__22(String args)
 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.UI.Options.OptionsDialog2.OptionsView.<>c__DisplayClass14_0.<CreateTemplate_PagesTree>b__6(Object o, SearchViewEventArgs e)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
 at System.Delegate.DynamicInvokeImpl(Object[] args)
 at System.Windows.RoutedEventArgs.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.RaiseEvent(RoutedEventArgs e)
 at JetBrains.UI.Controls.Misc.SearchTextBox.RaiseSearchEvent()
 at JetBrains.UI.Controls.Misc.SearchTextBox.OnSeachEventDelayTimerTick(Object o, EventArgs e)
 at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
 at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
 at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
 at System.Windows.Window.ShowHelper(Object booleanBox)
 at System.Windows.Window.Show()
 at System.Windows.Window.ShowDialog()
 at JetBrains.UI.Extensions.WindowUtil.<>c__DisplayClass15_2.<ShowDialogWithGuardedCreation>b__5()
 at JetBrains.Application.UI.Components.UIApplication.ApplicationModalStateEx.<>c__DisplayClass0_0`1.<WithModalState>b__0(Lifetime lifetime)
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ)
 at JetBrains.Application.UI.Components.UIApplication.ApplicationModalStateEx.WithModalState[T](IApplicationModalState appModalState, Func`1 modalAction)
 at JetBrains.UI.Extensions.WindowUtil.ShowDialogWithGuardedCreation(Lifetime lifetime, WindowModality modality, Func`3 FCreateView, IThreading threading, Object ownerwindow, IApplicationModalState applicationModalState)
 at JetBrains.UI.Extensions.WindowUtil.<>c__DisplayClass15_0.<ShowDialogWithGuardedCreation>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Application.Threading.IThreadingEx.<>c__DisplayClass18_1.<ExecuteOrQueueWhenNotGuarded>b__4()
 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-286611: [VB] QF for error of missing Overrides for MustInherit suggests creating "Overloads"

$
0
0
Reporter Ilya Ryzhenkov (orangy) Ilya Ryzhenkov (orangy)
Created Dec 13, 2011 3:25:02 AM
Updated Oct 8, 2018 4:26:04 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471781: Suggested inspection fix causes change in bevahiour

$
0
0
Reporter Daniel van der Zee (DanielZee) Daniel van der Zee (DanielZee)
Created Oct 8, 2018 3:55:56 PM
Updated Oct 8, 2018 4:27:08 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2018.2.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

See attached source file.

In line 9, R# suggests to replace the method with an optional parameter to f(double, double). However, this will change the output of the program from "f(1,1)" to "f<System.Double>(1)".

RSRP-287114: Action to implement interface/inherit base class when constraint requires several interfaces/base class

$
0
0
Reporter Jorge (jbustos) Jorge (jbustos)
Created Dec 19, 2011 11:07:49 PM
Updated Oct 8, 2018 4:31:40 PM
Resolved Oct 8, 2018 4:31:39 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Feature
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Sometimes, when you're implementing a generic class or method you get an error stating that the supplied type doesn't implement the interfaces or base class required by a constraint.
public class Driver<T>
where T: IDriver, IPolite
{...}

public class HooliganDriver: Driver<Hooligan>
{...}
The type Hooligan must be convertible to IDriver

If there's more than one missing interface, R# only provides a quickfix:
Remove IDriver constraint of type parameter T of class Driver<T>

I´d prefer to require my Hooligan to know how to drive politely rather than letting him drive without knowing how-to ;)
So I'd like a second action offered by Reharper, just like this:
Make class Hooligan implement IDriver, IPolite

Or even, step by step, first this one:
Make class Hooligan implement IDriver
and then this one:
Make class Hooligan implement IPolite

In fact, if I implement IDriver by hand, R# offers the latter action. Why not offering it from the beggining?

RSRP-471313: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was r

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Aug 28, 2018 4:18:10 PM
Updated Oct 8, 2018 4:32:11 PM
Subsystem Licensing and Evaluation
Assignee Sergey Kuks (coox)
Priority Critical
State Fixed In Branch
Type Exception
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _f9c9cb7b — JetBrains ReSharper Ultimate 2018.2 Build 182.0.20180821.113637

JetBrains ReSharper 2018.2 Build 2018.2.20180821.115000

A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

— EXCEPTION #1/3 [FormatException]
Message = “The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.”
ExceptionPath.1 = Root.InnerException.InnerException
ExceptionPath.2 = Root.InnerException.InnerExceptions.#0
ClassName = System.FormatException
HResult = COR_E_FORMAT=80131537
Source = mscorlib
StackTraceString = “
 at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
 at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
 at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
 at System.Convert.FromBase64String(String s)
 at JetBrains.Application.License2.NewLicenses.BlackListAndCrl.Decode[T](String response, CertificateRevocationList crl, Func`3 fetchData)
 at JetBrains.Application.License2.NewLicenses.BlackListAndCrl.DecodeBl(String responseBl)
 at JetBrains.Application.License2.NewLicenses.BlackListAndCrl.<>c__DisplayClass14_1.<.ctor>b__1()
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass30_0.<QueueRecurring>b__1(DateTime time)
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass30_1.<QueueRecurring>b__3()
 at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass33_0.<Create>b__1(Object state)
 at System.Threading.Tasks.Task.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()


— Outer —

— EXCEPTION #2/3 [AggregateException]
Message = “A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.”
ExceptionPath = Root.InnerException
ClassName = System.AggregateException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
InnerExceptions.#0 = “Exception #1 at Root.InnerException.InnerException”

— Outer —

— EXCEPTION #3/3 [LoggerException]
Message = “A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 Build 182.0.20180821.113637”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.2 Build 2018.2.20180821.115000”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap9-rtm::24155adb8cb5edf92658bd59db8b52fc0659cfb3


Platform\VisualStudio:
    git::refs/heads/182-eap9-rtm

Data.VsVersion = 15.8.28010.2003
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.Threading.Tasks.TaskHost.OnUnobservedTaskException(Object sender, UnobservedTaskExceptionEventArgs args)
 at JetBrains.Application.Threading.Tasks.TaskHost.OnUnobservedTaskException(Object sender, UnobservedTaskExceptionEventArgs args)
 at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
 at System.Threading.Tasks.TaskScheduler.PublishUnobservedTaskException(Object sender, UnobservedTaskExceptionEventArgs ueea)
 at System.Threading.Tasks.TaskExceptionHolder.Finalize()

RSRP-287305: Quick Fix for mixed double/decimal provides incorrect solution

$
0
0
Reporter Tod Gentille (rolias) Tod Gentille (rolias)
Created Dec 22, 2011 2:08:13 AM
Updated Oct 8, 2018 4:36:51 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 6.0 EAP, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Given
SalesTax = _order.Invoice.SalesTaxPercent*TaxableTotal;
Where SalesTax and TaxableTotal are decimal and SalesTaxPercent is double, the QuickFix will offer to cast the second operand as double, which won't fix anything. Instead it should offer to cast the first operand as decimal shouldn't it?

RSRP-287549: Make method private quick fix doesn't appear immediately after code analysis

$
0
0
Reporter Greg Law (lothan) Greg Law (lothan)
Created Jan 3, 2012 3:47:02 AM
Updated Oct 8, 2018 4:38:05 PM
Subsystem Quick Fixes
Assignee Lilia Shamsutdinova (Lilia.Shamsutdinova)
Priority Normal
State To Reproduce
Type Usability Problem
Fix version Backlog
Affected versions 6.1.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Perform an action such as renaming a property or parameter that requires reanalyzing the current file. While the analysis is in progress, go to a public method or constructor that should be protected or a public or protected method that should be private and press Alt+Enter. When the code analysis completes, the quick fix options presented are 'Make method protected', 'Make method internal', and 'Make method private'.

Escape out of the quick fix options and press Alt+Enter again. This time the quick fix options presented are 'Make method foo private' and 'Inspection options for 'Method can be made private.'

The difficulty here is that I have to wait until code analysis seems complete (e.g. I get the yellow square) and then wait another two or three seconds before I get the real quick fix options.
Viewing all 106942 articles
Browse latest View live


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