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

RSRP-411769: Incorrect result after applying "invert the 'if'" context action

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Mar 31, 2014 5:36:35 PM
Updated Oct 9, 2018 12:20:08 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 8.2, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I am a customer of your product ReSharper and I would like to report a technical issue I met while working with it.

Working environment is:
- Windows XP with SP3, Greek edition.
- .Net versions installed: 1.0, 2.0, 3.0, 3.5, 4.0 .
- ReSharper 8.2.0.2160 Full Edition.
- Using the C# Editor of Visual Studio 2010.

Here is the description:
At the following snippet:
        // Before
        foreach (var fds in StRocFormDetails.Where (fds => fds.IncludeInSaving))
        {
            FormStructure
                fstStored = fds.Stored;

            // Trying to invert 'if'
            if (!fds.ColumnsAltered && !fds.ForcedSaving)
                continue;
#if (DEBUG)
                {
                    // Placeholder for breakpoint
                }
#endif

                foreach (var col in fstStored.ColumnData.EmptyIfNull())
                {
                    outConfFile.Write_NameValuePair_Line (
                        _cnColumnDescriptionPrefix, string.Format ("{0}:{1}", GetColumnIndirect (col.ColumnName), col.ColumnWidth)
                    );
                }
            }
        }
I choose to invert the 'if'.

Then, the code is converted into the following:
        // After
        foreach (var fds in StRocFormDetails.Where (fds => fds.IncludeInSaving))
        {
            FormStructure
                fstStored = fds.Stored;

            // Trying to invert 'if'
            if (fds.ColumnsAltered || fds.ForcedSaving)
            {
                {
                    // Placeholder for breakpoint
                }
#endif

                foreach (var col in fstStored.ColumnData.EmptyIfNull())
                {
                    outConfFile.Write_NameValuePair_Line (
                        _cnColumnDescriptionPrefix, string.Format ("{0}:{1}", GetColumnIndirect (col.ColumnName), col.ColumnWidth)
                    );
                }
            }
#if (DEBUG)
        }



which looks like a slight inconsistency, not a big issue, though, since it can be immediately spotted and quickly fixed.

The behavior reported above is of minor significance, especially when compared to the vast range of refactorings offered by your product, although it could be used to create an even better product, in a future version.

RSRP-417020: "Use collection initializer" refactoring does not preserver #if directives

$
0
0
Reporter Marcin Floryan (mfloryan_PKE9) Marcin Floryan (mfloryan_PKE9)
Created Jun 30, 2014 12:06:58 AM
Updated Oct 9, 2018 12:21:55 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 8.2, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
With a bit of code that can be refactored to use a collection initializer the #if directives are not preserved. Here is a sample code from Log4Net codebase:

    s_globalRulesRegistry = new Hashtable(45);

    s_globalRulesRegistry.Add("literal", typeof(LiteralPatternConverter));
    s_globalRulesRegistry.Add("newline", typeof(NewLinePatternConverter));
    s_globalRulesRegistry.Add("n", typeof(NewLinePatternConverter));

// .NET Compact Framework has no support for ASP.NET
#if !NETCF && !CLIENT_PROFILE
    s_globalRulesRegistry.Add("aspnet-cache", typeof(AspNetCachePatternConverter));
    s_globalRulesRegistry.Add("aspnet-context", typeof(AspNetContextPatternConverter));
    s_globalRulesRegistry.Add("aspnet-request", typeof(AspNetRequestPatternConverter));
    s_globalRulesRegistry.Add("aspnet-session", typeof(AspNetSessionPatternConverter));
#endif

    s_globalRulesRegistry.Add("c", typeof(LoggerPatternConverter));
    s_globalRulesRegistry.Add("logger", typeof(LoggerPatternConverter));

    s_globalRulesRegistry.Add("r", typeof(RelativeTimePatternConverter));
    s_globalRulesRegistry.Add("timestamp", typeof(RelativeTimePatternConverter));
            
#if !NETCF
    s_globalRulesRegistry.Add("stacktrace", typeof(StackTracePatternConverter));
s_globalRulesRegistry.Add("stacktracedetail", typeof(StackTraceDetailPatternConverter));
#endif

    s_globalRulesRegistry.Add("t", typeof(ThreadPatternConverter));
    s_globalRulesRegistry.Add("thread", typeof(ThreadPatternConverter));

    s_globalRulesRegistry.Add("w", typeof(UserNamePatternConverter));
    s_globalRulesRegistry.Add("username", typeof(UserNamePatternConverter));

The outcome is this:

s_globalRulesRegistry = new Hashtable(45)
    {
     {"literal", typeof (LiteralPatternConverter)},
     {"newline", typeof (NewLinePatternConverter)},
     {"n", typeof (NewLinePatternConverter)},
     {"aspnet-cache", typeof (AspNetCachePatternConverter)},
     {"aspnet-context", typeof (AspNetContextPatternConverter)},
     {"aspnet-request", typeof (AspNetRequestPatternConverter)},
     {"aspnet-session", typeof (AspNetSessionPatternConverter)},
     {"c", typeof (LoggerPatternConverter)},
     {"logger", typeof (LoggerPatternConverter)},
     {"r", typeof (RelativeTimePatternConverter)},
     {"timestamp", typeof (RelativeTimePatternConverter)},
     {"stacktrace", typeof (StackTracePatternConverter)},
     {"stacktracedetail", typeof (StackTraceDetailPatternConverter)},
     {"t", typeof (ThreadPatternConverter)},
     {"thread", typeof (ThreadPatternConverter)},
     {"w", typeof (UserNamePatternConverter)},
     {"username", typeof (UserNamePatternConverter)}
    };

This misses the important conditional directives and thus changes functionality.

RSRP-391859: Object initializer and conditional compilation

$
0
0
Reporter edo kan (edokan) edo kan (edokan)
Created Nov 8, 2013 2:11:57 PM
Updated Oct 9, 2018 12:23:23 PM
Resolved Oct 9, 2018 12:23:23 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Following code is an example of conditional compilation.

        static void Main(string[] args)
{
var demo = new DemoClass();
#if DEBUG
demo.SomeProperty = true;
#endif
}

Problem is that ReSharper gives you an option to convert statements to object initializer syntax which may alter the flow of the code if code is not compiled with DEBUG.

RSRP-189889: Quickfix: use object initializer

$
0
0
Reporter Philip Lee (philiplee) Philip Lee (philiplee)
Created Aug 31, 2010 3:36:23 PM
Updated Oct 9, 2018 12:23:23 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 5.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
In this code (from a Prism WPF app), R# suggests 'use object initializer' on the marked line. This may be a valid suggestion but accepting the suggestion only updates the marked line and will therefore break the Silverlight build.

DialogActivationBehavior behavior;
  1. if SILVERLIGHT
behavior = new PopupDialogActivationBehavior();
  1. else
behavior = new WindowDialogActivationBehavior(); /*****/
  1. endif
behavior.HostControl = owner;

RSRP-329489: "Refactor This | Move to another file" does not move '#if DEBUG'

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Aug 27, 2012 1:46:24 PM
Updated Oct 9, 2018 12:24:00 PM
Resolved Oct 9, 2018 12:24:00 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Bug
Fix version Backlog
Affected versions 7.0
Fixed In Version ReSharper Undefined
VsVersion All Versions
#if DEBUG
public
#else
internal
#endif
class MyClass
{

}
Resharper 7 / Refactor | Move to another file doesn't catch the #if...#endif. In debug mode it leaves the #if DEBUG in the original file, and puts invalid code into the new file.

BTW, I use this tactic for having NUnit tests in a seperate assembly that test the code in debug mode, then for releases, which require obfuscation, the members are made internal so they get processed by the obfuscator.

RSRP-378538: Move refactoring disregards #if/#else/#elif/#endif pre-processor directives

$
0
0
Reporter Krzysztof Koźmic (Krzysztof.Koźmic) Krzysztof Koźmic (Krzysztof.Koźmic)
Created Jul 13, 2013 3:01:01 AM
Updated Oct 9, 2018 12:24:00 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 8.0 EAP, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
if I have the following code:

#if !(SILVERLIGHT)

public class Foo {}

public class Bar {}

#endif

and then on Bar I do Move refactoring to move it to its own file, it ends up moved without the directive.

In my case this leads to compiler error on Silverlight build since the class uses API that's not available in Silverlight. Obviously Silverlight is used as an example here and it's affected by any custom flag

RSRP-471790: Sequence contains no elements

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Oct 9, 2018 12:24:44 PM
Updated Oct 9, 2018 12:30:54 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Submitted
Type Exception
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 183 Hive _3f3919c0 — JetBrains ReSharper Ultimate 2018.3 EAP 2 D Build 183.0.20181008.115722-eap02d

JetBrains dotCover 2018.3 EAP 2 D Build 2018.3.20181008.121226-eap02d
JetBrains dotMemory 2018.3 EAP 2 D Build 2018.3.20181008.121228-eap02d
JetBrains dotTrace 2018.3 EAP 2 D Build 2018.3.20181008.121231-eap02d
JetBrains ReSharper 2018.3 EAP 2 D Build 2018.3.20181008.120956-eap02d
JetBrains ReSharper C++ 2018.3 EAP 2 D Build 2018.3.20181008.120854-eap02d
JetBrains TeamCity Add-in 2018.3 EAP 2 D Build 2018.3.20181008.121021-eap02d

Sequence contains no elements

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Sequence contains no elements”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = System.Core
StackTraceString = “
 at System.Linq.Enumerable.Aggregate[TSource](IEnumerable`1 source, Func`3 func)
 at System.Linq.Enumerable.Aggregate[TSource](IEnumerable`1 source, Func`3 func)
 at JetBrains.ReSharper.Feature.Services.LiveTemplates.Hotspots.HotspotSessionController.GetJoinedFieldsRange(IDocument document)
 at JetBrains.ReSharper.Feature.Services.LiveTemplates.LiveTemplates.LiveTemplatesManager.CreateHotspotSessionAtopExistingText(ISolution solution, DocumentRange endSelectionRange, ITextControl textControl, EscapeAction escapeAction, HotspotInfo[] hotspotInfos)
 at JetBrains.ReSharper.Intentions.CSharp.QuickFixes.InitializeVariablesFixBase.<>c__DisplayClass8_0.<ExecutePsiTransaction>b__0(ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.Execute(ISolution solution, ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.QuickFixes.QuickFixBase.Execute(ISolution solution, ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.Intentions.IntentionAction.MyExecutableProxi.Execute()
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked()


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Sequence contains no elements”
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.115722-eap02d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 2 D Build 2018.3.20181008.121226-eap02d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 2 D Build 2018.3.20181008.121231-eap02d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 2 D Build 2018.3.20181008.120854-eap02d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.3 EAP 2 D Build 2018.3.20181008.121021-eap02d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.3 EAP 2 D Build 2018.3.20181008.120956-eap02d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.3 EAP 2 D Build 2018.3.20181008.121228-eap02d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183::abb3efa7eef3dbe69c9083ac8f2f4470e9e7aac5


Platform\VisualStudio:
    git::refs/heads/183::68c59afe9ec7fd1dbca996bd1dc2331d488b2cda

Data.VsVersion = 15.8.28010.2041
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked()
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked()
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.<>c__DisplayClass29_0.<InitMenuGeneral>b__0(Object objKey)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenu.<>c__DisplayClass49_0.<InitViewModel>b__3(JetPopupMenuItem item)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value)
 at JetBrains.Application.UI.Controls.JetPopupMenu.Detail.JetPopupMenuDoc.ExecuteSelectedItem()
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuMainpartView.OnKeyDownLowPriority(KeyEventArgs args)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuView.OnKeyDown(KeyEventArgs args)
 at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
 at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
 at System.Windows.Forms.Control.WmKeyChar(Message& m)
 at System.Windows.Forms.Control.WndProc(Message& m)
 at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
 at System.Windows.Forms.Form.WndProc(Message& m)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuView.WndProc(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
 at JetBrains.UI.Utils.DpiUtil.TopLevelWindowDpiTracker.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.InternalPumpMessagesOnce()
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run(Func`1 condition, TimeSpan timeout, Boolean bThrowOnTimeout)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.JetPopupMenuOverlordView.Show(Boolean isModal)
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenus.ShowCore(JetPopupMenu menu, ShowWhen when, Boolean isModal, LifetimeDefinition lifetimeDefinitionOptional, IJetPopupMenuOverlordView parentView)
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.ShowBulbMenuAdvanced(IEnumerable`1 menuItems, PopupWindowContextSource contextSource, GotoByNameModel gotoByNameModel, Action`1 modelInitHandler, LifetimeDefinition viewLifetimeDefinition, IAutomation captionAutomation, Action`1 beforeShow)
 at JetBrains.ReSharper.Intentions.Bulbs.BulbOnGutterMarginIndicator.<ExecuteIndicator>b__18_0(IList`1 menuItems, PopupWindowContextSource contextSource, GotoByNameModel gotoByNameModel, Action`1 modelInitHandler, LifetimeDefinition definition)
 at JetBrains.ReSharper.Intentions.Bulbs.BulbOnGutterMarginIndicator.DoExecuteIndicator(IDataContext context, BulbItemsReadyState readyState, Action`5 showBulbAction)
 at JetBrains.ReSharper.Intentions.Bulbs.BulbOnGutterMarginIndicator.ExecuteIndicator(IDataContext context, BulbItemsReadyState readyState)
 at JetBrains.ReSharper.Intentions.Bulbs.IndicatorControllerBase.HandleAction(IDataContext context)
 at JetBrains.ReSharper.Intentions.Bulbs.AltEnterHandlers.HandleAction(IDataContext context)
 at JetBrains.ReSharper.Intentions.Bulbs.AltEnterActionHandler.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()
 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.Shell.Actions.Revised.VsOleCommandTargetHandler.<>c__DisplayClass17_0.<CommandTargetExec>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.CommandTargetExec(CommandID commandid, OLECMDEXECOPT cmdExecOpt)
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.<.ctor>b__12_2(CommandID commandid, OLECMDEXECOPT opt, IntPtr in, IntPtr out)
 at JetBrains.VsIntegration.Shell.Package.VsPackageSdkStub.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& guidGroup, UInt32 nCmdId, UInt32 nCmdExcept, IntPtr vIn, IntPtr vOut)

RSRP-468603: Analyzer 'JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Error.ProblemAnalyzers.TsInvocationExpressionProblemAnalyzer' thrown exception: Obje

$
0
0
Reporter Brian Ricketts (briman94) Brian Ricketts (briman94)
Created Mar 3, 2018 10:16:52 PM
Updated Oct 9, 2018 12:34:35 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _ae046853 — JetBrains ReSharper Ultimate 2018.1 EAP 1 D Build 112.0.20180228.142904-eap01d

JetBrains ReSharper 2018.1 EAP 1 D Build 2018.1.20180228.144736-eap01d

LastExtension = ts
SubProducts.0 = JetBrains ReSharper 2018.1 EAP 1 D Build 2018.1.20180228.144736-eap01d
ManagedThreadName = JetPool (L) Regular thread #2
ManagedThreadName = JetPool (L) Regular thread #1
ManagedThreadName = DaemonThread

Analyzer 'JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Error.ProblemAnalyzers.TsInvocationExpressionProblemAnalyzer' thrown exception: 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.Psi.Web
StackTraceString = “
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsResolveImplUtil.<>c.<.cctor>b__114_0(JsResolveContext context, String s, PrimitiveCalculationIdentifier ident)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsResolveImplUtil.<>c.<.cctor>b__114_0(JsResolveContext context, String s, PrimitiveCalculationIdentifier 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.TypeScript.TsResolveImplUtil.GetTypeForNamedType(JsPrimitive primitive, JsResolveContext context, StrongTypeMode mode)
 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.ResolveType(JsResolveContext context, Boolean standardTypes, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsResolveImplUtil.ResolveTypeArray(ITsSubstitution instantiation, JsResolveContext context, IList`1 javaScriptTypes, StrongTypeMode strict, List`1& resolvedTypes, JsTypeResolveInfo& info, Boolean useFirstAsContextual, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsResolveImplUtil.ExpandBestCommonType(IList`1 typeList, ITsSubstitution instantiation, JsResolveContext context, StrongTypeMode strict, JsCombinedTypeKind kind, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsTypeResolverBase.ExpandCombinedType(JsUnresolvedTypeArray typeList, JsTypeExpandingContext expContext, ITsSubstitution instantiation, Boolean reportSuccessOrError, JsCombinedTypeKind kind, JsTypeResolveResult contextualType, JsUnresolvedTypeFlags flags)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsTypeResolverBase.ExpandTypeForPrimaryPrimitive(JsTypeDescriptionOpInfo info, IPsiSourceFile file, JsUnresolvedTypeFlags flags, JsTypeExpandingContext context, Boolean reportSuccessOrError, 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.Psi.JavaScript.Resolve.JsParameterInfo.GetResolvedType(JsResolveContext context, IJsFunctionSignature signature, StrongTypeMode strongTyped, Boolean allowIdentityLoss, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsResolveImplUtil.GetFormalParameterType(JsParameterInfo[] paramList, Int32 index, JsResolveContext context, IJsFunctionSignature signature, StrongTypeMode strongTyped, Boolean allowIdentityLoss, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsResolveImplUtil.GetParameterType(JsParameterInfo[] paramList, Int32 index, JsResolveContext context, IJsFunctionSignature signature, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.SourceSignatureIsRelatableToTarget(IJsFunctionSignature targetSignature, IJsFunctionSignature sourceSignature, JsResolveContext ctx, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareSignaturesInt(JsResolveContext context, IJsFunctionSignature signature1, IJsFunctionSignature signature2, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareSignatureSetsInt(IList`1 targetSignatures, IList`1 sourceSignatures, ITsType targetOwnerTypeInfo, ITsType sourceOwnerTypeInfo, JsResolveContext ctx, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.DoCompareTypes(JsResolveContext ctx, ComparisonContext comparisonContext, TypeComparisonId 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.Resolve.TypeScript.TypeRelationsUtil.CompareTypesInt(JsResolveContext context, IJsResolvedType sourceType, JsTypeResolveInfo sourceInfo, IJsResolvedType targetType, JsTypeResolveInfo targetInfo, ComparisonKind comparisonKind, ComparisonContext comparisonContext, Int32 depth)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareTypeResults(JsResolveContext context, JsTypeResolveResult sourceTypeResult, JsTypeResolveResult targetTypeResult, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.DoCompareTypes(JsResolveContext ctx, ComparisonContext comparisonContext, TypeComparisonId 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.Resolve.TypeScript.TypeRelationsUtil.CompareTypesInt(JsResolveContext context, IJsResolvedType sourceType, JsTypeResolveInfo sourceInfo, IJsResolvedType targetType, JsTypeResolveInfo targetInfo, ComparisonKind comparisonKind, ComparisonContext comparisonContext, Int32 depth)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.SourceSignatureIsRelatableToTarget(IJsFunctionSignature targetSignature, IJsFunctionSignature sourceSignature, JsResolveContext ctx, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareSignaturesInt(JsResolveContext context, IJsFunctionSignature signature1, IJsFunctionSignature signature2, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareSignatureSetsInt(IList`1 targetSignatures, IList`1 sourceSignatures, ITsType targetOwnerTypeInfo, ITsType sourceOwnerTypeInfo, JsResolveContext ctx, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.DoCompareTypes(JsResolveContext ctx, ComparisonContext comparisonContext, TypeComparisonId 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.Resolve.TypeScript.TypeRelationsUtil.CompareTypesInt(JsResolveContext context, IJsResolvedType sourceType, JsTypeResolveInfo sourceInfo, IJsResolvedType targetType, JsTypeResolveInfo targetInfo, ComparisonKind comparisonKind, ComparisonContext comparisonContext, Int32 depth)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.SourceSignatureIsRelatableToTarget(IJsFunctionSignature targetSignature, IJsFunctionSignature sourceSignature, JsResolveContext ctx, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareSignaturesInt(JsResolveContext context, IJsFunctionSignature signature1, IJsFunctionSignature signature2, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareSignatureSetsInt(IList`1 targetSignatures, IList`1 sourceSignatures, ITsType targetOwnerTypeInfo, ITsType sourceOwnerTypeInfo, JsResolveContext ctx, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.DoCompareTypes(JsResolveContext ctx, ComparisonContext comparisonContext, TypeComparisonId 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.Resolve.TypeScript.TypeRelationsUtil.CompareTypesInt(JsResolveContext context, IJsResolvedType sourceType, JsTypeResolveInfo sourceInfo, IJsResolvedType targetType, JsTypeResolveInfo targetInfo, ComparisonKind comparisonKind, ComparisonContext comparisonContext, Int32 depth)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareTypeResults(JsResolveContext context, JsTypeResolveResult sourceTypeResult, JsTypeResolveResult targetTypeResult, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.DoCompareTypes(JsResolveContext ctx, ComparisonContext comparisonContext, TypeComparisonId 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.Resolve.TypeScript.TypeRelationsUtil.CompareTypesInt(JsResolveContext context, IJsResolvedType sourceType, JsTypeResolveInfo sourceInfo, IJsResolvedType targetType, JsTypeResolveInfo targetInfo, ComparisonKind comparisonKind, ComparisonContext comparisonContext, Int32 depth)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareCombinedWithOr(JsResolveContext ctx, ITsCombinedType typeToSplit, IJsResolvedType typeToCompare, Boolean isUnion, ComparisonContext comparisonContext, JsTypeResolveInfo info1, JsTypeResolveInfo info2, ComparisonKind comparisonKind)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.UnionOrIntersectionAssignabilityOrSubtypingComparison(JsResolveContext ctx, IJsResolvedType source, JsTypeResolveInfo info1, IJsResolvedType target, JsTypeResolveInfo info2, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.UnionOrIntersectionComparison(JsResolveContext ctx, IJsResolvedType type1, JsTypeResolveInfo info1, IJsResolvedType type2, JsTypeResolveInfo info2, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.DoCompareTypes(JsResolveContext ctx, ComparisonContext comparisonContext, TypeComparisonId 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.Resolve.TypeScript.TypeRelationsUtil.CompareTypesInt(JsResolveContext context, IJsResolvedType sourceType, JsTypeResolveInfo sourceInfo, IJsResolvedType targetType, JsTypeResolveInfo targetInfo, ComparisonKind comparisonKind, ComparisonContext comparisonContext, Int32 depth)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareTypesWithExtendedResult(JsResolveContext context, JsTypeResolveResult type1, JsTypeResolveResult type2, ComparisonKind comparisonKind, ComparisonContext comparisonContext)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.TypeScript.TypeRelationsUtil.CompareTypes(JsResolveContext context, JsTypeResolveResult type1, JsTypeResolveResult type2, ComparisonKind comparisonKind, IJsTypeResolveInfoMerger merger)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsOverloadResolutionEngine.IsApplicable(JsResolveContext context, IJsFunctionSignature info, IJsUnresolvedType[] parameters, JsTypeResolveResult[] typeParams, Boolean moreThanOneSignature, JsTypeExpandingContext derivedPrimitives, TempCalculationIdent ident, Boolean checkOnlySubtype, JsTypeResolveResult contextualTypeForSignature, ITsSubstitution& instantiation)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsOverloadResolutionEngine.<>c__DisplayClass12_1.<ResolveOverloadsStrongTyping>b__0(JsResolveContext ctx)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsResolveContext.CalculateWithoutRecursion(ICalculationIdentifier ident, ResolveContextKind resolveKind, Action`1 calculator)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsOverloadResolutionEngine.ResolveOverloadsStrongTyping(FrugalLocalList`1& result, FrugalLocalList`1& signatures, JsResolveContext context, IJsUnresolvedType[] parameters, JsUnresolvedTypeArray typeParams, JsTypeExpandingContext derivedPrimitives, IJsTypeResolveCalculationItem ident, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsOverloadResolutionEngine.ResolveOverloads(FrugalLocalList`1& result, FrugalLocalList`1& signatures, JsResolveContext context, JsUnresolvedTypeArray parameters, JsUnresolvedTypeArray typeParams, JsTypeExpandingContext derivedPrimitives, IJsTypeResolveCalculationItem ident, Boolean onlyWithTypeParams, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsOverloadResolutionEngine.ResolveOverloads(FrugalLocalList`1& result, FrugalLocalList`1& signatures, JsResolveContext context, JsPrimitiveKind operation, JsUnresolvedTypeArray parameters, JsUnresolvedTypeArray typeParams, JsTypeExpandingContext derivedPrimitives, IJsTypeResolveCalculationItem ident, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsTypeWithSignaturesBase.ProcessOverloads(JsResolveContext context, IJsTypeResolveCalculationItem ident, IJavaScriptTypeFileCache cache, IJsInvocationInfo info, JsTypeExpandingContext derivedPrimitives, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsTypeResolverBase.ExpandInvocation(IJsTypeResolveCalculationItem ident, IJsInvocationInfo info, IPsiSourceFile file, JsTypeExpandingContext context, JsTypeResolveResult contextualType, Boolean reportSuccessOrError)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.GetOverloadError(JsResolveContext context, JsTypeResolveResult contextualType, IList`1 resultsList)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsOverloadResolutionEngine.GetOverloadError(JsResolveContext context, IJsUnresolvedType invocation, JsTypeResolveResult contextualType, IList`1 resultsList)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Error.ProblemAnalyzers.TsInvocationExpressionProblemAnalyzer.Run(ITsInvocationLikeExpression tsInvocationExpressionParam, ElementProblemAnalyzerData data, IHighlightingConsumer context)
 at JetBrains.ReSharper.Feature.Services.Daemon.ElementProblemAnalyzer`1.JetBrains.ReSharper.Feature.Services.Daemon.IElementProblemAnalyzer.Run(ITreeNode element, ElementProblemAnalyzerData data, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Feature.Services.Daemon.ElementProblemAnalyzerRegistrar.ElementAnalyzerDispatcher.Run(ITreeNode element, IHighlightingConsumer consumer)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Analyzer 'JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Error.ProblemAnalyzers.TsInvocationExpressionProblemAnalyzer' thrown exception: Object reference not set to an instance of an object.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool (L) Regular thread #1”
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 1 D Build 112.0.20180228.142904-eap01d”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.1 EAP 1 D Build 2018.1.20180228.144736-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave12-RSRP-467036

Data.VsVersion = 15.6.27428.1
Data.VsPreview = True
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.ReSharper.Feature.Services.Daemon.ElementProblemAnalyzerRegistrar.ElementAnalyzerDispatcher.Run(ITreeNode element, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Feature.Services.Daemon.ElementProblemAnalyzerRegistrar.ElementAnalyzerDispatcher.Run(ITreeNode element, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.InitialStageProcess.VisitNode(ITreeNode node, IHighlightingConsumer context)
 at JetBrains.ReSharper.Psi.JavaScript.Tree.TreeNodeVisitor`1.VisitExpressionOrSpread(IExpressionOrSpread expressionOrSpreadParam, TContext context)
 at JetBrains.ReSharper.Psi.JavaScript.Tree.TreeNodeVisitor`1.VisitJavaScriptExpression(IJavaScriptExpression javaScriptExpressionParam, TContext context)
 at JetBrains.ReSharper.Psi.JavaScript.Tree.TreeNodeVisitor`1.VisitMemberExpression(IMemberExpression memberExpressionParam, TContext context)
 at JetBrains.ReSharper.Psi.JavaScript.Tree.TreeNodeVisitor`1.VisitInvocationExpression(IInvocationExpression invocationExpressionParam, TContext context)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Tree.InvocationExpression.Accept[TContext](TreeNodeVisitor`1 visitor, TContext context)
 at JetBrains.ReSharper.Daemon.JavaScript.JavaScriptDaemonStageProcessBase.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.InitialStageProcess.<Execute>b__9_0(IJavaScriptFile file, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Daemon.JavaScript.JavaScriptDaemonStageProcessBase.HighlightInFile(Action`2 fileHighlighter, Action`1 commiter)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.InitialStageProcess.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__DisplayClass43_1.<DoHighlighting>g__Stage2(IDaemonStage stage)
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass45_1.<PrepareRunActionForStages>b__0()
 at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass22_0.<EnqueueDependentJobs>b__2()
 at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass29_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 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-339569: Convert if-else to switch may lose some #region directives

$
0
0
Reporter David McCarty (PhatWrat) David McCarty (PhatWrat)
Created Mar 7, 2013 1:46:17 AM
Updated Oct 9, 2018 12:37:09 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Consider the following example:
if (type == RequestType.Unknown)
    return null;
#region a section
else if (type == RequestType.A1)
    return new TransResponse("1");
else if (type == RequestType.A2)
    return new TransResponse("2");
else if(type == RequestType.A3)
    return new TransResponse("3");
#endregion
#region b section
else if(type == RequestType.B1)
    return new TransResponse("x");
else if(type == RequestType.B2)
    return new TransResponse("y");
#endregion
ReSharper suggests changing the if-else block to a switch statement. When I do this, the refactored code becomes:
switch (type)
{
    case RequestType.Unknown:
        return null;
    case RequestType.A1:
        return new TransResponse("1");
    case RequestType.A2:
        return new TransResponse("2");
    case RequestType.A3:
        return new TransResponse("3");
    case RequestType.B1:
        return new TransResponse("x");
    case RequestType.B2:
        return new TransResponse("y");
}
#endregion
Note that not only are the #region directives that kept the code in sections gone, but ReSharper didn't remove the last #endregion and so now I get compiler errors until I manually remove the #endregion.

Instead, I would expect ReSharper to format the example as follows:
switch (type)
{
    case RequestType.Unknown:
        return null;
    #region a section
    case RequestType.A1:
        return new TransResponse("1");
    case RequestType.A2:
        return new TransResponse("2");
    case RequestType.A3:
        return new TransResponse("3");
    #endregion
    #region b section
    case RequestType.B1:
        return new TransResponse("x");
    case RequestType.B2:
        return new TransResponse("y");
    #endregion
}
I am using ReSharper Build 7.1.2000.1478 on a Windows 7 (x64) machine. I've reproduced it in both VS 2008 (professional) and VS 2012 (ultimate).

RSRP-464002: Do not suggest adding reference to the same project for multi target frameworks project

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Mar 28, 2017 3:46:52 PM
Updated Oct 9, 2018 12:43:45 PM
Subsystem Quick Fixes
Assignee Lilia Shamsutdinova (Lilia.Shamsutdinova)
Priority Critical
State To Reproduce
Type Bug
Fix version Backlog
Affected versions 2017.1
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM
The solution from https://youtrack.jetbrains.com/issue/RSRP-464001

After applying this quickfix


we get this

RSRP-465508: External Annotations does not work in some cases

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Jul 19, 2017 5:31:57 PM
Updated Oct 9, 2018 12:57:34 PM
Resolved Oct 9, 2018 12:57:34 PM
Subsystem Code Analysis - Annotations
Assignee Maltseva Ekaterina (Maltseva.Ekaterina)
Priority Major
State Can't Reproduce
Type Task
Fix version 2017.3
Affected versions 2017.1.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
I tried R# 2017.2 EAP and it doesn't work for me here too.
I've rather experimented and think that the problem is that I have DevEx libraries installed in GAC too. I hope that you can reproduce the issue using my previous sample with DevExpress libraries trial installed (https://www.devexpress.com/).

If I uninstall the product the sample works. While installed the problem persists even if non specific bin versions are referenced. The product bins are installed into C:\Program Files (x86)\DevExpress 17.1\Components\Bin\Framework by default where my external annotation xmls resides too.

I've tried previous R# version I used before - in 2016.3.2 the behavior is the same (wrong), but in r# 10.0.2 everything works no matter of DevEx is installed or not. I've verified this using the sample as well as my production projects.

RSRP-468173: Inline watch has constant font size

$
0
0
Reporter Olga Rodygina (olgarodygina) Olga Rodygina (olgarodygina)
Created Jan 31, 2018 6:04:42 PM
Updated Oct 9, 2018 12:58:01 PM
Resolved Sep 24, 2018 8:07:52 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Normal
State Fixed
Type Bug
Fix version 2018.3
Affected versions 2017.3.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
I am using next font in text editor: Font:"Consolas" Size:"17"
Here how debugger looks on my PC:

RSRP-471756: Debugger inline values are rendered with blurry font.

$
0
0
Reporter Andrew Vasilyev (Andrew.Vasilyev) Andrew Vasilyev (Andrew.Vasilyev)
Created Oct 4, 2018 5:14:02 PM
Updated Oct 9, 2018 12:58:20 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Normal
State Fixed In Branch
Type Bug
Fix version 2018.3
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

To reproduce:

  1. Set font to "Text Editor font":

  2. Start debugging.

  3. Stop at line after line with variable assignment.

  4. Scale editor to 250%

Result:

сс: @Igor Akhmetov @Mikhail Senkov

RSRP-329687: "Make class abstract" wrong suggestion

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Sep 3, 2012 3:51:23 PM
Updated Oct 9, 2018 1:00:28 PM
Resolved Oct 9, 2018 1:00:28 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Bug
Fix version Backlog
Affected versions 7.0.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
R# has flagged something as incorrect. The suggested fix is to make the class in question abstract but that's no good as it will never be able to be instantiated then


Sollution attached

RSRP-329839: If "Create Other" submenu has one option only, replace "Create Other" by this item

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Sep 10, 2012 5:29:52 PM
Updated Oct 9, 2018 1:20:04 PM
Subsystem Quick Fixes - Create From Usage
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
Screenshot attached

RSRP-329850: Suggest user to modify method signature when using named arguments

$
0
0
Reporter Kirill Orlov (diverofdark) Kirill Orlov (diverofdark)
Created Sep 10, 2012 9:29:59 PM
Updated Oct 9, 2018 2:13:39 PM
Subsystem Quick Fixes
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
Let's see at following code:
        private void doSomething(int a=0,int b=1, int c=2);

doSomething(b:9, {caret}d:10)

There should be an quickFix which adds new parameter for existing method.

RSRP-469463: Search everywhere is case sensitive when searching for text

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Apr 28, 2018 4:36:20 PM
Updated Oct 9, 2018 2:15:24 PM
Subsystem Navigation - Global
Assignee Alexander Ulitin (alexander.ulitin)
Priority Major
State Fixed In Branch
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
var caseSwitch = 1;

switch (caseSwitch)
{
}

http://recordit.co/5MlubKdJSo

RSRP-464413: The "Display [Nullness] annotations" option for completion appearence doesn't work

$
0
0
Reporter Alexander Petrovsky (apetrov2) Alexander Petrovsky (apetrov2)
Created Apr 18, 2017 12:57:43 PM
Updated Oct 9, 2018 2:27:07 PM
Resolved Oct 9, 2018 2:27:07 PM
Subsystem IntelliSense (Code Completion)
Assignee Mikhail Senkov (micha)
Priority Critical
State Can't Reproduce
Type Bug
Fix version Backlog
Affected versions 2018.1, 2017.1.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Options -> IntelliSense -> Completion Appearence -> Annotations

RSRP-329948: add QF 'Add AssertionMethod attribute' for Warning: Parameter 'row' is only used for precondition check(s).

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Sep 13, 2012 9:45:18 PM
Updated Oct 9, 2018 2:30:54 PM
Subsystem Quick Fixes
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
like
private void EnsureStickerIsPrinted(int row)
{
if(!(bool)grid[row, Columns.StickerPrinted]))
throw new BusinessLogicException("Cannot scan part sticker for which has not been printed.");
}

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 9, 2018 2:30:54 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.
Viewing all 106942 articles
Browse latest View live


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