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

RSRP-471401: The "extract method" stopped working

$
0
0
Reporter J Verdurmen (J_Verdurmen) J Verdurmen (J_Verdurmen)
Created Sep 5, 2018 11:08:00 AM
Updated Oct 15, 2018 6:54:41 PM
Subsystem Refactorings
Assignee Lilia Shamsutdinova (Lilia.Shamsutdinova)
Priority Normal
State Open
Type Bug
Fix version No Fix versions
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

I cannot do "extract method" anymore, as the GUI won't popups

steps:

  1. select code, choose extract method.
  2. I can choose between "extract method" and "exact local function"
  3. When I choose one ( "extract method" or "exact local function"), nothing happens

expected result

  • showing popup GUI

current result

  • nothing, no error.

The funny part is, I have the same issue on my home PC.

this is also an issue in 2018.2.1


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 15, 2018 7:03:05 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-471830: Automating ReSharper setup is complicated

$
0
0
Reporter Tim Cluff (tcluff) Tim Cluff (tcluff)
Created Oct 13, 2018 1:40:18 AM
Updated Oct 15, 2018 7:17:28 PM
Subsystem Installation
Assignee Sergey Kuks (coox)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

A significant portion of my development work is done in VDIs, which means that each time I load one up I'm starting from a clean slate, no Resharper install or configuration present. As a result, I encounter the ReSharper install & "first" run near daily, and not infrequently more than once in a single day.

A silent install is easy enough to set up (though I certainly wouldn't mind if it were faster). But from there, it gets to be a bit of a pain. To avoid a bunch of manual setup every single time, I have to:

  • Install a registry file with my license information
  • Copy UpdatesManager.xml to the Local appdata folder to avoid a license confirmation window
  • Copy a vsActionManager.DotSettings file to a different subfolder in the Local appdata to avoid a prompt to configure hotkeys
  • Copy a consentOptions "accepted" file to my Roaming appdata to avoid a telemetry consent pop-up
  • Copy GlobalSettings.Storage.DotSettings to yet another Roaming appdata folder to tell it to look at my actual settings file on a persistent network drive

Figuring all that out the first time was rather inconvenient, but then on top of that it seems to be a moving target that I'll have to update every release.

RSRP-471847: This property is locked. It can only be changed by the owner of the token.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Oct 2, 2018 2:36:55 PM
Updated Oct 15, 2018 7:34:30 PM
Subsystem No Subsystem
Assignee Serge Baltic (baltic)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 183 Hive _3f3919c0 — JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20181002.50509-eap01d

JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20181002.54636-eap01d
JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20181002.54430-eap01d
JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20181002.54651-eap01d
JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20181002.54318-eap01d
JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20181002.54321-eap01d
JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20181002.54327-eap01d

This property is locked. It can only be changed by the owner of the token.

— EXCEPTION #1/2 [ReadOnlyException]
Message = “This property is locked. It can only be changed by the owner of the token.”
ExceptionPath = Root.InnerException
ClassName = JetBrains.Util.DataStructures.ReadOnlyException
Data.PropertyID = ITextControl::JetTextControl
Data.AttemptedValue = VsTextControl(Class8.vb)/Zatu
Data.CurrentValue = VsTextControl(Class8.vb)/Syso
Data.AttemptedToken = <null>
Data.LockingToken = “Readonly{Property locked by an active SetValue()-with-lifetime call.}”
HResult = DataReadOnly=80131927
Source = JetBrains.Platform.Core
StackTraceString = “
 at JetBrains.DataFlow.Property`1.ThrowReadonlyFail(BeforePropertyChangedEventArgs`1 args, Object tokenExpected)
 at JetBrains.DataFlow.Property`1.ThrowReadonlyFail(BeforePropertyChangedEventArgs`1 args, Object tokenExpected)
 at JetBrains.DataFlow.PropertyValidator.<>c__DisplayClass4_0`1.<CreateReadonlyValidator>b__0(BeforePropertyChangedEventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “This property is locked. It can only be changed by the owner of the token.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20181002.50509-eap01d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20181002.54636-eap01d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20181002.54651-eap01d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20181002.54321-eap01d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20181002.54327-eap01d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20181002.54318-eap01d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20181002.54430-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/183::e74f46d2a0da2b322032116a265908f025e5910f

Data.VsVersion = 15.8.28010.2036
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.Property`1.FireBeforeChange(TValue old, TValue new, Object cookie)
 at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
 at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass30_0`1.<SetValue>b__0()
 at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)
 at JetBrains.DataFlow.IPropertyEx.SetValue[TValue](IProperty`1 property, Lifetime lifetime, TValue value, Object cookie)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.VsTextControlDevTen.Init_AdvertiseOnVsObject()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.VsTextControlDevTen..ctor(IWpfTextView vstextview, VsDocumentWhidbey document, WindowFrame frame, ICreateTextControlParams createParams, IShellLocks locks, IWindowsHookManager windowsHookManager, IVsTextControlDevTenIncrementalSearchClient vsTextControlDevTenIncrementalSearchClient, IUIApplication environment, VsErrorStripeLayoutManagerDevTen errorStripeLayoutManager, TextControlTypingHandlers textControlTypingHandlers, VsCommandProcessor vsCommandProcessor, IVsActionManager vsActionManager, ChangeManager changeManager, DocumentChangeManager documentChangeManager, VsDocumentModelSynchronization vsDocumentModelSynchronization, Lazy`1 vsEditorAdaptersFactoryService, Lazy`1 outliningManagerService, Lazy`1 editorOperationsFactoryService, TextControlPreferences textControlPreferences, Lazy`1 classificationTypeRegistryService, Lazy`1 classificationFormatMapService)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at JetBrains.Application.Components.SingletonTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Components.SingletonTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, ICollection`1 dscs, IComponentContainer container)
 at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
 at JetBrains.Application.Components.ComponentStorage.Compose()
 at JetBrains.Application.Components.FactoryComponentContainer.CreateInstanceCore(Lifetime lifetime, Type type, IComponentContainer parent, Object[] args)
 at JetBrains.Application.Components.FactoryComponentContainer.CreateInstance(Lifetime lifetime, Type objecttype, IComponentContainer parent, Object[] args)
 at JetBrains.Application.Components.FactoryComponentContainer.CreateInstance[TInstance](Lifetime lifetime, IComponentContainer parent, Object[] args)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.VsTextControlCreatorDevTen.CreateTextControl[TTextControl](CreateTextControlParams`1 param)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsAttachTextControlsToTextViews.<>c__DisplayClass0_1.<.ctor>b__1()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsAttachTextControlsToTextViews.<>c__DisplayClass0_0.<.ctor>b__0(Lifetime lifetimeView, VsTextViewDataForTextControlDevTen data)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_1`1.<ForEachItemCore>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_0`1.<ForEachItemCore>b__0(AddRemoveEventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.InternalAdd(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.Add(TValue value, Object cookie)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass16_1`2.<FlowInto>b__1(AddRemoveEventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
 at JetBrains.DataFlow.DictionaryEvents`2.InternalAdd(KeyValuePair`2 value, Object cookie)
 at JetBrains.DataFlow.DictionaryEvents`2.set_Item(TKey key, Object cookie, TValue value)
 at JetBrains.DataFlow.DictionaryEvents`2.set_Item(TKey key, TValue value)
at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsTextViewDataForTextControlCollectorDevTen.<>c__DisplayClass0_1.<.ctor>g__ApplyData|4(IWpfTextView view, VsTextViewDataForTextControlDevTen newdata)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsTextViewDataForTextControlCollectorDevTen.<>c__DisplayClass0_7.<.ctor>b__17()
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsTextViewDataForTextControlCollectorDevTen.<>c__DisplayClass0_7.<.ctor>b__17()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsTextViewDataForTextControlCollectorDevTen.<>c__DisplayClass0_1.<.ctor>b__6(EventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.TrackVsTextViewDataForTextControlChangesEx.<>c__DisplayClass0_0.<FireTextViewDataChanged>b__0()
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.TrackVsTextViewDataForTextControlChangesEx.FireTextViewDataChangedImpl(ITrackVsTextViewDataForTextControlChanges trackVsTextViewDataForTextControlChanges, Lifetime lifetime, IShellLocks locks, Action action)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.TrackVsTextViewDataForTextControlChangesEx.FireTextViewDataChanged(ITrackVsTextViewDataForTextControlChanges trackVsTextViewDataForTextControlChanges, Lifetime lifetime, IShellLocks locks, Func`1 isEventStillActual, IWpfTextView wpfTextView)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.VsDocumentManagerWhidbey_TrackVsTextViewDataForTextControlChanges..ctor(Lifetime lifetime, VsDocumentManagerWhidbey docman, ITrackVsTextViewDataForTextControlChanges tracker, IShellLocks locks)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, ICollection`1 dscs, IComponentContainer container)
 at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
 at JetBrains.Application.Components.ComponentStorage.Compose()
 at JetBrains.ProjectModel.SolutionInstance.OpenSolution(ISolutionOwner solutionOwner)
 at JetBrains.ProjectModel.SolutionManagerBase.<>c__DisplayClass23_0.<CreateSolutionInstance>b__0()
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.<>c__DisplayClass21_0.<ExecuteTask>b__1()
 at JetBrains.Util.ILoggerEx.Catch(ILogger thіs, Action F, ExceptionOrigin origin, LoggingLevel loggingLevel)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteTask(SolutionLoadTask task)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerAsync.<Schedule>b__5_0()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Application.Threading.IShellLocksEx.<>c__DisplayClass11_0.<QueueReadLock>b__0()
 at JetBrains.Threading.ReentrancyGuardEx.<>c__DisplayClass0_1.<Queue>b__3()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.ExternalIdleProcessing.OnExternalDriverIdle()
 at JetBrains.VsIntegration.Shell.VsDoIdleDispatcherSink.Microsoft.VisualStudio.OLE.Interop.IOleComponent.FDoIdle(UInt32 grfidlef)

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 15, 2018 7:39:05 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-466773: inspectcode.exe crashes with "Asking for writer lock unexpected. File changes"

$
0
0
Reporter Dmitry Tretyakov (Dmitry.Tretyakov) Dmitry Tretyakov (Dmitry.Tretyakov)
Created Oct 24, 2017 11:08:13 AM
Updated Oct 15, 2018 8:00:37 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Alex Berezoutsky (fergard)
Priority Critical
State To Reproduce
Type Bug
Fix version 2017.3
Affected versions 2017.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

Sometimes, independently of the sources to be checked, inspectcode.exe crashes:

"C:\BuildAgent\tools\jetbrains.resharper-clt.2017.2.0\inspectcode.exe" –no-swea -f=Xml -o="C:\BuildAgent\temp\buildTmp\tmp4B98.tmp" –properties=Configuration=Debug;Platform=AnyCPU -p="C:\BuildAgent\work\7919474d0b4d99a7\resharper\PACEReSharper.DotSettings" "C:\BuildAgent\work\7919474d0b4d99a7\src\CabinModules\Rules\Rules.sln"
[18:27:46][Exec] JetBrains Inspect Code 2017.2
[18:27:46][Exec] Running in 64-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.1.7601 Service Pack 1
[18:27:49][Exec] Custom settings layer is mounted. Used file C:\BuildAgent\work\7919474d0b4d99a7\resharper\PACEReSharper.DotSettings
[18:27:54][Exec] Disabled solution-wide analysis according to Inspect Code command line Setting.
[18:27:54][Exec] Build tool by version not found
[18:28:16][Exec] Solution-wide analysis is DISABLED
[18:28:16][Exec] Running inspections
[18:28:16][Exec] 
[18:28:16][Exec] Inspecting <RulesPlugIn>\Control\ParagraphBindableInlines.cs
[18:28:16][Exec] Asking for writer lock unexpected. File changes:
[18:28:16][Exec] 
[18:28:16][Exec] — EXCEPTION #1/1 [LoggerException]
[18:28:16][Exec] Message = "Asking for writer lock unexpected. File changes:"
[18:28:16][Exec] ExceptionPath = Root
[18:28:16][Exec] ClassName = JetBrains.Util.LoggerException
[18:28:16][Exec] HResult = COR_E_APPLICATION=80131600
[18:28:16][Exec] StackTraceString = "
[18:28:16][Exec]   bei JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain.<>c__DisplayClass10.<Main>b__9(Object sender, BeforeAcquiringWriteLockEventArgs args)
[18:28:16][Exec]      bei JetBrains.Application.Threading.ContentModelReadWriteLock.FireBeforeAcquiringWriteLock(BeforeAcquiringWriteLockEventArgs args)
[18:28:16][Exec]      bei JetBrains.Application.Threading.ContentModelReadWriteLock.AcquireWriteLock()
[18:28:16][Exec]      bei JetBrains.Application.Threading.IShellLocksEx.UsingWriteLock(IShellLocks locks)
[18:28:16][Exec]      bei JetBrains.ReSharper.Psi.Caches.PsiModuleAttributesCache.<>c__DisplayClass23.<>c__DisplayClass25.<QueueUpdateCaches>b__21()
[18:28:16][Exec]      bei JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks th?s, Action F)
[18:28:16][Exec]      bei JetBrains.Threading.ReentrancyGuardEx.<>c__DisplayClass4.<>c__DisplayClass6.<Queue>b__3()
[18:28:16][Exec]      bei JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
[18:28:16][Exec]      bei JetBrains.Threading.ReentrancyGuard.ExecutePendingActions()
[18:28:16][Exec]      bei JetBrains.Threading.JetDispatcher.Closure.Execute()
[18:28:16][Exec]      bei JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
[18:28:16][Exec]      bei System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
[18:28:16][Exec]      bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
[18:28:16][Exec]      bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[18:28:16][Exec]      bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[18:28:16][Exec]      bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[18:28:16][Exec]      bei MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
[18:28:16][Exec]      bei System.Windows.Threading.DispatcherOperation.Invoke()
[18:28:16][Exec]      bei System.Windows.Threading.Dispatcher.ProcessQueue()
[18:28:16][Exec]      bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[18:28:16][Exec]      bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[18:28:16][Exec]      bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
[18:28:16][Exec]      bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
[18:28:16][Exec]      bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[18:28:16][Exec]      bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
[18:28:16][Exec]      bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
[18:28:16][Exec]      bei JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
[18:28:16][Exec]      bei JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
[18:28:16][Exec]      bei JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.InternalPumpMessagesOnce()
[18:28:16][Exec]      bei JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run(Func1 condition, TimeSpan timeout, Boolean bThrowOnTimeout)
[18:28:16][Exec]      bei JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.RunInspectionsInSeparateThread(ICollection1 files, Action1 issueConsumer)
[18:28:16][Exec]      bei JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.Run(IEnumerable1 inspectScope, IProjectFile[] files, InspectCodeOutputFormat format, Boolean useAbsolutePaths, FileSystemPath outputFile)
[18:28:16][Exec]      bei JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain.Main(Lifetime lifetime, IThreading invocator, IComponentContainer container, IShellLocks shellLocks, ILogger logger, IInspectCodeSettings settings, IProductCommandLineArguments argumentsRaw)
[18:28:16][Exec]      bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[18:28:16][Exec]      bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[18:28:16][Exec]      bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[18:28:16][Exec]      bei JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass4.<.ctor>b__0()
[18:28:16][Exec]      bei JetBrains.Util.Logging.Logger.Catch(Action action)
[18:28:16][Exec]      bei JetBrains.Threading.JetDispatcher.Closure.Execute()
[18:28:16][Exec]      bei JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
[18:28:16][Exec]      bei System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
[18:28:16][Exec]      bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
[18:28:16][Exec]      bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[18:28:16][Exec]      bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[18:28:16][Exec]      bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[18:28:16][Exec]      bei MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
[18:28:16][Exec]      bei System.Windows.Threading.DispatcherOperation.Invoke()
[18:28:16][Exec]      bei System.Windows.Threading.Dispatcher.ProcessQueue()
[18:28:16][Exec]      bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[18:28:16][Exec]      bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[18:28:16][Exec]      bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
[18:28:16][Exec]      bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
[18:28:16][Exec]      bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[18:28:16][Exec]      bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
[18:28:16][Exec]      bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
[18:28:16][Exec]      bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[18:28:16][Exec]      bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[18:28:16][Exec]      bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
[18:28:16][Exec]      bei JetBrains.DataFlow.Lifetimes.Using(Action`1 ?)
[18:28:16][Exec]      bei JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv)
[18:28:16][Exec]      bei JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
[18:28:16][Exec]      bei JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
[18:28:16][Exec]      bei JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
[18:28:16][Exec]      bei JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Main(Assembly assembly, Type environmentZoneType, HostInfo hostInfo, IProductInfo productInfo, String[] args)
[18:28:16][Exec]      bei JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Run[TZone,TProductInfo](String productHostShortName, String[] args)
[18:28:16][Exec]      bei JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)

RSRP-470170: R# Inspector reports phantom issues

$
0
0
Reporter Milan Gardian (mgardian) Milan Gardian (mgardian)
Created Jun 13, 2018 10:33:40 PM
Updated Oct 15, 2018 8:02:04 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Alexandra Kuks (Asia.Rudenko)
Priority Normal
State To Reproduce
Type Bug
Fix version Backlog
Affected versions 2018.1.2
Fixed In Version ReSharper Undefined
VsVersion VS 2017 15.6

We have a large solution with 50+ projects that started reporting phantom issues in TeamCity as of R# 2018.1.2. By phantom issues I mean issues that are not reported by R# in Visual Studio (or by command-line inspection runner after clearing its cache). The problem is that clearing the cache increases the inspection time from <5 minutes to ~25 minutes.

  • R# 2018.1.2 analysis in Visual Studio 2017 finds no issues (below our severity threshold)
  • R# 2018.1.2 analysis on TeamCity 2017.2.4 when inspection cache is cleared finds no issues (below our severity threshold) - same sources as Visual Studio case above
  • R# 2018.1.2 analysis on TeamCity 2017.2.4 when inspection cache is present from previous build: reports random issues. It seems like inspection crashes for some files which leaves them incompletely analyzed which results in incorrect issue reporting.

Example crash from TeamCity build log:

[12:52:32] :	 [Step 3/3] ERROR! Invisible analysis failed with exception: c8677f85-f274-492b-b930-dcc117fb44fb(LandWorks.GIS.ToolSet.PET)-71CF9FBC[.NETFramework,Version=v4.6.1]/d:Utilities/f:LWMetesAndBoundsUtils.cs
[12:52:32]W:	 [Step 3/3] One or more errors occurred. Index was outside the bounds of the array.
[12:52:32]W:	 [Step 3/3] 
[12:52:32]W:	 [Step 3/3] --- EXCEPTION #1/3 [IndexOutOfRangeException]
[12:52:32]W:	 [Step 3/3] Message = "Index was outside the bounds of the array."
[12:52:32]W:	 [Step 3/3] ExceptionPath.1 = Root.InnerException.InnerException
[12:52:32]W:	 [Step 3/3] ExceptionPath.2 = Root.InnerException.InnerExceptions.#0
[12:52:32]W:	 [Step 3/3] ClassName = System.IndexOutOfRangeException
[12:52:32]W:	 [Step 3/3] HResult = COR_E_INDEXOUTOFRANGE=80131508
[12:52:32]W:	 [Step 3/3] Source = JetBrains.Platform.Core
[12:52:32]W:	 [Step 3/3] StackTraceString = "
[12:52:32]W:	 [Step 3/3]   at JetBrains.Text.StringBuffer.get_Item(Int32 index)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Text.ProjectedBuffer.get_Item(Int32 index)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Util.StringSearcher.Find(IBuffer buffer, Int32 startOffset, Int32 endOffset)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.Impl.Shared.InjectedPsi.LiteralsInjectedFileContext.LiteralsInjectedElementCollector.InteriorShouldBeProcessed(ITreeNode element, HashSet`1 context)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants[TContext](ITreeNode root, IRecursiveElementProcessor`1 processor, TContext context)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessThisAndDescendants[TContext](ITreeNode root, IRecursiveElementProcessor`1 processor, TContext context)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.Impl.Shared.InjectedPsi.IndependentInjectedFileContext.CollectInjectedNodes()
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.Impl.Shared.InjectedPsi.IndependentInjectedFileContext.GetAllInjects()
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.Files.PsiFiles.AppendInjectedFiles(IFile originalFile, Type toLanguage, IReadOnlyCollection`1 providersToBuild, LocalList`1& results)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.Files.PsiFiles.<>c__DisplayClass37_1.<AppendInjectFiles>b__1(IFile domFile)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.CachedPsiValue`1.GetValue[TNode](TNode element, Func`2 calculator)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.Files.PsiFiles.AppendInjectFiles(IPsiSourceFile sourceFile, Type injectedLanguageType, DocumentRange range, LocalList`1& files)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.Files.PsiFiles.GetPsiFiles(IPsiSourceFile sourceFile, Type languageType, DocumentRange range, PsiLanguageCategories categories)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Psi.Files.PsiFiles.GetPsiFiles[TLanguage](IPsiSourceFile sourceFile, PsiLanguageCategories categories)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Daemon.Css.Impl.CssDaemonStageBase.CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.RunStage(IDaemonStage stage, DaemonProcessKind processKind, Action`2 commiter, IContextBoundSettingsStore contextBoundSettingsStore, JetHashSet`1 disabledStages)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass44_2.<DoHighlighting>g__Stage4(IDaemonStage stage)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass22_0.<EnqueueDependentJobs>b__2()
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass33_0.<Create>b__1(Object state)
[12:52:32]W:	 [Step 3/3]      at System.Threading.Tasks.Task.Execute()
[12:52:32]W:	 [Step 3/3] "
[12:52:32]W:	 [Step 3/3] 
[12:52:32]W:	 [Step 3/3] --- Outer ---
[12:52:32]W:	 [Step 3/3] 
[12:52:32]W:	 [Step 3/3] --- EXCEPTION #2/3 [AggregateException]
[12:52:32]W:	 [Step 3/3] Message = "One or more errors occurred."
[12:52:32]W:	 [Step 3/3] ExceptionPath = Root.InnerException
[12:52:32]W:	 [Step 3/3] ClassName = System.AggregateException
[12:52:32]W:	 [Step 3/3] InnerException = "Exception #1 at Root.InnerException.InnerException"
[12:52:32]W:	 [Step 3/3] HResult = COR_E_EXCEPTION=80131500
[12:52:32]W:	 [Step 3/3] Source = JetBrains.Platform.Core
[12:52:32]W:	 [Step 3/3] InnerExceptions.#0 = "Exception #1 at Root.InnerException.InnerException"
[12:52:32]W:	 [Step 3/3] StackTraceString = "
[12:52:32]W:	 [Step 3/3]   at JetBrains.Application.Threading.Tasks.TaskBarrier.DisposeUnmanagedResources()
[12:52:32]W:	 [Step 3/3]      at JetBrains.Util.SafeDisposable.DisposeInternal()
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass44_1.<DoHighlighting>b__2()
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Notifications.PerformanceUserNotifications.WithPerformanceNotification(TimeSpan performanceThreshold, String title, String body, Action action)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.DoHighlighting(DaemonProcessKind processKind, Action`1 commiter, IContextBoundSettingsStore contextBoundSettingsStore, Action onFastStagesCompleted)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.DoHighlighting(DaemonProcessKind processKind, Action`1 commiter, Action onFastStagesCompleted)
[12:52:32]W:	 [Step 3/3]      at JetBrains.ReSharper.Daemon.SolutionAnalysis.SolutionAnalysisServiceImpl.AnalyzeInvisibleFile(IPsiSourceFile file)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.<>c__DisplayClass17_0.<ExecuteSWEAUnderProgress>b__1()
[12:52:32]W:	 [Step 3/3]      at JetBrains.Util.Logging.Logger.CatchButOperationCanceledException(Action action)
[12:52:32]W:	 [Step 3/3] "
[12:52:32]W:	 [Step 3/3] 
[12:52:32]W:	 [Step 3/3] --- Outer ---
[12:52:32]W:	 [Step 3/3] 
[12:52:32]W:	 [Step 3/3] --- EXCEPTION #3/3 [LoggerException]
[12:52:32]W:	 [Step 3/3] Message = "One or more errors occurred."
[12:52:32]W:	 [Step 3/3] ExceptionPath = Root
[12:52:32]W:	 [Step 3/3] ClassName = JetBrains.Util.LoggerException
[12:52:32]W:	 [Step 3/3] InnerException = "Exception #2 at Root.InnerException"
[12:52:32]W:	 [Step 3/3] HResult = COR_E_APPLICATION=80131600
[12:52:32]W:	 [Step 3/3] StackTraceString = "
[12:52:32]W:	 [Step 3/3]   at JetBrains.Util.Logging.Logger.LogException(Exception ex)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Util.Logging.Logger.CatchButOperationCanceledException(Action action)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Progress.ProgressIndicatorExtensions.StartStop(IProgressIndicator progress, Int32 totalWorkUnits, String taskName, Action action)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.ExecuteSWEAUnderProgress(IProgressIndicator progress)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.<ExecuteSWEA>b__16_2(IProgressIndicator indicator)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Threading.ReentrancyGuard.Execute[TState,TResult](String name, TState state, Func`2 func)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.<>c__DisplayClass16_0.<ExecuteSWEA>b__1(IProgressIndicator progress)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.Common.Console.BatchTool.Progress.ToolTaskExecutor.ExecuteTask(String taskName, TaskCancelable cancelable, Action`1 task)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.ExecuteSWEA()
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.Run(IEnumerable`1 inspectScope, IProjectFile[] files, InspectCodeOutputFormat format, Boolean useAbsolutePaths, FileSystemPath outputFile)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain.Main(Lifetime lifetime, IThreading invocator, IComponentContainer container, IShellLocks shellLocks, ILogger logger, IInspectCodeSettings settings, IProductCommandLineArguments argumentsRaw)
[12:52:32]W:	 [Step 3/3]      at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[12:52:32]W:	 [Step 3/3]      at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[12:52:32]W:	 [Step 3/3]      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass0_0.<.ctor>b__0()
[12:52:32]W:	 [Step 3/3]      at JetBrains.Util.Logging.Logger.Catch(Action action)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Threading.JetDispatcher.Closure.Execute()
[12:52:32]W:	 [Step 3/3]      at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.DispatcherOperation.InvokeImpl()
[12:52:32]W:	 [Step 3/3]      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[12:52:32]W:	 [Step 3/3]      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[12:52:32]W:	 [Step 3/3]      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[12:52:32]W:	 [Step 3/3]      at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.DispatcherOperation.Invoke()
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.Dispatcher.ProcessQueue()
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[12:52:32]W:	 [Step 3/3]      at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[12:52:32]W:	 [Step 3/3]      at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
[12:52:32]W:	 [Step 3/3]      at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
[12:52:32]W:	 [Step 3/3]      at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[12:52:32]W:	 [Step 3/3]      at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[12:52:32]W:	 [Step 3/3]      at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
[12:52:32]W:	 [Step 3/3]      at JetBrains.DataFlow.Lifetimes.Using(Action`1 ?)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
[12:52:32]W:	 [Step 3/3]      at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Main(Assembly assembly, Type environmentZoneType, HostInfo hostInfo, IProductInfo productInfo, String[] args)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Run[TZone,TProductInfo](String productHostShortName, String[] args)
[12:52:32]W:	 [Step 3/3]      at JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)
[12:52:32]W:	 [Step 3/3] "

RSRP-464604: InspectCode returns different results even though source code has not changed.

$
0
0
Reporter Friedrich Brunzema (Friedrich.Brunzema) Friedrich Brunzema (Friedrich.Brunzema)
Created May 1, 2017 6:24:33 PM
Updated Oct 15, 2018 8:08:03 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Alex Berezoutsky (fergard)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2016.1.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Hi,
we're running a Continous Build using TeamCity and are running InspectCode as part of the build process. On one of the agents, we get this as part of InspectCode.exe, after the report was written.

[18:47:48][Step 1/1] Inspection report was written to C:\BuildAgent\work\9a6c7a7d553cd9c2\Metrics\StaticCodeAnalysis.xml
[18:47:48][Step 1/1]
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1] Warning: PlatformInfo must be found for platformId = '.NETFramework,Version=v4.6.2'
[18:47:48][Step 1/1]
[18:47:48][Step 1/1] ##teamcity[importData type='ReSharperInspectCode' path='C:\BuildAgent\work\9a6c7a7d553cd9c2\Metrics\StaticCodeAnalysis.xml']
[18:47:48][Step 1/1] Importing data from 'C:\BuildAgent\work\9a6c7a7d553cd9c2\Metrics\StaticCodeAnalysis.xml' (329.64 KB) with 'ReSharperInspectCode' processor
[18:47:48][Step 1/1] Won't handle tag Information
[18:47:48][Step 1/1] ##teamcity[buildStatisticValue key='ResharperErrors' value='134']
[18:47:48][Step 1/1] ##teamcity[buildStatisticValue key='ResharperWarnings' value='1078']
[18:47:48][Step 1/1] ##teamcity[buildStatisticValue key='ResharperSuggestions' value='531']
[18:47:48][Step 1/1] ##teamcity[buildStatisticValue key='ResharperPotentialCodeQualityIssues' value='497']
[18:47:48][Step 1/1] Publishing artifacts

Let me know if you have any ideas. I'm attaching a screenshot from TeamCity, and the build logs from build #115 and #116 - #115 is where the issue happens.

I don't have the XML output from InspectCode right now - we're changing the system to gather that when it happens again.

It could be an AgentConfiguration issue on our side as well (a version 1.0 agent vs a version 1.4 agent).

Best,

Friedrich Brunzema

F.

RSRP-427896: Code analysis is single threading (uses single core only)

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Nov 19, 2014 5:11:37 PM
Updated Oct 15, 2018 8:10:07 PM
Resolved Oct 15, 2018 12:16:24 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Mikhail Senkov (micha)
Priority Major
State Fixed
Type Feature
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Multithreading would definitely provide a major performance improvement. Especially at continuous integration servers like the ones we’re using, featuring 24 cores and code inspections taking more than 10 minutes after cache has been build.

RSRP-471853: Visual Studio not responding

$
0
0
Reporter Daniel Kaminski (windchsr) Daniel Kaminski (windchsr)
Created Oct 15, 2018 8:12:15 PM
Updated Oct 15, 2018 8:12:15 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

can not process agreement because VS hangs up. Please see image for details https://www.screencast.com/t/aeQ3ysTe8G

RSRP-471274: Remove tag WITHOUT promote child

$
0
0
Reporter Olga Rodygina (olgarodygina) Olga Rodygina (olgarodygina)
Created Aug 27, 2018 7:37:22 PM
Updated Oct 15, 2018 8:35:27 PM
Subsystem Html
Assignee Slava Trenogin (derigel)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471854: Exception during suspending

$
0
0
Reporter Igor Akhmetov (Igor.Akhmetov) Igor Akhmetov (Igor.Akhmetov)
Created Oct 15, 2018 9:14:47 PM
Updated Oct 15, 2018 9:14:47 PM
Subsystem Platform - VS Integration
Assignee Serge Baltic (baltic)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Latest R# from trunk:
---------------------------
ReSharper – Runtime Error – Technical Data
---------------------------
JetBrains ReSharper has encountered a runtime error.
Technical data follows.
Hint: Ctrl+C copies the text of system message boxes to Clipboard.
________________________________________________________________

There is no component container available in this context while requesting component JetBrains.TextControl.Actions.ITextControlActionExecuter.



--- EXCEPTION #1/2 [InvalidOperationException]

Message = “There is no component container available in this context while requesting component JetBrains.TextControl.Actions.ITextControlActionExecuter.”

ExceptionPath = Root.InnerException

ClassName = System.InvalidOperationException

HResult = COR_E_INVALIDOPERATION=80131509

Source = JetBrains.Platform.Shell

StackTraceString = “

at JetBrains.Application.DataContext.ApplicationDataConstantsExtensions.GetComponent[T](IDataContext dataContext)

at JetBrains.TextControl.Actions.TextControlActionBase.Update(IDataContext context, ActionPresentation presentation, DelegateUpdate nextUpdate)

at JetBrains.Application.UI.ActionsRevised.Handlers.ExecutableActionEvaluator.Evaluate(IAction handler, EvaluatedAction result, IDataContext context)

at JetBrains.ReSharper.Feature.Services.Actions.ServicesActionEvaluator.Evaluate(IAction handler, EvaluatedAction result, IDataContext context)

at JetBrains.Application.UI.ActionsRevised.Handlers.BoundAction.Evaluate(IDataContext context)

at JetBrains.Application.UI.ActionsRevised.Handlers.ActionHandlers.Evaluate(IActionDefWithId action, IDataContext context)

at JetBrains.Application.UI.ActionsRevised.Handlers.ActionHandlersEx.Evaluate(IActionDefWithId actionDef, IActionManager actions, IDataContext dataContext)

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()





--- Outer ---



--- EXCEPTION #2/2 [LoggerException]

Message = “There is no component container available in this context while requesting component JetBrains.TextControl.Actions.ITextControlActionExecuter.”

ExceptionPath = Root

ClassName = JetBrains.Util.LoggerException

Data.ManagedThreadName = <NULL>

InnerException = “Exception #1 at Root.InnerException”

HResult = COR_E_APPLICATION=80131600

StackTraceString = “

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)




---------------------------
OK
---------------------------

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 15, 2018 9:16:21 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-471855: False "Possible 'System.NullReferenceException'"

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Oct 15, 2018 10:52:36 PM
Updated Oct 15, 2018 10:53:11 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharper does not analyze C# code blow correctly and underlines “response” object with “possible null reference exception”.
if ((response?.CartContactList?.Count).GetValueOrDefault() == 0)
{
throw new Exception("Cart has no contacts.");
}



Another example:

RSRP-471595: Not initialized

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Sep 20, 2018 6:00:31 PM
Updated Oct 16, 2018 3:41:45 AM
Subsystem Platform - Project Model
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion VS10 (2010)
ReSharperPlatformVs10 Wave 183 Hive ProjectModel — 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

Not initialized

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Not initialized”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.RdCore
StackTraceString = “
 at JetBrains.Platform.RdFramework.Util.Maybe`1.OrElseThrow(Func`1 func)
 at JetBrains.Platform.RdFramework.Util.Maybe`1.OrElseThrow(Func`1 func)
 at JetBrains.Platform.RdFramework.Util.RProperty`1.get_Value()
 at JetBrains.Platform.RdFramework.Impl.RdProperty`1.get_Value()
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.Common.NuGetApi.get_IsNuGetAvailable()
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.ReferenceAnnotations.ReferenceAnnotationsPackageProvider.<GetActions>d__2.MoveNext()
 at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
 at JetBrains.ReSharper.Feature.Services.QuickFixes.QuickFixTable.CreateCustomWarningActions(IHighlighting highlighting, ISolution solution, DocumentRange highlightingRange)
 at JetBrains.ReSharper.Intentions.Bulbs.QuickFixesProvider.CollectQuickFixesUnderCaret(BulbItemsCache bulbItemsCache, IntentionsBulbItems intentionsBulbItems, ITextControl textControl, HighlightingsData highlightingsData)
 at JetBrains.ReSharper.Intentions.Bulbs.QuickFixesProvider.CollectActions(IntentionsBulbItems intentionsBulbItems, BulbItemsCache bulbItemsCache, ITextControl textControl, Lifetime caretPositionLifetime, IPsiSourceFile psiSourceFile, Object precalculatedData)
 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 = “Not initialized”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(S) #6”
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 = 10.0.40219.1
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 #5.JetPool(S) #6(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-470946: Cannot Advance beyond TotalWorkUnits.

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Jul 11, 2018 8:09:10 AM
Updated Oct 16, 2018 3:43:57 AM
Subsystem External Sources
Assignee Nikita Raba (nikita.raba)
Priority Critical
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _c4e60166 — JetBrains ReSharper Ultimate 2018.2 EAP 2 Build 182.0.20180706.95810-eap02

JetBrains ReSharper 182 Build 182.0.20180706.100921-eap02

Cannot Advance beyond TotalWorkUnits.

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Cannot Advance beyond TotalWorkUnits.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.Units = 1
HResult = COR_E_INVALIDOPERATION=80131509

— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Cannot Advance beyond TotalWorkUnits.”
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.2 EAP 2 Build 182.0.20180706.95810-eap02”
Data.SubProducts.#0 = “JetBrains ReSharper 182 Build 182.0.20180706.100921-eap02”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap2

Platform\VisualStudio:
    git::refs/heads/182-eap2::9f014d91e51bc72e022f44cb319e1913fc745c28

Data.VsVersion = 15.7.27703.2035
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.Progress.ProgressIndicatorBase.Advance(Double units)
 at JetBrains.Application.Progress.ProgressIndicatorBase.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.ProgressIndicatorBase.Stop()
 at JetBrains.Application.Progress.ProgressIndicatorBase.Dispose()
 at JetBrains.Symbols.Downloader.HttpDownloader.DelegatingIndicator.Dispose()
 at JetBrains.Symbols.Downloader.HttpDownloader.DownloadThread(IProgressIndicator indicator, String taskName)
 at JetBrains.Symbols.Downloader.HttpDownloader.SafeDownloadThread(IProgressIndicator indicator, String taskName)
 at JetBrains.Symbols.Downloader.HttpDownloader.<>c__DisplayClass3_1.<Execute>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Symbols.Downloader.HttpDownloader.<>c__DisplayClass3_1.<Execute>b__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-471856: Typo in markup attribute value: "Templated"

$
0
0
Reporter Satoshi Terada (terasato) Satoshi Terada (terasato)
Created Oct 16, 2018 4:31:34 AM
Updated Oct 16, 2018 4:32:02 AM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP wrongly regards Templated (Parent) as typo.
It should be added to the default dictionary.

RSRP-328381: Simplify Linq Expression makes it worse

$
0
0
Reporter Jake Ginnivan (ginnivanj) Jake Ginnivan (ginnivanj)
Created Jul 26, 2012 6:35:10 AM
Updated Oct 16, 2018 6:44:47 AM
Subsystem Code Analysis - Linq Tools
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State To be discussed
Type Unspecified
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Simplify linq expression often is a good thing, but this particular I think is not:

if (!_markdownList.Any(i => i.Id == item.Id))
// Does not exist

The simplification is
if (_markdownList.All(i => i.Id != item.Id))

This is harder to process and understand what it means. I don't think this should be a simplification

RSRP-471363: NUnit generic multi-fixture is not run correctly

$
0
0
Reporter Olga Rodygina (olgarodygina) Olga Rodygina (olgarodygina)
Created Sep 3, 2018 1:26:48 PM
Updated Oct 16, 2018 7:51:29 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2018.2.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
When using CTRL U+R (UnitTestRunFromContext):

  • Running all tests from Solution / Project level seems to work ok
  • However, for generic test fixture, when inside test class ("GenericWithFixtureSource.cs") or having selected the parent folder ("Generic") in the solution explorer, the tests are not run (=> The key combination (Ctrl+U, Ctrl+R) is bound to command (ReSharper_UnitTestRunFromContext) which is not currently available.

Upon loading the solution and using CTRL + U + R on the project it displays tests as shown in "RunAllFromProjectAfterOPeningSolution.PNG" (some test results are "inconclusive").

When I close VS and load the solution again and perform "Run All" on GenericWithFixtureSource.cs as shown in "GenericWithFixtureSource_AfterSolutionLoad.png" it opens a unit test session window, but it stays empty (no tests shown). Afterwards, it doesn't even offer to run the test anymore (see "GenericWithFixtureSource_AfterRunAll.png").

If I then perform a "Run All" on the solution it works as expected (see "RunAllFromSolution.PNG").
What still doesn't work is opening the class in the editor and performing CTRL U+R from there.
Selecting "GenericWithFixtureSource<T>" from the Unit Test Session window and performing CTRL U+R does work, however.




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 16, 2018 9:00:35 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.

Viewing all 106942 articles
Browse latest View live


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