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

RSRP-190948: Fix context action text

$
0
0
Reporter Olga Lukianova (olka) Olga Lukianova (olka)
Created Sep 15, 2010 5:29:59 PM
Updated Oct 16, 2018 2:42:03 PM
Resolved Oct 16, 2018 2:34:35 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Should be 'Make 'GetAccessRights' shared'

RSRP-191441: CA to split/join ASPX code regions

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Sep 25, 2010 1:31:43 AM
Updated Oct 16, 2018 2:46:40 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 5.0, 5.1, 5.1.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
<% some code %>
<% some more code %>
...to/from...

<% some code
some more code %>
Here's some actual code I found that could've used the ability to join touching regions that are separated only by whitespace:

<%     foreach (var post in Model.BlogPosts) {
%>
<% Html.RenderPartial("DisplayTemplates/BlogPost", post) %>
<% } %>

In fact, if there's only whitespace between two regions, then I'd like R# to suggest I join them.

ASPX is such a damn mess to work with that anything to make it simpler is appreciated, especially until R# supports the Razor view engine (which I'm looking forward to very much!)

RSRP-191463: CA "Use var" breaks code

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Sep 26, 2010 7:58:32 PM
Updated Oct 16, 2018 2:48:07 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Improvement
Fix version Backlog
Affected versions 5.1.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
double diveTimeMinutes = 0;
The CA "Use var" breaks this code. When a literal value is used, the type should be preserved. R# should convert to either of:

var diveTimeMinutes = 0d;
var diveTimeMinutes = 0.0;
The same is true for all other built-in types for which literal types may be expressed with suffices.

RSRP-191661: "Invert if" didn't reduced nesting

$
0
0
Reporter Evgeny Pasynkov (pasynkov) Evgeny Pasynkov (pasynkov)
Created Sep 30, 2010 3:29:11 PM
Updated Oct 16, 2018 3:10:56 PM
Resolved Oct 16, 2018 3:10:56 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
public IEnumerable<int> GetSequence()
{
int[] arr = GetArray();
if (arr != null)
{
foreach (int i in arr)
yield return i;
}
}

RSRP-471864: [Performance Report] IDE freezes when typing text

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Oct 16, 2018 3:19:46 PM
Updated Oct 16, 2018 3:19:47 PM
Subsystem No Subsystem
Assignee Sergey Kuks (coox)
Priority Show-stopper
State Open
Type Performance Problem
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Evaluator: False
OS Version: Microsoft Windows NT 10.0.16299.0
Product: ReSharperCpp, Version: 2018.2.20180912.160214
Time Zone: Belarus Standard Time

Description

I am experiencing constant freezes for about 2-5 seconds when typing text in my c++ project. (Yes it's a big project)
I've followed your guide https://resharper-support.jetbrains.com/hc/en-us/articles/206546919-Visual-Studio-with-ReSharper-is-slow and it doen't help match.
It will be great to receive any additional hints on improving performance, thank you!

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 3:37:17 PM
Subsystem ReSpeller
Assignee Artem Bukhonov (Artem.Bukhonov)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
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-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 3:38:11 PM
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-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 16, 2018 3:38:36 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
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-471853: Visual Studio not responding

$
0
0
Reporter Daniel Kaminski (windchsr) Daniel Kaminski (windchsr)
Created Oct 15, 2018 8:12:15 PM
Updated Oct 16, 2018 3:45:40 PM
Subsystem Licensing and Evaluation
Assignee Sergey Kuks (coox)
Priority Normal
State Waiting for Info
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-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 16, 2018 3:51:34 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-192976: Context Actions and QFixes should not override event in VB (VB does not support event overriding)

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Oct 13, 2010 6:12:31 PM
Updated Oct 16, 2018 3:55:00 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
using System;

public abstract class B
{
public abstract event Action E;
}
Class C
Inherits B ' Invoke 'Implement members'
End Class

Result:

Class C
Inherits B
Public Overrides Event E As Action ' error BC30243: 'Overrides' is not valid on an event declaration.
End Class

RSRP-462013: Unhandled exception while R# was suspended

$
0
0
Reporter Vasily Kirichenko (kot2008) Vasily Kirichenko (kot2008)
Created Dec 1, 2016 3:35:31 PM
Updated Oct 16, 2018 3:56:34 PM
Resolved Oct 16, 2018 3:56:34 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Obsolete
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

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.
________________________________________________________________

Index was outside the bounds of the array.



— EXCEPTION #1/2 [IndexOutOfRangeException]

Message = “Index was outside the bounds of the array.”

ExceptionPath = Root.InnerException

ClassName = System.IndexOutOfRangeException

HResult = COR_E_INDEXOUTOFRANGE=80131508

Source = mscorlib

StackTraceString = “

 at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

 at Microsoft.VisualStudio.FSharp.LanguageService.ColorStateLookup.ColorStateTable.Add(Int64 lexState)

 at Microsoft.VisualStudio.FSharp.LanguageService.ColorStateLookup.ColorStateTable.ColorStateOfLexState(Int64 lexState)

 at Microsoft.VisualStudio.Editor.Implementation.LanguageServiceClassificationTagger.GetStateAtEndOfLine(ITextSnapshotLine line)

 at Microsoft.VisualStudio.Editor.Implementation.LanguageServiceClassificationTagger.TryPopulateStartLineStateCache(Int32 lineNo)

 at Microsoft.VisualStudio.Editor.Implementation.LanguageServiceClassificationTagger.TryGetStartingStateForLine(Int32 lineNo)

 at Microsoft.VisualStudio.Editor.Implementation.TextDocData.GetColorStateAtStartOfLine(Int32 iLine, Int32& piState)

 at Microsoft.VisualStudio.FSharp.LanguageService.FSharpColorizer.GetLineInfo(IVsTextLines buffer, Int32 line, IVsTextColorState colorState)

 at Microsoft.VisualStudio.FSharp.LanguageService.SourceImpl.GetWordExtent(Int32 line, Int32 idx, WORDEXTFLAGS flags, Int32& startIdx, Int32& endIdx)

 at Microsoft.VisualStudio.FSharp.LanguageService.ViewFilter.GetWordExtent(Int32 line, Int32 index, UInt32 flags, TextSpan[] span)

 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.GetWordExtent(Int32 iLine, Int32 iCol, UInt32 dwFlags, TextSpan[] pSpan)

 at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromDebugger(IQuickInfoSession session, TextSpan[] dataBufferTextSpan, String& tipText)

 at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan& applicableToSpan)

 at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()

 at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()

 at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.<>c__DisplayClass12_0.<RetrySession>b__0(Object , EventArgs )

 at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)

 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)





— Outer —



— EXCEPTION #2/2 [LoggerException]

Message = “Index was outside the bounds of the array.”

ExceptionPath = Root

ClassName = JetBrains.Util.LoggerException

Data.ManagedThreadName = <NULL>

InnerException = “Exception #1 at Root.InnerException”

HResult = COR_E_APPLICATION=80131600

StackTraceString = “

 at JetBrains.Application.Environment.HostParameters.InitStdWindowsAppFxHostMixin.<>c__DisplayClass4.<JetBrains.Application.Environment.HostParameters.IInitAppHostMixin.InitHost>b__2(Object sender, DispatcherUnhandledExceptionEventArgs args)

 at System.Windows.Threading.DispatcherUnhandledExceptionEventHandler.Invoke(Object sender, DispatcherUnhandledExceptionEventArgs e)

 at System.Windows.Threading.Dispatcher.CatchException(Exception e)

 at System.Windows.Threading.Dispatcher.CatchExceptionStatic(Object source, Exception e)

 at System.Windows.Threading.ExceptionWrapper.CatchException(Object source, Exception e, Delegate catchHandler)

 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 at System.Windows.Threading.DispatcherOperation.InvokeImpl()

 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)

 at System.Windows.Threading.DispatcherOperation.Invoke()

 at System.Windows.Threading.Dispatcher.ProcessQueue()

 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)





OK

RSRP-471851: Completion: expect switch, but get Switch instead

$
0
0
Reporter Anna Milova (anna.milova) Anna Milova (anna.milova)
Created Oct 15, 2018 5:08:10 PM
Updated Oct 16, 2018 3:56:57 PM
Subsystem Complete Statement
Assignee Mikhail Senkov (micha)
Priority Critical
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-194438: Invalid "Convert part of body into LINQ-Expression" context action for method with ref parameter

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Oct 19, 2010 5:54:54 PM
Updated Oct 16, 2018 3:58:02 PM
Resolved Oct 16, 2018 3:58:02 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions 5.1.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Method that takes a ref parameter, and then uses that parameter inside an anonymous method.

See sample solution in attachment.

RSRP-471626: Exception on suspending R#

$
0
0
Reporter Tatyana Lunegova (lunega) Tatyana Lunegova (lunega)
Created Sep 25, 2018 4:26:03 PM
Updated Oct 16, 2018 3:58:38 PM
Resolved Oct 16, 2018 3:58:38 PM
Subsystem Platform - VS Integration
Assignee Serge Baltic (baltic)
Priority Show-stopper
State Duplicate
Type Bug
Fix version 2018.3
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
---------------------------
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.
________________________________________________________________

The lifetime has already been terminated. Object name: 'Lifetime'.



--- EXCEPTION #1/2 [ObjectDisposedException]

Message = “The lifetime has already been terminated.”

ExceptionPath = Root.InnerException

ClassName = System.ObjectDisposedException

HResult = COR_E_OBJECTDISPOSED=80131622

Source = JetBrains.Platform.RdCore

ObjectName = Lifetime

StackTraceString = “

at JetBrains.DataFlow.Lifetime.ReportTerminatedLifetime(String sAnotherLifetimeRelation)

at JetBrains.DataFlow.Lifetime.AttachNested(LifetimeDefinition defNested, Boolean isPossiblyAlreadyTerminated)

at JetBrains.DataFlow.Lifetimes.CreateIntersection2(ILog logger, Lifetime[] lifetimes)

at JetBrains.Util.Concurrency.UnguardedCallbackMerger.ExecuteOrQueueOrMerge(Lifetime lifetimeQueue, String name, Action F)

at JetBrains.VsIntegration.TextControl.VsTextControlCommon.SyncToVsUnguarded()

at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.VsTextControlScrollingDevTen.<>c__DisplayClass7_0.<InitEvents>b__0(Object sender, EventArgs args)

at System.EventHandler.Invoke(Object sender, EventArgs e)

at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnSizeChanged(Object sender, SizeChangedEventArgs e)

at System.Windows.SizeChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)

at System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)

at System.Windows.ContextLayoutManager.fireSizeChangedEvents()

at System.Windows.ContextLayoutManager.UpdateLayout()

at System.Windows.UIElement.UpdateLayout()

at System.Windows.Interop.HwndSource.SetLayoutSize()

at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)

at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)

at JetBrains.UI.CrossFramework.JetElementHost.OnHandleCreated(EventArgs e)





--- Outer ---



--- EXCEPTION #2/2 [LoggerException]

Message = “

The lifetime has already been terminated.

Object name: 'Lifetime'.



ExceptionPath = Root

ClassName = JetBrains.Util.LoggerException

Data.ManagedThreadName = <NULL>

InnerException = “Exception #1 at Root.InnerException”

HResult = COR_E_APPLICATION=80131600

StackTraceString = “

at JetBrains.UI.CrossFramework.JetElementHost.OnHandleCreated(EventArgs e)

at System.Windows.Forms.Control.WmCreate(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at JetBrains.UI.CrossFramework.JetElementHost.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)

at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)

at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)

at System.Windows.Forms.Control.CreateHandle()

at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

at System.Windows.Forms.Control.CreateControl()

at System.Windows.Forms.Control.ControlCollection.Add(Control value)

at JetBrains.VsIntegration.UI.WindowManagement.WinFormsToolWindowPane.AddControl(Control control)

at JetBrains.VsIntegration.UI.WindowManagement.WinFormsToolWindowPane.<>c__DisplayClass3_0.<.ctor>b__1()

at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)

at JetBrains.VsIntegration.UI.WindowManagement.WinFormsToolWindowPane.<.ctor>b__3_0(Lifetime lt, EitherControl value)

at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass26_0`1.<ForEachValue>b__0(Lifetime lf, TValue value, Object cookie)

at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass27_1`1.<ForEachValue>b__1(Lifetime lifetimeValue)

at JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass4_0.<Next>b__0(LifetimeDefinition definition, Lifetime lifetime)

at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILog logger)

at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)

at JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)

at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass27_0`1.<ForEachValue>b__0(PropertyChangedEventArgs`1 args)

at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)

at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.FireChange(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.VsIntegration.UI.WindowManagement.VsToolWindowFrame.<>c__DisplayClass11_1.<.ctor>b__10(Lifetime lifeSpawn)

at JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass4_0.<Next>b__0(LifetimeDefinition definition, Lifetime lifetime)

at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILog logger)

at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)

at JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)

at JetBrains.VsIntegration.UI.WindowManagement.VsToolWindowFrame.<>c__DisplayClass11_1.<.ctor>b__5()

at JetBrains.VsIntegration.UI.WindowManagement.VsToolWindowFrame.<>c__DisplayClass11_1.<.ctor>b__11(IAutomation old)

at JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F)

at JetBrains.VsIntegration.UI.WindowManagement.VsToolWindowFrame.<>c__DisplayClass11_1.<.ctor>b__6(PropertyChangedEventArgs`1 args)

at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)

at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.FireChange(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__1()

at JetBrains.DataFlow.Lifetime.Terminate()

at JetBrains.DataFlow.Lifetime.<>c__DisplayClass12_0.<AttachNested>b__0()

at JetBrains.DataFlow.Lifetime.Terminate()

at JetBrains.DataFlow.Lifetime.<>c__DisplayClass12_0.<AttachNested>b__0()

at JetBrains.DataFlow.Lifetime.Terminate()

at JetBrains.Application.Components.LifetimeValueResolver.LifetimeDescriptor.Dispose()

at JetBrains.Application.Components.SingletonDescriptor.DisposeImpl()

at JetBrains.Application.Components.SingletonDescriptor.System.IDisposable.Dispose()

at JetBrains.Application.Components.ComponentStorage.DisposeDescriptor(IComponentDescriptor descriptor)

at JetBrains.Application.Components.ComponentStorage.<>c__DisplayClass18_0.<RegisterDescriptors>b__0()

at JetBrains.DataFlow.Lifetime.Terminate()

at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_0`1.<ForEachItemCore>b__0(AddRemoveEventArgs`1 args)

at JetBrains.DataFlow.CollectionEvents`1.OnAcknowledgeSinkAddRemove(Action`1 handler, AddRemove addremove)

at JetBrains.DataFlow.CollectionEvents`1.<.ctor>b__11_1(Action`1 handler)

at JetBrains.DataFlow.Infra.SignalWithDelegates`1.OnAfterUnadvise(Action`1 handler)

at JetBrains.DataFlow.Signal`1.<>c__DisplayClass19_0.<AdviseCore>b__1()

at JetBrains.DataFlow.Lifetime.Terminate()

at JetBrains.DataFlow.SequentialLifetimes.SetCurrentLifetime(LifetimeDefinition lifetimeToSet)

at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass32_0.<WhenTrue>b__0(PropertyChangedEventArgs`1 args)

at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)

at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)

at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.set_Value(TValue value)

at JetBrains.Application.Environment.RunsProducts.<>c__DisplayClass1_1.<.ctor>b__0(PropertyChangedEventArgs`1 args)

at JetBrains.DataFlow.IPropertySignalEx.<>c__DisplayClass1_0`1.<Advise_FallingFront>b__0(PropertyChangedEventArgs`1 args)

at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)

at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)

at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)

at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass8_0`2.<FlowInto>b__0(PropertyChangedEventArgs`1 args)

at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)

at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)

at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.set_Value(TValue value)

at JetBrains.Application.ComposeVerdictWithPriority.UpdateActiveTellers[TVerdict](Lifetime lifetimeComponent, List`1 tellers, IProperty`1 propComposite)

at JetBrains.Application.ComposeVerdictWithPriority.<>c__DisplayClass5_0`1.<UpdateActiveTellers>b__0()

at JetBrains.DataFlow.IPropertySignalEx.<>c__DisplayClass10_0`1.<Advise_NoAcknowledgement>b__0(PropertyChangedEventArgs`1 args)

at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)

at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)

at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)

at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass8_0`2.<FlowInto>b__0(PropertyChangedEventArgs`1 args)

at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)

at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)

at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)

at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)

at JetBrains.Application.Environment.Components.SuspendResume.Suspend()

at JetBrains.VsIntegration.Shell.Package.VsPackageGeneralOptionsPage.<>c__DisplayClass6_0.<CreateView_ResumeOrSuspend>b__4(SuspendResume sr)

at JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F)

at JetBrains.VsIntegration.Shell.Package.VsPackageGeneralOptionsPage.<>c__DisplayClass6_0.<CreateView_ResumeOrSuspend>b__3()

at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)

at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action, TaskPriority priority)

at JetBrains.VsIntegration.Shell.Package.VsPackageGeneralOptionsPage.<>c__DisplayClass6_0.<CreateView_ResumeOrSuspend>b__0()

at JetBrains.Util.Logging.Logger.Catch(Action action)

at JetBrains.UI.Extensions.AvalonEx.<>c__DisplayClass39_0`1.<OnEvent>b__0(Object sender, RoutedEventArgs e)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)

at System.Windows.Controls.Primitives.ButtonBase.OnClick()

at System.Windows.Controls.Button.OnClick()

at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)

at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)

at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

at System.Windows.Input.InputManager.ProcessStagingArea()

at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

at Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource.Invoke(String verb, Object pvaIn, Object& pvaOut)

at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(String verb, Object pvaIn, Object& pvaOut)

at Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(Object parameter)

at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

at System.Windows.Threading.DispatcherOperation.InvokeImpl()

at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)

at System.Windows.Threading.DispatcherOperation.Invoke()

at System.Windows.Threading.Dispatcher.ProcessQueue()

at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)




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

RSRP-471828: Used Visual Studio shortcut to suspend resharper got this error

$
0
0
Reporter Ewin Hong (minoseah629) Ewin Hong (minoseah629)
Created Oct 12, 2018 8:04:47 PM
Updated Oct 16, 2018 3:58:38 PM
Subsystem Platform - VS Integration
Assignee Denis Korneev (Denis.Korneev)
Priority Show-stopper
State Submitted
Type Exception
Fix version No Fix versions
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion VS 2017 15.6

maybe be related to https://youtrack.jetbrains.com/issue/RSRP-471626


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.


The lifetime has already been terminated. Object name: 'Lifetime'.

--- EXCEPTION #1/2 [ObjectDisposedException]

Message = “The lifetime has already been terminated.”

ExceptionPath = Root.InnerException

ClassName = System.ObjectDisposedException

HResult = COR_E_OBJECTDISPOSED=80131622

Source = JetBrains.Platform.RdCore

ObjectName = Lifetime

StackTraceString = “

at JetBrains.DataFlow.Lifetime.ReportTerminatedLifetime(String sAnotherLifetimeRelation)

 at JetBrains.DataFlow.Lifetime.AttachNested(LifetimeDefinition defNested, Boolean isPossiblyAlreadyTerminated)

 at JetBrains.DataFlow.Lifetimes.CreateIntersection2(ILog logger, Lifetime[] lifetimes)

 at JetBrains.Util.Concurrency.UnguardedCallbackMerger.ExecuteOrQueueOrMerge(Lifetime lifetimeQueue, String name, Action F)

 at JetBrains.VsIntegration.TextControl.VsTextControlCommon.SyncToVsUnguarded()

 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.VsTextControlScrollingDevTen.<>c__DisplayClass7_0.<InitEvents>b__0(Object sender, EventArgs args)

 at System.EventHandler.Invoke(Object sender, EventArgs e)

 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnSizeChanged(Object sender, SizeChangedEventArgs e)

 at System.Windows.SizeChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

 at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

 at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

 at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

 at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

 at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)

 at System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)

 at System.Windows.ContextLayoutManager.fireSizeChangedEvents()

 at System.Windows.ContextLayoutManager.UpdateLayout()

 at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

 at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()

 at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

 at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

 at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)

 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]

Message = “

The lifetime has already been terminated.

Object name: 'Lifetime'.

ExceptionPath = Root

ClassName = JetBrains.Util.LoggerException

Data.ManagedThreadName = <NULL>

InnerException = “Exception #1 at Root.InnerException”

HResult = COR_E_APPLICATION=80131600

StackTraceString = “

at JetBrains.Application.Environment.HostParameters.InitStdWindowsAppFxHostMixin.<>c__DisplayClass0_0.<JetBrains.Application.Environment.HostParameters.IInitAppHostMixin.InitHost>b__0(Object sender, DispatcherUnhandledExceptionEventArgs args)

 at System.Windows.Threading.DispatcherUnhandledExceptionEventHandler.Invoke(Object sender, DispatcherUnhandledExceptionEventArgs e)

 at System.Windows.Threading.Dispatcher.CatchException(Exception e)

 at System.Windows.Threading.Dispatcher.CatchExceptionStatic(Object source, Exception e)

 at System.Windows.Threading.ExceptionWrapper.CatchException(Object source, Exception e, Delegate catchHandler)

 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 at System.Windows.Threading.DispatcherOperation.InvokeImpl()

 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)

 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)

 at System.Windows.Threading.DispatcherOperation.Invoke()

 at System.Windows.Threading.Dispatcher.ProcessQueue()

 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)


OK

RSRP-194560: Context action and hint for "replace with String.IsNullOrEmpty" are different

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Oct 20, 2010 1:28:33 PM
Updated Oct 16, 2018 4:01:49 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Bug
Fix version Backlog
Affected versions 5.1.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
if (str == null || str == "" )
return;
Hint suggestion for the expression is "replace with String.IsNullOrEmpty".
Context action for it is "replace with string.IsNullOrEmpty", which is not the same.

Most users want the context action to act with "String", not "string".

RSRP-471841: Resharper test runner changes ServicePointManager.SecurityProtocol to non-default value

$
0
0
Reporter Oskar Berggren (Oskar.Berggren) Oskar Berggren (Oskar.Berggren)
Created Oct 14, 2018 4:04:00 PM
Updated Oct 16, 2018 4:02:06 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

Environment

Windows 7 with .Net 4.7.2 installed. The registry settings to enable strong crypto and TLS 1.1 and TLS 1.2 by default have not been set. Per MS documentation, we therefore expect the default enabled security protocols be SSL3 and TLS 1.0.

Problem

It seems the Resharper test runner will change the value of ServicePointManager.SecurityProtocol to include TLS 1.2 even on systems where that was not included by default. This can cause test failures that doesn't occur when using NUnit's own test runner which doesn't modify ServicePointManager.SecurityProtocol.

I was able to run these test cases on 2018-07-17 with the Reshaper I had at the time, which was a fairly recent version but might not have been the absolute latest version.

When testing this week, with Resharper 2018.2.3, it suddenly fails and after FAR too many hours spent investigating why it fails, and why it doesn't behave as MS documentation seems too indicate (regarding default values), it seems that the culprit is Resharper's test runner.

To avoid confusion, I think Resharper should not adjust ServicePointManager.SecurityProtocol in processes used to run the developer's own code, such as test cases.

Background

I have system tests that target .Net 4.0 that needs to talk to a third-party server over SSL/TLS. The server agrees to use TLS 1.2 if the connecting client suggests it, but it has a really old certificate that uses MD5 as signature algorithm. The vendor is currently not able to replace this, and it's in any case only used for testing purposes and not widely available so the relative insecurity doesn't matter much.

However, if the .Net-based client test case is allowed to attempt use of TLS 1.2, the server will agree but then the client will abort the connection. This is because .Net uses sChannel, and sChannel will, at least in some circumstances, reject MD5 signed server certificates when TLS 1.2 is in use. This behaviour also occurs in IE11, since that also uses sChannel. IE11 will, however, then retry with TLS 1.0 which .Net will not do on it's own.

For an application targeting .Net 4.0 we observe:

  • When run as console application, or in NUnit's test runner (v2.6.4), the default value of ServicePointManager.SecurityProtocol will be 0x0F0, which means SSL 3 and TLS 1.0.
    It will successfully connect to the server using TLS 1.0. If we manually enable TLS 1.2 in ServicePointManager.SecurityProtocol, it will attempt to use TLS 1.2 and fail.

  • The same application run in Resharper's test runner will indicate the initial value of ServicePointManager.SecurityProtocol as 0xFC0, which means TLS 1.0, 1.1 and 1.2.
    Therefore the application will attempt to use TLS 1.2 and fail.

If we compile the same application for targeting .Net 4.7.2 (and NUnit 3.11) we observe

  • When run as console application, the default value of ServicePointManager.SecurityProtocol will be 0x000, which means "System default".
    Because we haven't enabled TLS 1.2 in the registry, we expect this to effectively mean SSL 3 and TLS 1.0, which seems to be confirmed by the fact that the test
    succeeds. Again, if we manually set ServicePointManager.SecurityProtocol to something involving TLS 1.2, it will attempt to use TLS 1.2 and fail.

  • When run in Resharper's test runner it will also indicate the initial value of ServicePointManager.SecurityProtocol as 0x000, which means "System default". The test
    then effectively uses TLS 1.0 and succeeds.

Reproducing

The following test case can be used to print the value of ServicePointManager.SecurityProtocol as soon as control is handed to the actual test code:

[TestFixture]
public class SslTests
{
    [Test]
    public void PrintAllowedSecurityProtocols()
    {
        Console.WriteLine("Allowed security protocols: {0} ({1:X})",
            ServicePointManager.SecurityProtocol,
            (int)ServicePointManager.SecurityProtocol);
    }
}

Output I get:

.Net 4.0 target, NUnit 2.6.4, NUnit test runner: Allowed security protocols: Ssl3, Tls (F0)
.Net 4.0 target, NUnit 2.6.4, Reshaper test runner: Allowed security protocols: Tls, Tls11, Tls12 (FC0)

RSRP-195039: New VB CA required: "Replace IF with body"

$
0
0
Reporter Alexander Zverev (alexander.zverev) Alexander Zverev (alexander.zverev)
Created Oct 21, 2010 5:40:23 PM
Updated Oct 16, 2018 4:05:06 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Before CA:
  If x > 0
xxxx
nnnnn
zzzzz
end if

After CA:
     xxxx
nnnnn
zzzzz

In C# we always have '{}', but in VB - not

RSRP-195529: "Add parameter to " not available when optional parameters used

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Oct 25, 2010 3:37:47 AM
Updated Oct 16, 2018 4:11:01 PM
Resolved Oct 16, 2018 4:11:01 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Feature
Fix version No Fix versions
Affected versions 5.1.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
There are two scenarios here.



This first one is an inconsistency with R#'s behaviour. A CA isn't available if the method includes optional parameters, but there's no reason it couldn't be.

public void Test(string foo, int i = 1) {}

public void User()
{
Test("Foo", "Bar"); // error on "Bar"
}
R# offers 'Create overload for Type.Test' and some conversions from int to string. Can we have 'Add parameter to Type.Test', giving this?

public void Test(string foo, string bar, int i = 1) {}
Other usages may have to be updated to make implicit arguments of 'i' explicit.



public void Test(string foo) {}

public void User()
{
Test("Foo", bar:"Bar"); // error on bar
}
R# offers 'Create overload for Type.Test'. Can we have 'Add parameter to Type.Test', giving this?

public void Test(string foo, string bar) {}
When adding parameters from such usages, I'd like an additional CA to avoid updating other usages by making this new parameter optional – 'Add optional parameter to Type.Test':

public void Test(string foo, string bar = "Bar") {}
Viewing all 106942 articles
Browse latest View live


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