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

RSRP-18332: Context action to swarp (or move up/down) if-branches in multi-if

$
0
0
Reporter Andrey Simanovsky (ands) Andrey Simanovsky (ands)
Created Aug 6, 2006 12:40:35 AM
Updated Oct 17, 2018 6:51:18 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I have a "multi-if":
if (cond1)
{
//...
}
else if (cond2)
{
//...
}
...
else if (condN)
{
//...
}
else
{
}

Needed: A way to effectively swarp (or move up/down) one of multi-if branches.
Maybe the same for switch statement.

RSRP-419016: "Convert to assignment statements" refactoring should be available on return statements

$
0
0
Reporter Joshua McKinney (joshka) Joshua McKinney (joshka)
Created Jul 22, 2014 10:11:57 AM
Updated Oct 17, 2018 6:54:06 PM
Resolved Oct 17, 2018 6:54:06 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
I had some difficulty working out why I was unable to automatically convert the original code to assignment statements, but eventually realised that it was because it is a return statement.

return new Foo { Bar = baz };

should allow conversion in a single step to:

var foo = new Foo();
foo.Bar = baz;
return foo;

RSRP-411071: Convert to Assignment statements is not available for some cases

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Mar 24, 2014 2:46:46 PM
Updated Oct 17, 2018 6:54:06 PM
Resolved Oct 17, 2018 6:40:37 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Improvement
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
If you have this:
void foo() 
{
var data = new SomeObject
{
Property = "something"
};
return data;
}
Convert to Assignment statements is available.

if you have this:
void foo() 
{
return new SomeObject
{
Property = "something"
};
}
Convert To Assignment is not available.

I understand that it would have to do something like this:
void foo() 
{
var data = new SomeObject();
data.Property = "something"
return data;
}
But it is ... non-intuitive for it to not be available. I spent an hour looking for it, figuring that I had broken my Resharper somehow. I can't live without Resharper. :-)

RSRP-424915: "Use format string" should be converted to AppendFormat

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Sep 30, 2014 3:50:16 PM
Updated Oct 17, 2018 6:58:18 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
1. Check the following code:
var sbErrorString = new StringBuilder();
sbErrorString.AppendLine("email " + emailFinal.To + " appears to be invalid so not sending");

2. Select "Use format sting" context action

Result: code refactored to:
sbErrorString.AppendLine(string.Format("email {0} appears to be invalid so not sending", emailFinal.To));

Expected Result: should be refactored to AppendFormat, not AppendLine

RSRP-425270: Replace "\r\n" with Environment.NewLine

$
0
0
Reporter T (thymin) T (thymin)
Created Oct 5, 2014 1:41:47 PM
Updated Oct 17, 2018 7:00:31 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
Consider the following string literal:

"a\r\nb"

R# should offer to transform it to:

"a" + Environment.NewLine + "b"

It would be handy to be able to run this on an entire line/statement/method/class/file/project/solution.

Also, R# should consider just "\n". R# should warn for "\r" because that char doesn't make sense alone by itself. Probably a mistake/bug.

RSRP-427292: Expand Selection and Context actions

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Nov 5, 2014 2:45:21 PM
Updated Oct 17, 2018 7:04:25 PM
Subsystem Extend_Shrink Selection
Assignee Sergey Kuks (coox)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 8.2.2, 9.0 EAP, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
if (skillData.NeedRangeSet && !unitCtrlr.HasRange())
When expanding selection with Ctrl+W, if you start with the && or the left side, the behaviour is correct but when starting selection with the right side, the contextual refactoring show no options to flip or negate the if

RSRP-427444: Refactoring/ Context action: Read-only property to field

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Nov 7, 2014 4:26:17 PM
Updated Oct 17, 2018 7:06:26 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
class Q { 
public int A { get; private set; }
public Q(int a) { A = a; }
}

to
class Q { 
public readonly int A;
public Q(int a) { A = a; }
}

RSRP-428050: Need QF or CA when method signatures in an interface and a class differs

$
0
0
Reporter Dmitry Osinovsky (Dmitry.Osinovsky) Dmitry Osinovsky (Dmitry.Osinovsky)
Created Nov 22, 2014 8:21:30 PM
Updated Oct 17, 2018 7:09:02 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
  public interface IMyInt
{
void MyMethod(int b);
}

public class MyClass : IMyInt
{
public void {caret}MyMethod()
{

}
}

Need two QF or CA at the point of the caret:
1. Change MyClass.MyMethod to void MyMethod(int b)
2. Change IMyInt.MyMethod to void MyMethod();

Needed that already thousand times.

RSRP-471576: Type reference could be only for type reference but is used on

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Sep 20, 2018 4:58:04 PM
Updated Oct 17, 2018 7:27:36 PM
Subsystem JavaScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Exception
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 183 Hive _3f3919c0ProjectModel — JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180918.154710-eap01d

JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180918.160255-eap01d

Type reference could be only for type reference but is used on

— EXCEPTION #1/1 [LoggerException]
Message = “Type reference could be only for type reference but is used on”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(L) #7”
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180918.154710-eap01d”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180918.160255-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183-deferred-projects::f881e303bc575e4fd458361426a27fbf97c94603


Platform\VisualStudio:
    git::refs/heads/183-deferred-projects

Data.VsVersion = 15.8.28010.2026
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.FailWithSensitiveData(String messageText, Pair`2[] sensitiveData)
 at JetBrains.Util.Logging.Logger.FailWithSensitiveData(String messageText, Pair`2[] sensitiveData)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.PrimitiveTypeExtensions.GetTypeReferenceType(JsPrimitive primitive, String name)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsTypeBase.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsTypeWithSignaturesBase.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsNamedType.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsTypeResolverBase.ProcessDerivedTypes(JsTypeResolveResult type, JsResolveContext context, JsTypeDescriptionOpInfo derivedTypeInfo, StrongTypeMode mode, Boolean expectedType, JsUnresolvedTypeFlags flags, Boolean addStandardTypes, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.<>c.<.cctor>b__58_1(JsResolveContext context1, JsUnresolvedTypeBase me, MyCalculationIdentifier ident)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsResolveContext.CalculateWithCache[T,TCalculationIdentifier,TState](TCalculationIdentifier ident, TState state, ResolveContextKind resolveKind, Func`4 getResult, T defaultValue, Boolean checkForCyclicOrTooDeep, Func`4 getCyclicResult, Func`5 processResult)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ExpandRecursively(JsResolveContext context, Boolean standardTypes, Boolean expectedTypes, JsUnresolvedTypeFlags flags, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.<>c.<.cctor>b__58_1(JsResolveContext context1, JsUnresolvedTypeBase me, MyCalculationIdentifier ident)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsResolveContext.CalculateWithCache[T,TCalculationIdentifier,TState](TCalculationIdentifier ident, TState state, ResolveContextKind resolveKind, Func`4 getResult, T defaultValue, Boolean checkForCyclicOrTooDeep, Func`4 getCyclicResult, Func`5 processResult)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ExpandRecursively(JsResolveContext context, Boolean standardTypes, Boolean expectedTypes, JsUnresolvedTypeFlags flags, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ResolveType(JsResolveContext context, Boolean standardTypes, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.VisitTsReferenceName(ITsReferenceName tsReferenceNameParam, IHighlightingConsumer context)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Tree.TypeScript.TsReferenceName.Accept[TContext](TsTreeNodeVisitor`1 visitor, TContext context)
 at JetBrains.ReSharper.Daemon.JavaScript.Prelude.TypeScript.TsDaemonStageProcessBase.ProcessAfterInterior(ITreeNode element, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.ProcessAfterInterior(ITreeNode element, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants[TContext](ITreeNode root, IRecursiveElementProcessor`1 processor, TContext context)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.<Execute>b__10_0(IJavaScriptFile file, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Daemon.JavaScript.Prelude.TypeScript.TsDaemonStageProcessBase.HighlightInFile(Action`2 fileHighlighter, Action`1 commiter)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.Execute(Action`1 committer)
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.RunStage(IDaemonStage stage, DaemonProcessKind processKind, Action`2 commiter, IContextBoundSettingsStore contextBoundSettingsStore, JetHashSet`1 disabledStages)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass47_1.<DoHighlighting>g__Stage|2(IDaemonStage stage)
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass49_1.<PrepareRunActionForStages>b__0()
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass49_1.<PrepareRunActionForStages>b__0()
 at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass22_1.<EnqueueDependentJobs>b__2()
 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 #D.JetPool(L) #7(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__20_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-471885: Bogus non-readonly property in GetHashCode

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Oct 17, 2018 7:50:38 PM
Updated Oct 17, 2018 8:02:41 PM
Subsystem Code Analysis - C#
Assignee Andrew Karpov (andrew.karpov)
Priority Critical
State Open
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
  public class ResultWithDescription
{
public Result Result { get; private set; }
public string[] Description { get; private set; }

public ResultWithDescription(Result result, IEnumerable<string> description)
{
Result = result;
Description = description.ToArray();
}

[StringFormatMethod("fmt")]
public ResultWithDescription(Result result, string fmt, params object[] args)
{
Result = result;
Description = new[]
{
args.Length == 0 ? fmt : String.Format(fmt, args)
};
}

public override string ToString()
{
return string.Format("[{0}: {1}]", Result, string.Join(", ", Description));
}

protected bool Equals(ResultWithDescription other)
{
return Result == other.Result && Description.EqualEnumerables(other.Description);
}

public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj.GetType() != this.GetType()) return false;
return Equals((ResultWithDescription) obj);
}

public override int GetHashCode()
{
unchecked
{
return ((int) Result * 397) ^ (Description != null ? Description.Length : 0); // HERE
}
}
}

RSRP-470788: UWP XAML x:Bind - Generated compile-time partial class not available

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Jul 26, 2018 2:58:49 PM
Updated Oct 17, 2018 9:51:49 PM
Subsystem XAML
Assignee Alexander Shvedov (shvedov)
Priority Major
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.1.3 RTM
Fixed In Version ReSharper Undefined
VsVersion All Versions

Error: Cannot resolve symbol 'Bindings'
Problem: x:Bind compile-time generated code (.g.i.cs) includes a Bindings object that is not visible by R#, showing as an error.
Calling this.Bindings.Update() gives an error when R# is enabled (not when disabled), but it compiles, runs and works.

RSRP-471886: Inspection incorrectly suggests making parameter to recursive call IEnumerable (Parameter can be of type IEnumerable)

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Oct 17, 2018 10:35:39 PM
Updated Oct 17, 2018 10:38:08 PM
Resolved Oct 17, 2018 10:38:08 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Duplicate
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
With a parameter of type IEnumerable<string> that is enumerated at one point and passed into a recursive call at another point, I get "Possible multiple enumeration of IEnumerable", unsurprisingly. However, changing the type of the parameter to IReadOnlyCollection<string> results in "Parameter can be of type 'IEnumerable<string>'".

Sample method:
void Test(IReadOnlyCollection<string> e)
{
e.Any();
this.Test(e);
}

RSRP-468270: Invalid suggestion "Parameter can be of type IEnumerable"

$
0
0
Reporter Mauricio Scheffer (mausch) Mauricio Scheffer (mausch)
Created Feb 6, 2018 6:06:24 PM
Updated Oct 17, 2018 10:39:36 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3.1, 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

Whenever I declare a parameter A of type S such that S is a subtype of IEnumerable<T> but then use A as an IEnumerable<T> only, Rider suggests that "Parameter can be of type IEnumerable<T>".

This is generally incorrect as it would change the semantics of my function. IEnumerable<T> can be potentially infinite, so if I state my parameter type to be e.g. IReadOnlyCollection<T> I'm specifically saying that it can't handle infinite data as there is a defined Count property, so changing it to IEnumerable<T> as suggested by Rider would alter the meaning of my function type.

RSRP-471171: unit tests run all tests from fixture although I asked to run 1 test

$
0
0
Reporter Anton Spilnyy (Anton.Spilnyy) Anton Spilnyy (Anton.Spilnyy)
Created Aug 21, 2018 2:36:18 PM
Updated Oct 17, 2018 10:53:23 PM
Resolved Aug 27, 2018 5:01:54 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Verified
Type Bug
Fix version 2018.2.1
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
nunit3
repro
in r# solution run test SnapshotsComparisonVmTest.should_be_sorted_by_property

RSRP-470611: The method or operation is not implemented.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Jul 16, 2018 3:49:46 PM
Updated Oct 18, 2018 4:55:15 AM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Exception
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _3f3919c0 — JetBrains ReSharper Ultimate 2018.2 EAP 4 D Build 182.0.20180714.125507-eap04d

JetBrains dotCover 182 Build 182.0.20180714.131033-eap04d
JetBrains dotMemory 182 Build 182.0.20180714.130916-eap04d
JetBrains dotTrace 182 Build 182.0.20180714.131048-eap04d
JetBrains ReSharper 182 Build 182.0.20180714.130753-eap04d
JetBrains ReSharper C++ 182 Build 182.0.20180714.130743-eap04d
JetBrains TeamCity Add-in 182 Build 182.0.20180714.130733-eap04d

The method or operation is not implemented.

— EXCEPTION #1/2 [NotImplementedException]
Message = “The method or operation is not implemented.”
ExceptionPath = Root.InnerException
ClassName = System.NotImplementedException
HResult = E_NOTIMPL=80004001
Source = JetBrains.ReSharper.Psi.Web
StackTraceString = “
 at JetBrains.ReSharper.Psi.Html.Parsing.HtmlCompoundLexer`1.get_CurrentPosition()
 at JetBrains.ReSharper.Psi.Html.Parsing.HtmlCompoundLexer`1.get_CurrentPosition()
 at JetBrains.ReSharper.Feature.Services.Lookup.LookupUtil.InsertTokens(ITextControl textControl, TokenNodeType[] tokens, DocumentOffset offset, BracketsBalanceEvaluator balanceEvaluator, ILexer tailLexer)
 at JetBrains.ReSharper.Feature.Services.Lookup.LookupUtil.InsertTailType(ITextControl textControl, DocumentOffset offset, TailType tailType, ISolution solution, Boolean emulateTypingOfSpace, PsiLanguageType language)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.AspectLookupItems.Behaviors.KeywordBehavior.InsertTailType(ITextControl textControl, ISolution solution, DocumentOffset offset, TailType tailType)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.AspectLookupItems.Behaviors.TextualBehavior`1.Accept(ITextControl textControl, DocumentRange nameRange, LookupItemInsertType insertType, Suffix suffix, ISolution solution, Boolean keepCaretStill)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.AspectLookupItems.BaseInfrastructure.LookupItem`1.Accept(ITextControl textControl, DocumentRange nameRange, LookupItemInsertType insertType, Suffix suffix, ISolution solution, Boolean keepCaretStill)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.LookupItems.LookupItemCompletor.CompleteItem(Action executeInsideCommandScope)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Lookup.LookupActions.CompleteHandler.Execute(IDataContext context, DelegateExecute nextExecute)
 at JetBrains.Application.UI.ActionsRevised.Handlers.ExecutableActionEvaluator.Execute(IAction action, IReadOnlyCollection`1 allActions, IDataContext dataContext)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.ExecuteWithoutRequirements()
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_1.<PrepareRequirementsAsync>b__0()


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “The method or operation is not implemented.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cshtml
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 4 D Build 182.0.20180714.125507-eap04d”
Data.SubProducts.#0 = “JetBrains dotCover 182 Build 182.0.20180714.131033-eap04d”
Data.SubProducts.#1 = “JetBrains dotTrace 182 Build 182.0.20180714.131048-eap04d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 182 Build 182.0.20180714.130743-eap04d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 182 Build 182.0.20180714.130733-eap04d”
Data.SubProducts.#4 = “JetBrains ReSharper 182 Build 182.0.20180714.130753-eap04d”
Data.SubProducts.#5 = “JetBrains dotMemory 182 Build 182.0.20180714.130916-eap04d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182::2fd1edea4a9601b5c5a45397b2b2594fb633aee1


Platform\VisualStudio:
    git::refs/heads/182::d7f5ae379f802e1f164ec64c8bc6212ce560403e

Data.VsVersion = 15.7.27703.2042
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_1.<PrepareRequirementsAsync>b__0()
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_1.<PrepareRequirementsAsync>b__0()
 at JetBrains.Application.UI.ActionSystem.ActionsRevised.Handlers.RequirementsManager.ExecuteActionAsync(IActionRequirement requirement, Action continueWith, Action failWith, Boolean reSharperIsThinking)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.PrepareRequirementsAsync(OuterLifetime lifetime, Func`1 executeWhenRequirementsReady, Action`1 failWith)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.Execute()
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass26_0.<TryDelegateToTypingHandlers_NonTyping>b__0()
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.WithRegisteredDelegateBackToVsHandler(String sCommandName, Action`1 FExecDelegateBackToVs, Action FRun)
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.TryDelegateToTypingHandlers_NonTyping(CommandID commandid, Action`1 FExecDelegateBackToVs)
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.TryDelegateToTypingHandlers(Boolean bIsTyping, CommandID commandid, IntPtr pvaIn, Action`1 FExecDelegateBackToVsClosed)
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass29_0.<Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CompoundTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)

RSRP-471843: Sometimes high CPU usage plus memory leak while analyzing TypeScript files.

$
0
0
Reporter Dmitrii Levchenko (dlxeon) Dmitrii Levchenko (dlxeon)
Created Oct 8, 2018 12:51:34 AM
Updated Oct 18, 2018 8:13:38 AM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Performance Problem
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Sometimes when working on my Asp.net/C#/AngularJS/Typescript project, I got Rider 2018.2.3 to consume 100% of single CPU core and having continuously high memory usage (and growing) until I restart it. Perfview trace shows error somewhere in Typescript analyzer. Memory dump on attached screenshot was taken when process memory was slightly bigger, than 4Gb, while Task manager screenshot was taken later.

RSRP-469808: Code clean up breaks variables inside @helper block in razor view

$
0
0
Reporter Chris F (psylenced) Chris F (psylenced)
Created May 24, 2018 10:46:01 AM
Updated Oct 18, 2018 8:29:26 AM
Subsystem Code Style - Cleanup
Assignee Alexandra Kuks (Asia.Rudenko)
Priority Critical
State To Reproduce
Type Bug
Fix version No Fix versions
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

Code cleanup is inserting a space for all variables inside a @helper block which causes the code to break.

Before:

@helper DrawIcon(string title, string url)
{
    <li>
        <a href="@url" title="@title"></a>
    </li>
}

After:

@helper DrawIcon(string title, string url)
{
    <li>
        <a href="@ url" title="@ title"></a>
    </li>
}

(Note the space after @url and @title after clean up).

RSRP-408273: VB.NET: Have a "re-write using StringBuilder" context function

$
0
0
Reporter Denis Abramov (sparky2708) Denis Abramov (sparky2708)
Created Mar 6, 2014 7:57:31 PM
Updated Oct 18, 2018 10:36:34 AM
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
Suppose you have VB.NET code as follows:

   "SELECT " & _
"StartDate, " & _
"EndDate, " & _
"EndDate as Date, " & _
"Fund, " & _
"Dealer, " & _
"DealerAccountNumber AS [Dealer Account Number], " & _
"EMGAccountName, " & _
"ROUND(StartingLTDAmount, 2) AS [" & Format(DateAdd(DateInterval.Month, -1, EmgNet.DateHandler.YYYYMMDDToDate(EndDate)), "MM/dd/yyyy") & " LTD_Amount" & "], " & _
"ROUND(EndingLTDAmount, 2) AS [" & Format(EmgNet.DateHandler.YYYYMMDDToDate(EndDate), "MM/dd/yyyy") & " LTD_Amount" & "], " & _
"Amount AS [" & Format(EmgNet.DateHandler.YYYYMMDDToDate(EndDate), "MM/dd/yyyy") & " Activity" & "], " & _
"BrokerBalance, " & _
"InterestReceived, " & _
"ROUND(Delta, 2) AS Delta, " & _
"RollInterestIntoBalance, " & _
"IsInterestReceivedMatched, " & _
"IsInterestReceivedMatched_Details, " & _
"CASE " & _
"WHEN LockDate IS NOT NULL THEN 1 " & _
"ELSE 0 " & _
"END AS IsLocked, " & _
"LockDate, " & _
"LockedBy, " & _
"LockComment as LockComments, " & _
"LastLockDate " & _
"FROM " & _
"[qrySomething]('" & strFund & "', '" & strDealer & "', '" & StartDate & "', '" & EndDate & "', 1)"

It would be nice to have a function that would convert this to using "StringBuilder".

RSRP-9398: Refactoring Strings: Strings to StringBuilder

$
0
0
Reporter Amir Kolsky (kolsky) Amir Kolsky (kolsky)
Created Aug 5, 2006 3:46:19 PM
Updated Oct 18, 2018 10:37:21 AM
Resolved Oct 18, 2018 10:37:21 AM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Feature
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
From "Jesse Houwing" no_mail@jetbrains.com
These are common performance hogs found in code
string result = "";
foreach (string s in strings)
{
result+=s;
}
to
StringBuilder resultBuilder = "";
foreach (string s in strings)
{
resultBuilder.Append(s);
}
string result = resultBuilder.ToString();

RSRP-9399: Refactoring Strings: Catenation to StringBuilder

$
0
0
Reporter Amir Kolsky (kolsky) Amir Kolsky (kolsky)
Created Aug 5, 2006 3:46:20 PM
Updated Oct 18, 2018 10:37:21 AM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State To be discussed
Type Feature
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Another from Jesse Houwing:
Turn
string result = x + b + c;
to
StringBuilder resultBuilder = x;
resultBuilder.Append(b);
resultBuilder.Append(c);
string result = resultBuilder.ToString();
Viewing all 106942 articles
Browse latest View live


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