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

RSRP-449439: R# should offer to initialize static fields in cctor

$
0
0
Reporter T (thymin) T (thymin)
Created Oct 13, 2015 5:21:32 PM
Updated Oct 18, 2018 4:01:31 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
static class C
{
static readonly Lazy<object> initialize;
}

Here, initialize must be initialized. R# warns correctly. It should offer to create a static constructor so that I can write an initializer.

RSRP-450725: Context action menu doesn't work correctly in specific cases

$
0
0
Reporter Alexander Oryol (oryol.oryol) Alexander Oryol (oryol.oryol)
Created Nov 13, 2015 1:31:01 PM
Updated Oct 18, 2018 4:18:15 PM
Resolved Oct 18, 2018 4:18:15 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Open context action menu with submenus (for example - MVC view creation for undefined view name) using Alt+Enter
2. Try to open submenus for this menu using mouse

Submenus are inaccessible

RSRP-451052: CA "Make class static"

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Nov 18, 2015 2:34:26 AM
Updated Oct 18, 2018 4:22:06 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 10.0, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
If a class has only static members, it should be possible to make it static via a CA or even a suggestion/QF.

RSRP-451243: Removing "redundant" type parameter changes behaviour

$
0
0
Reporter Joachim Isaksson (downwind.1) Joachim Isaksson (downwind.1)
Created Nov 22, 2015 3:26:26 PM
Updated Oct 18, 2018 4:24:31 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 9.2, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Code
using System;
namespace ConsoleApplication1
{
class Program
{
private static void PrintSomething<T>(T ignoredValue) {
Console.WriteLine("1");
}
private static void PrintSomething<T>(string ignoredValue) {
Console.WriteLine("2");
}
static void Main(string[] args)
{
PrintSomething("Hello");
PrintSomething<string>("World");
Console.ReadLine();
}
}
}

Outputs: 1 2

Removing (as Resharper 9.2 suggest) the <T> type parameter on the second method turning it into;

        private static void PrintSomething(string ignoredValue) {

...makes the output change;

Outputs: 2 1

The change in output seems consistent with the spec, which means Reshaper should not suggest the type parameter as redundant.
I have not yet tested the same code on Reshaper 10.

RSRP-451449: Split into two `if` statements incorrectly

$
0
0
Reporter Cypher (SteveQueen) Cypher (SteveQueen)
Created Dec 1, 2015 12:50:42 PM
Updated Oct 18, 2018 4:31:02 PM
Resolved Oct 18, 2018 4:31:02 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions 10.0.1
Fixed In Version ReSharper Undefined
VsVersion VS 2015 RTM
Resharper the first condition incorrectly split.

        public bool Method(object obj)
{
Type type = obj as Type;
if (type != null && type.IsPointer)
{
return true;
}
else if (type.IsByRef)
{
return true;
}
return false;
}

RSRP-451508: Ctrl+Z after accepting a reshaper action does not navigate back to the source of the action

$
0
0
Reporter Jonathan Clark (codegrappler) Jonathan Clark (codegrappler)
Created Dec 3, 2015 12:55:14 AM
Updated Oct 18, 2018 4:32:41 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
For example: If you are on line 400 of a file and you press alt+enter to perform a resharper action and then you scroll up to the top of the file and hit ctrl+z the resharper action is undone but the editor window is not scrolled back to that position.

Normally if you edit some text, scroll somewhere else and hit ctrl+z you are brought back to the location of that action.

It would be nice to at least have an option for this behavior. Both myself and a coworker of mine agree that it's nice to be brought back to where you were on the undo.

RSRP-471455: ProjectedBuffer out of underlying buffer range.

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Jul 23, 2018 12:29:16 AM
Updated Oct 18, 2018 4:36:00 PM
Resolved Oct 11, 2018 11:51:10 AM
Subsystem Quick Fixes
Assignee Ivan Serduk (IvanSerduk)
Priority Critical
State Fixed
Type Exception
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _898519f9 — JetBrains ReSharper Ultimate 2018.2 EAP 3 Build 182.0.20180711.65739-eap03

JetBrains dotTrace 182 Build 182.0.20180711.73821-eap03
JetBrains ReSharper 182 Build 182.0.20180711.70917-eap03

SubProducts.0 = JetBrains dotTrace 182 Build 182.0.20180711.73821-eap03
SubProducts.1 = JetBrains ReSharper 182 Build 182.0.20180711.70917-eap03

ProjectedBuffer out of underlying buffer range.

— EXCEPTION #1/2 [AssertionException]
Message = “ProjectedBuffer out of underlying buffer range.”
ExceptionPath = Root.InnerException
ClassName = JetBrains.Util.Assertion+AssertionException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.Core
StackTraceString = “
 at JetBrains.Text.ProjectedBuffer.Create(IBuffer underlyingBuffer, TextRange range)
 at JetBrains.Text.ProjectedBuffer.Create(IBuffer underlyingBuffer, TextRange range)
 at JetBrains.ReSharper.Psi.Parsing.ProjectedLexer..ctor(CachingLexer lexer, TextRange range)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ClosedChameleonElement.TryParseUsingTokenBuffer(Func`2 parseFunc)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ClosedChameleonElement.Parse(Func`2 parseFunc)
 at JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ChameleonBlock.OpenChameleon()
 at JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ChameleonBlock.get_FirstChild()
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNodeAt(TreeTextRange treeRange)
 at JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ChameleonBlock.FindNodeAt(TreeTextRange treeRange)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNodeAt(TreeTextRange treeRange)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNodeAt(TreeTextRange treeRange)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNodeAt(TreeTextRange treeRange)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNodeAt(TreeTextRange treeRange)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNodeAt(TreeTextRange treeRange)
 at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.CompositeElement.FindNodeAt(TreeTextRange treeRange)
 at JetBrains.ReSharper.Psi.Files.PsiFiles.AppendInjectedFiles(IFile originalFile, Type toLanguage, TreeTextRange range, IReadOnlyCollection`1 providersToBuild, LocalList`1& results)
 at JetBrains.ReSharper.Psi.Files.PsiFiles.AppendInjectFiles(IPsiSourceFile sourceFile, Type injectedLanguageType, DocumentRange range, LocalList`1& files)
 at JetBrains.ReSharper.Psi.Files.PsiFiles.GetPsiFiles(IPsiSourceFile sourceFile, Type languageType, DocumentRange range, PsiLanguageCategories categories)
 at JetBrains.ReSharper.Psi.Files.PsiFiles.GetPsiFiles[TLanguage](IPsiSourceFile sourceFile, DocumentRange range, PsiLanguageCategories categories)
 at JetBrains.ReSharper.Psi.Files.PsiFilesExtensions.GetPsiFile[TLanguageType](IPsiSourceFile sourceFile, DocumentRange range)
 at JetBrains.ReSharper.Feature.Services.ContextActions.ContextActionDataBuilderBase`2.Build(ISolution solution, ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.ContextActions.ContextActionDataBuilders.BuildCacheData(ISolution solution, ITextControl textControl)
 at JetBrains.ReSharper.Intentions.Bulbs.BulbItems.BuildBulbCache(ITextControl textControl)
 at JetBrains.ReSharper.Intentions.Bulbs.BulbItems.<>c__DisplayClass21_0.<BuildAvailableActionsList>b__1()
 at JetBrains.Application.Threading.InterruptableReadActivityThe.Work()
 at JetBrains.Application.Threading.InterruptableReadActivity.DoWork()
 at JetBrains.Application.Threading.InterruptableReadActivity.WorkerThreadProc()
 at JetBrains.Util.Logging.Logger.Catch(Action action)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “ProjectedBuffer out of underlying buffer range.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(S) #1”
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 3 Build 182.0.20180711.65739-eap03”
Data.SubProducts.#0 = “JetBrains dotTrace 182 Build 182.0.20180711.73821-eap03”
Data.SubProducts.#1 = “JetBrains ReSharper 182 Build 182.0.20180711.70917-eap03”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap3::2b55a007014dea4b041ef04e3fd1893fb9820541


Platform\VisualStudio:
    git::refs/heads/182-eap3::7d305aa324a045fb7468c2cc6200e062bc531798

Data.VsVersion = 15.7.27703.2042
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Application.Threading.Tasks.TaskHostEx.<>c__DisplayClass2_0.<RunSafe>b__0()
 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()
 at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
 at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
 at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
at ANNOTATED: JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.JetPool(S) #1(Action )
 at JetBrains.Util.Reflection.CallStackAnnotation.InvokeAnnotated(String classNameOfNewFrame, String methodNameOfNewFrame, Action actionToAnnotate)
 at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.<Start>b__19_0()
 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()

RSRP-471891: Angular 6, false "Supplied parameters do not match any signature of call target" error

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Oct 18, 2018 4:57:24 PM
Updated Oct 18, 2018 4:58:07 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

Having a code like this:
@Injectable({
providedIn: 'root'
})
export class ApiClient implements IApiClient {
private http: HttpClient;
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(@Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {
this.http = http;
this.baseUrl = baseUrl ? baseUrl : "";
}
.....
}
ReSharper 2018.2.3 incorrectly complains that the declaration does not match the signature (while looking closely to the signature described in attachment, it actually does 100% and the code goes thru typescript 2.7.1 compiler flawlessly). This has also been discussed in github: https://github.com/angular/angular/issues/23753#issuecomment-392510657.

Solution which proposes casting to any is a hackish workaround and should be avoided at all cost.


Reproduced with the attached solution, take a look at the src/app/hero.service.ts

RSRP-470160: False positive inspection warning when including files from other projects

$
0
0
Reporter Tim Bussmann (sabacc) Tim Bussmann (sabacc)
Created Jun 12, 2018 2:49:22 PM
Updated Oct 18, 2018 5:23:38 PM
Resolved Jun 13, 2018 10:10:29 AM
Subsystem Platform - VS Integration
Assignee Sergey Kuks (coox)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

We use <Compile Include="..."> to include files from project A into project B. Some files of project A are excluded using <Compile Remove="..." /> and project B contains a custom file similar (same namespace, class name and signatures) to the excluded file to make the included code compile.

This compiles and runs perfectly fine but ReSharper (using 2018.1.2) started to bring up "ambiguous reference" and "duplicate definition" inspection warnings both in VS as well as in our TC builds.

I've created a repro here: https://github.com/timbussmann/ReSharperInspectionRepro

RSRP-451560: 'Convert to auto property with private-setter' makes setter public

$
0
0
Reporter Simon Hewitt (simmotech) Simon Hewitt (simmotech)
Created Dec 6, 2015 3:07:27 PM
Updated Oct 18, 2018 5:56:29 PM
Resolved Oct 18, 2018 5:56:29 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions 10.0.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
I have some code like this:-
int currentDatabaseVersion;

public int CurrentDatabaseVersion
        {
            get { return currentDatabaseVersion; }
        }

(the field is set by another method in the class, not the ctor BTW).

Resharper is suggesting "Convert to auto property with private-setter" when I hover over the underline on CurrentDatabaseVersion.
I press Alt-Enter, Enter to make the change but the setter create is not made private. The code still compiles of course but that Property is no longer only settable within the class - big problem.

The Alt-Enter menu shows 'Inspection "Convert to auto property with private-setter" too but the top item just says "Convert to auto-property".
I tend to use Alt-Enter, Enter quite quickly and usually don't see the menu so I need to be able to rely on the Convert routine actually matching the Inspection.

RSRP-471894: .Net Core: Rename class should rename all associated resx files

$
0
0
Reporter Tatyana Lunegova (lunega) Tatyana Lunegova (lunega)
Created Oct 18, 2018 5:57:13 PM
Updated Oct 18, 2018 5:57:13 PM
Subsystem Localization (i18n, ResX)
Assignee Anton Spilnyy (Anton.Spilnyy)
Priority Normal
State Submitted
Type Task
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471895: .Net Core: Move refactoring applied to a class should rename all associated resx files

$
0
0
Reporter Tatyana Lunegova (lunega) Tatyana Lunegova (lunega)
Created Oct 18, 2018 5:58:35 PM
Updated Oct 18, 2018 5:58:35 PM
Subsystem Localization (i18n, ResX)
Assignee Anton Spilnyy (Anton.Spilnyy)
Priority Normal
State Submitted
Type Task
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471896: .Net Core: rename should accept whitespaces in resource name

$
0
0
Reporter Tatyana Lunegova (lunega) Tatyana Lunegova (lunega)
Created Oct 18, 2018 6:00:26 PM
Updated Oct 18, 2018 6:00:26 PM
Subsystem Localization (i18n, ResX)
Assignee Anton Spilnyy (Anton.Spilnyy)
Priority Normal
State Submitted
Type Task
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-451932: Consider Quick Action to Toggle Between IEnumerable and T[]

$
0
0
Reporter Michael DeMond (Mike-EEE76) Michael DeMond (Mike-EEE76)
Created Dec 19, 2015 5:21:19 PM
Updated Oct 18, 2018 6:09:35 PM
Subsystem Context Actions
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
Hello,

I frequently find myself having to change contracts between IEnumerable<T> and T[]. Having to do this is burdensome and I am thinking this is a great candidate for some Alt-Enter magic. :)

Basically, when the cursor is on a IEnumerable<object> or object[] (for instance) it should hint to switch to the other form.

Thank you for any consideration,
Michael

RSRP-453028: Implement "Add/Remove parenthesis to/from expression" context actions

$
0
0
Reporter Carlos Costa e Silva (carloscs) Carlos Costa e Silva (carloscs)
Created Jan 15, 2016 7:36:12 PM
Updated Oct 18, 2018 6:11:29 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Improvement
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
All (or most?) expressions already have some context actions:

int a = b + c; // + operator offers a Flip action
if (a == b) // == operator offers Negate, Flip and Replace action

Implement also:

Action "Add parenthesis to expression":

int a = b + c; -> int a = (b + c);
if (a == b) -> if ((a == b))

And of course the "Remove parenthesis from expression" action if the expression is already parenthesized.

Edit:
Just noticed/remembered that this can also be done with the surround actions, but the action on the operator is simpler.

RSRP-458856: Add support for Batch refactoring within a class scope

$
0
0
Reporter Martin (IAmMartin) Martin (IAmMartin)
Created May 20, 2016 1:36:41 PM
Updated Oct 18, 2018 6:15:15 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2016.1.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Would be great if I could apply the shown refactoring (screenshot) to the whole class and not the just file (currently multiple classes in this file)

RSRP-459019: "Specify type explicitly" chooses the wrong type

$
0
0
Reporter Niklas Källander (niklaskallander) Niklas Källander (niklaskallander)
Created May 31, 2016 12:55:12 PM
Updated Oct 18, 2018 6:16:43 PM
Resolved Oct 18, 2018 6:16:43 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions 2016.1.1, 2016.1.2, 2016.1
Fixed In Version ReSharper Undefined
VsVersion VS 2015 RTM
Consider the following code snippet:
foreach (var item in new List<int>())
{
Console.WriteLine(item);
}

If I use the refactoring "Specify type explicitly" on the only var in this snippet, R# will choose the wrong type. Instead of the expected type int I get List<int>. This scenario seem to be true regardless of the type or source of the enumerable as long as I use item directly within the foreach loop.

I do get the expected type int if I run the refactoring on the following snippet:
foreach (var item in new List<int>())
{
Console.WriteLine(item.ToString());
}

Thanks! (:

RSRP-471899: .Net Core: make "class xxx" default value for "Find identical items in" in Move to Resource dialog

$
0
0
Reporter Tatyana Lunegova (lunega) Tatyana Lunegova (lunega)
Created Oct 18, 2018 6:18:58 PM
Updated Oct 18, 2018 6:18:58 PM
Subsystem Localization (i18n, ResX)
Assignee Anton Spilnyy (Anton.Spilnyy)
Priority Normal
State Submitted
Type Task
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-463819: ReSharper CLT InspectCode.exe variance

$
0
0
Reporter Josh Pharis (jrpharis) Josh Pharis (jrpharis)
Created Mar 20, 2017 6:59:11 PM
Updated Oct 18, 2018 6:27:55 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Slava Trenogin (derigel)
Priority Critical
State Submitted
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
I am having issues using InspectCode.exe as a MSBuild build step to fail a build when errors and warnings against the ReSharper code inspection rules occur. If I run ReSharper -> Inspect -> Code Issues in Solution, I get no errors (using default rules). When I run inspectcode.exe (either from the command line or as a build step), I get numerous errors with the message "Cannot resolve symbol '<type>'".

I have tried this with the inspectcode.exe executable that is downloaded with the JetBrains.ReSharper.CommandLineTools (v2016.3.20170126.124346) Nuget package and with the download from the JetBrains website. I confirmed I am able to build my solution with MsBuild.exe with no parameters.

RSRP-462761: Replace '' refactoring is broken

$
0
0
Reporter Alexander Zhuravlev (a553) Alexander Zhuravlev (a553)
Created Jan 29, 2017 2:22:07 PM
Updated Oct 18, 2018 6:29:33 PM
Resolved Oct 18, 2018 6:29:33 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions 2017.1.1, 2016.3.2
Fixed In Version ReSharper Undefined
VsVersion VS 2015 RTM, VS 2017 RTM
Example code:

double v = Console.Read();
bool b = v >= 10;

Perform the refactoring: Replace '<=' with '>'

double v = Console.Read();
bool b = !(!(v >= 10));

Perform the refactoring again – no changes in code

Looks like R# does the refactoring twice
Viewing all 106942 articles
Browse latest View live