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

RSRP-470574: Cannot delete an object ID without reopening a data tip

$
0
0
Reporter Anna Milova (anna.milova) Anna Milova (anna.milova)
Created Jul 11, 2018, 5:49:49 PM
Updated Aug 1, 2019, 5:31:31 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Normal
State Submitted
Type Bug
Fix version 2019.3
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
  • start debugging
  • open a data tip
  • open context menu for an item
  • make an object ID
  • without closing the data tip, open context menu for the same item
expected:
  • a user can delete this object ID
actual:
  • only "make object ID" option is available


deleting object ID is available only after the reopening of a data tip

RSRP-473038: error BC30451: 'Count' is not declared. It may be inaccessible due to its protection level.

$
0
0
Reporter Alexandra Guk (Alexandra.Guk) Alexandra Guk (Alexandra.Guk)
Created Jan 18, 2019, 1:34:46 PM
Updated Aug 1, 2019, 5:31:46 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Normal
State Submitted
Type Bug
Fix version 2019.3
Affected versions 2018.3.1
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

When Tools/Debugger/DataTips/Override VS DataTips with ReSharper DataTips is enabled if you hover over the property of an object (for example, the .Count property of a collection) you will receive this in the tooltip:
error BC30451: 'Count' is not declared. It may be inaccessible due to its protection level.
However, if you hover over only the first letter of the property, you get the property's value.

Example code to reproduce:

Module Program
    Sub Main(args As String())
        Dim salmons As New List(Of String)
        salmons.Add("chinook")
        salmons.Add("coho")
        salmons.Add("pink")
        salmons.Add("sockeye")
        If (salmons.Count > 0) Then
            For Each salmon As String In salmons
                Console.Write(salmon & " ")
            Next
        End If

    End Sub
End Module

RSRP-470120: ReSharper DataTips shows BC30451: ... Not declared.

$
0
0
Reporter Dmitri Peredera (Muhomorik) Dmitri Peredera (Muhomorik)
Created Jun 8, 2018, 10:49:06 AM
Updated Aug 1, 2019, 5:31:48 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Normal
State Submitted
Type Bug
Fix version 2019.3
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

Hello,
I am having problems with R# data tips with some variables.

Tooltip shows: BC30451: variable is not declared. It may be inaccessible due to its protection level."
VS2017 shows the same value without problems.
See the screenshot.

/ Best regards

RSRP-471159: COM object that has been separated from its underlying RCW cannot be used

$
0
0
Reporter Alexander Petrovsky (apetrov2) Alexander Petrovsky (apetrov2)
Created Aug 20, 2018, 3:25:23 PM
Updated Aug 1, 2019, 5:32:16 PM
Resolved Aug 1, 2019, 5:32:16 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Critical
State Fixed
Type Exception
Fix version 2019.2
Affected versions 2018.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
Message = “COM object that has been separated from its underlying RCW cannot be used.”
ExceptionPath = Root.Exceptions.#00.InnerException.InnerException
ClassName = System.Runtime.InteropServices.InvalidComObjectException
HResult = COR_E_INVALIDCOMOBJECT=80131527
Source = mscorlib
StackTraceString = “
 at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
 at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
 at Microsoft.VisualStudio.Debugger.Interop.IDebugProperty2.EnumChildren(enum_DEBUGPROP_INFO_FLAGS dwFields, UInt32 dwRadix, Guid& guidFilter, enum_DBG_ATTRIB_FLAGS dwAttribFilter, String pszNameFilter, UInt32 dwTimeout, IEnumDebugPropertyInfo2& ppEnum)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.DebugProperty2.BuildChildren()
 at JetBrains.PsiFeatures.VisualStudio.Debugger.DebugDataTipDescriptor.DebugDataTipTreeModel.<>c__DisplayClass9_0.<BuildOutgoing>b__0()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()


— Outer —

— EXCEPTION #02/56 [JetDispatcherActionException]
Message = “Error executing dispatcher action BuildChildren on :1. COM object that has been separated from its underlying RCW cannot be used.”
ExceptionPath = Root.Exceptions.#00.InnerException
ClassName = JetBrains.Threading.JetDispatcherActionException
Data.Dispatcher = JetDispatcher(:1)
Data.ActionName = BuildChildren
InnerException = “Exception #01 at Root.Exceptions.#00.InnerException.InnerException”
HResult = COR_E_APPLICATION=80131600
Source = JetBrains.Platform.Core
StackTraceString = “at JetBrains.Threading.JetDispatcher.Closure.Execute()”

— Outer —

— EXCEPTION #03/56 [LoggerException]
Message = “Error executing dispatcher action BuildChildren on :1. COM object that has been separated from its underlying RCW cannot be used.”
ExceptionPath = Root.Exceptions.#00
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
InnerException = “Exception #02 at Root.Exceptions.#00.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 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)
 at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.InternalPumpMessagesOnce()
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.PumpMessagesOnce()
 at JetBrains.IntegrationTestHelpers.IntegrationTestHelpers.DebugSession.Dispose()
 at JetBrains.ReSharper.VSIntegrationTests.Debugger.DataTipsTest.<>c.<DataTipIsExpandable>b__5_0()
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at JetBrains.IntegrationTestsServer.Server.IntegrationTestsServer.<>c__DisplayClass25_0.<<RunTest_InvokeBody>b__0>d.MoveNext()
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
 at JetBrains.IntegrationTestsServer.Server.IntegrationTestsServer.<>c__DisplayClass25_0.<RunTest_InvokeBody>b__0()
 at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher[T](Func`1 action)
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass34_0`1.<Create>b__1(Object state)
 at System.Threading.Tasks.Task`1.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.JetDispatcherTaskScheduler.<>c__DisplayClass8_0.<QueueTask>b__0()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass18_0.<BeginInvokeCore>b__0()
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 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)

RSRP-470738: Long list of locals displayed in editor gets cut off.

$
0
0
Reporter Maxmilian Laurenz (pixel42) Maxmilian Laurenz (pixel42)
Created Jul 24, 2018, 6:00:07 PM
Updated Aug 1, 2019, 5:32:35 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Normal
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions 2018.1
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

The feature described first in https://blog.jetbrains.com/dotnet/2017/11/21/resharper-2017-3-brings-debugger-editor/ has a bug. If there are many locals displayed a part of the info vanished on the right. Could you extend the scrollbar so you can see all info? Cheers!

RSRP-473366: Local variables values are not shown in Unity projects

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Feb 12, 2019, 1:50:17 AM
Updated Aug 1, 2019, 5:32:40 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Major
State Submitted
Type Bug
Fix version 2019.3
Affected versions 2018.3.2, 2018.3.3
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
1. Install Unity tools for VS
2. Start Unity as administrator (so you can open files in VS from within Unity) and open project "DemoUnityProject"
3. In the project tab in Unity, and double click the file Assets\DemoScript; file should now be opened in VS
4. In VS, set breakpoint at variable "setBreakpointHere" and attach debugger to Unity
5. Go back to Unity and in the project tab, open the scene Assets\Scenes\SampleScene
6. Start the sample scene, Unity should now automatically execute the code in the demo script and the breakpoint should be hit
7. Switch over to VS

Result: local variables values aren't displayed inline.

RSRP-473874: [Performance Report] Performance problems while debugging

$
0
0
Reporter Andreas Seibt (luedi) Andreas Seibt (luedi)
Created Mar 14, 2019, 11:15:56 AM
Updated Aug 1, 2019, 5:32:49 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Critical
State Submitted
Type Performance Problem
Fix version Backlog
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

Evaluator: False
OS Version: Microsoft Windows NT 10.0.17763.0
Product: ReSharper, Version: 2018.3.20190304.45354
Time Zone: Mitteleuropäische Zeit

Description
Working with VS2019 RC2 Enterprise. I have a solution which uses NHibernate to access a local SQL-Server database. The performance on processing LINQ queries is bad, when i debug in single step mode (via F10). First time i step through the performance is good. The second time i step through the same method it takes much longer until the rstatement is processed. Also VS seems to hang while processing the return statement.

Here is a sample LINQ statement:

public Price GetPriceForAccountingMonth(ISession transactionSession, Price pCriteria)
{
try
{
int? cavernId = TransformCavernId(pCriteria.CavernId);

var query = transactionSession.Query<Price>();
var result = (from x in query
       where x.Id.Version == pCriteria.Id.Version
          && x.Id.Year == pCriteria.Id.Year
          && x.Id.Month == pCriteria.Id.Month
          && x.PriceTypeDB == pCriteria.PriceTypeDB
          && x.StorageId == pCriteria.StorageId
          && x.CavernId == cavernId
          && (x.ApprovalStateDB == pCriteria.ApprovalStateDB || pCriteria.ApprovalState == ApprovalStates.Incomplete)
          orderby x.Id.SerialNumber descending 
       select x).FirstOrDefault();
return result;

}
catch(Exception e)
{
GlobalConfig.Instance.LogError(string.Format(ErrorMessages.ErrQueryDataFailed, "PriceDataService", "GetPriceForAccountingMonth"), e);
throw new QueryFailedException("PriceDataService", "GetPriceForAccountingMonth", e);
}
}

RSRP-475743: Trying to start stack trace update request with Status Rejected

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Feb 26, 2019, 6:46:53 PM
Updated Aug 1, 2019, 5:47:18 PM
Subsystem Stack Trace Explorer
Assignee Arseny Chernyaev (Arseny.Chernyaev)
Priority Critical
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

ReSharperPlatformVs15 Wave 191 Hive _eff7ddd8 — JetBrains ReSharper Ultimate 2019.1 EAP 1 D Build 191.0.20190226.43309-eap01d

JetBrains dotCover 2019.1 EAP 1 D Build 2019.1.20190226.75059-eap01d
JetBrains dotMemory 2019.1 EAP 1 D Build 2019.1.20190226.75112-eap01d
JetBrains dotTrace 2019.1 EAP 1 D Build 2019.1.20190226.75115-eap01d
JetBrains ReSharper 2019.1 EAP 1 D Build 2019.1.20190226.74511-eap01d
JetBrains ReSharper C++ 2019.1 EAP 1 D Build 2019.1.20190226.74528-eap01d
JetBrains TeamCity Add-in 2019.1 EAP 1 D Build 2019.1.20190226.74524-eap01d

Trying to start stack trace update request with Status Rejected

--- EXCEPTION #1/1 [LoggerException]
Message = “Trying to start stack trace update request with Status Rejected”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2019.1 EAP 1 D Build 191.0.20190226.43309-eap01d”
Data.SubProducts.#0 = “JetBrains dotCover 2019.1 EAP 1 D Build 2019.1.20190226.75059-eap01d”
Data.SubProducts.#1 = “JetBrains dotTrace 2019.1 EAP 1 D Build 2019.1.20190226.75115-eap01d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2019.1 EAP 1 D Build 2019.1.20190226.74528-eap01d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2019.1 EAP 1 D Build 2019.1.20190226.74524-eap01d”
Data.SubProducts.#4 = “JetBrains ReSharper 2019.1 EAP 1 D Build 2019.1.20190226.74511-eap01d”
Data.SubProducts.#5 = “JetBrains dotMemory 2019.1 EAP 1 D Build 2019.1.20190226.75112-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
git::refs/heads/191::4cfd8145c936e1159394d0f187b814f6c9c9e297

Platform\VisualStudio:
git::refs/heads/191::34de08c8f8d278b1f3e33a25a2be84c66a9a680c

Data.VsVersion = 15.9.28307.423
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.Logging.Logger.Fail(String messageText)
at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.StackTraceUpdateStateToken.Start()
at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.StackTraceHighlightTextReadActivity.Start()
at JetBrains.Application.Threading.InterruptableReadActivity.DoStart()
at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.StackTraceUpdateManager.StartNextRequest(StackTraceUpdateStateToken token)
at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.StackTraceHighlightTextReadActivity.<OnInterrupt>b__26_0()
at JetBrains.Threading.TimedActionsHost.TimedAction.Execute()
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.<>c__DisplayClass18_0.<BeginInvokeCore>b__0()
at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
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)


RSRP-475744: Collection was modified; enumeration operation may not execute.

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Apr 9, 2019, 3:50:21 PM
Updated Aug 1, 2019, 5:47:18 PM
Subsystem Stack Trace Explorer
Assignee Arseny Chernyaev (Arseny.Chernyaev)
Priority Critical
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

ReSharperPlatformVs16 Wave 191 Hive _dd58879f — JetBrains ReSharper Ultimate 2019.1 EAP 5 Build 191.0.20190404.123435-eap05

JetBrains ReSharper 2019.1 EAP 5 Build 2019.1.20190404.125914-eap05

Collection was modified; enumeration operation may not execute.

--- EXCEPTION #1/2 [InvalidOperationException]
Message = “Collection was modified; enumeration operation may not execute.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = mscorlib
StackTraceString = “
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List1.Enumerator.MoveNextRare() at System.Collections.Generic.List1.Enumerator.MoveNext()
at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.StackTraceVisitor.VisitCompositeNode(CompositeNode node)
at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.StackTraceHighlightTextReadActivity.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 = “Collection was modified; enumeration operation may not execute.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(S) #3”
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2019.1 EAP 5 Build 191.0.20190404.123435-eap05”
Data.SubProducts.#0 = “JetBrains ReSharper 2019.1 EAP 5 Build 2019.1.20190404.125914-eap05”
Data.SccRevisionEnv = “
Platform\Core\Shell:
git::refs/heads/191-eap5::adaf4c187394e8007c0374d03a1720ce06f0a134

Platform\VisualStudio:
git::refs/heads/191-eap5::a80948ed6b5fb3b392e44e0db9ca1cbed720d115

Data.VsVersion = 16.0.28729.10
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
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__DisplayClass39_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 #3.JetPool(S) #3(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-301359: Add sort by option for unit tests

$
0
0
Reporter Gennadii Donchyts (donchyts) Gennadii Donchyts (donchyts)
Created May 11, 2012, 12:34:31 PM
Updated Aug 1, 2019, 6:07:04 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
Currently ReSharper Unit Test Sessions window allows groupping of tests by category, namespace, etc.

Additionally to that Sort By Time option need to be added to detect slow tests faster.

Also in this case Group By should be optional (sort all tests by time it takes to run them).

GroupBy: project, SortBy: time

ProjectA
TestClass1.Test2 00:00:01.0
TestClass1.Test1 00:00:02.0
TestClass1.Test3 00:00:03.0
ProjectB
TestClass2.Test2 00:00:01.0
TestClass2.Test1 00:00:00.5

GroupBy: none, SortBy: time

ProjectB.TestClass2.Test1 00:00:00.5
ProjectA.TestClass1.Test2 00:00:01.0
ProjectB.TestClass2.Test2 00:00:01.0
ProjectA.TestClass1.Test1 00:00:02.0
ProjectA.TestClass1.Test3 00:00:03.0

RSRP-475285: sort UT by declared order

$
0
0
Reporter Kirill Falk (kfalk) Kirill Falk (kfalk)
Created Jul 3, 2019, 10:56:02 AM
Updated Aug 1, 2019, 6:07:04 PM
Resolved Aug 1, 2019, 6:07:04 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Duplicate
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

RSRP-475289: Unit tests operations (e.g. add to session) not aware of partial classes

$
0
0
Reporter Shay Rojansky (Shay.Rojansky) Shay Rojansky (Shay.Rojansky)
Created Jul 2, 2019, 2:23:34 PM
Updated Aug 1, 2019, 6:10:33 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Usability Problem
Fix version 2019.3
Affected versions 2019.1.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

It is sometimes useful to have a large partial class with many tests split across several files. When performing operations at the class level (e.g. create session), Rider adds issues from the entire class and not just the partial files clicked.

RSRP-475290: Unit tests should not be grouped by declaring type or fact vs. theory

$
0
0
Reporter Shay Rojansky (Shay.Rojansky) Shay Rojansky (Shay.Rojansky)
Created Jul 2, 2019, 2:28:49 PM
Updated Aug 1, 2019, 6:10:49 PM
Subsystem Unit Testing
Assignee Andrey Akinshin (Andrey.Akinshin)
Priority Normal
State Submitted
Type Usability Problem
Fix version No Fix versions
Affected versions 2019.1.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

In many cases, a base class containing test cases is extended for specific implementations. Some tests are overridden in the extending class, while others aren't, based on needs. In both the unit test explorer and session tabs, it seems that first the tests defined (i.e. overridden) on the subclass are shown, followed by those from the superclass; the latter are also prefixed with the name of the superclass. This makes it quite difficult to navigate and find tests, as one must know whether a specific test was overriden or not. It seems that a simple alphabetical sort would work best here (at least optionally).

Similarly, it seems that with xunit, facts (simple tests) are sorted before theories. This again seems like a detail that shouldn't be very relevant for finding the test in the tabs.

RSRP-475476: Unit Test: Cannot Launch Debugger HResult 89710016

$
0
0
Reporter Anna Milova (anna.milova) Anna Milova (anna.milova)
Created Jul 12, 2019, 3:42:34 PM
Updated Aug 1, 2019, 6:18:55 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2019.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch


Failed to start debugger session "Unit-Testing debug session". HResult: 89710016. The operation completed successfully

--- EXCEPTION #1/2 [Win32Exception]
Message = “The operation completed successfully”
ExceptionPath = Root.InnerException
NativeErrorCode = 0
ClassName = System.ComponentModel.Win32Exception
HResult = E_FAIL=EFail=80004005

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Failed to start debugger session "Unit-Testing debug session". HResult: 89710016. The operation completed successfully”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2019.2 EAP 4 D Build 192.0.20190709.0-eap04d”
Data.SubProducts.#0 = “JetBrains ReSharper 2019.2 EAP 4 D Build 2019.2.20190709.0-eap04d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/192-am-fixes::e2701332b4d0903854ffd8d81821c9a97119c5bc

Data.VsVersion = 15.9.28307.586
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.ILoggerEx.Error[T1,T2,T3](ILogger this, Exception ex, String message, T1 t1, T2 t2, T3 t3)
at JetBrains.PsiFeatures.VisualStudio.Core.UnitTesting.VsDebuggerFacade.<>c__DisplayClass16_0.<RunDebuggerSession>b__0(Lifetime lt)
at JetBrains.Lifetimes.Lifetime.Using(Action`1 action)
at JetBrains.PsiFeatures.VisualStudio.Core.UnitTesting.VsDebuggerFacade.RunDebuggerSession(Lifetime lifetime, String name, ISolution solution, DebugSessionDescriptor debugSessionDescriptor, Action onFinish)
at JetBrains.ReSharper.UnitTestFramework.DebugHostController.StartProcess(ProcessStartInfo startInfo, IUnitTestRun run, ILogger logger)
at JetBrains.ReSharper.UnitTestFramework.Launch.UnitTestLaunch.HostControllerWithLogging.StartProcess(ProcessStartInfo startInfo, IUnitTestRun run, ILogger logger)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.New.TestWindow.VsTestEngine.Execution.Run(ProcessStartInfo startInfo, ILogger logger)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.New.TestWindow.VsTestEngine.Execution.Start(VsTestRuntimeEnvironment env, ILogger logger, IDictionary`2 environmentVariables)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.New.TestWindow.TestWindowMsTestRunner.StartExecutionEngine()
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.New.TestWindow.TestWindowMsTestRunner.<Initialize>b__13_0()
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.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

RSRP-475487: NUnit tests with the same name are not shown

$
0
0
Reporter Yurii Kostyukov (columpio) Yurii Kostyukov (columpio)
Created Jul 13, 2019, 5:17:16 PM
Updated Aug 1, 2019, 6:19:23 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2019.2, 2019.1, 2018.3.4
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

When trying to launch in Rider NUnit tests with equal names but with different type arguments - all tests are executed (reachable in debugger) but only one test is shown (even in "Explorer").
RSRP-419137 and DCVR-6894 might be related, however they are resolved and the bug is still reachable.


RSRP-475656: cleanupcode.exe Crashes on Duplicate Filenames in Solution

$
0
0
Reporter Carsten Jendro (ceejay) Carsten Jendro (ceejay)
Created Jul 26, 2019, 2:43:02 PM
Updated Aug 1, 2019, 6:22:37 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Slava Trenogin (derigel)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2019.2, 2019.1.3
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

On Large Solutions when Filenames occures Multiple times in the same Solution cleanupcode.exe crashes or hangs with > 30gb memory consumption

I am not Shure but the problems most times occures on files like "AssemblyInfo.cs", "Programm.cs", "Reference.cs" or other often used Filenames.

First there comes a lot of warnings about inconsitent caches
Later there comes more and more Exceptions on files with inconsitent caches

then memory consumption getting higher and higher and then it crashes completely.

Console looks like

<WindowsServices>\<Project1>\Properties\AssemblyInfo.cs
Warning: Inconsistent caches for file AssemblyInfo.cs: cached=1416 actual=1513. Please, describe how this file could be changed.
...
<WindowsServices>\<Project2>\Properties\AssemblyInfo.cs
Warning: Inconsistent caches for file AssemblyInfo.cs: cached=1394 actual=1491. Please, describe how this file could be changed.
...
<WindowsServices>\<Project3>\Properties\AssemblyInfo.cs - JavaScript decoration
Warning: Inconsistent caches for file AssemblyInfo.cs: cached=1408 actual=1505. Please, describe how this file could be changed.
...
<WindowsServices>\<Project30>\Connected Services\FooService\Reference.cs - Applying code style
Warning: Inconsistent caches for file Reference.cs: cached=226402 actual=296540. Please, describe how this file could be changed.
...
<WindowsServices>\<Project30>\Connected Services\FooService\Reference.cs
StartIndex darf nicht kleiner als Null sein. Parametername: startIndex

--- EXCEPTION #1/2 [ArgumentOutOfRangeException]
Message = "StartIndex darf nicht kleiner als Null sein."
ExceptionPath = Root.InnerException
ClassName = System.ArgumentOutOfRangeException
Data.ThreadLocalDebugInfo = "Code Cleanup"
HResult = COR_E_ARGUMENTOUTOFRANGE=80131502
Source = mscorlib
ParamName = startIndex
StackTraceString = "
  bei System.String.Substring(Int32 startIndex, Int32 length)
     bei JetBrains.Text.StringBuffer.GetText(TextRange range)
     bei JetBrains.Text.ProjectedBuffer.GetText(TextRange range)
     bei JetBrains.ReSharper.Psi.CSharp.Parsing.CSharpTokenType.IdentifierNodeType.Create(IBuffer buffer, TreeOffset startOffset, TreeOffset endOffset
)
     bei JetBrains.ReSharper.Psi.CSharp.Parsing.CSharpMissingTokensInserter.ProcessLeafElement(TreeElement root)
     bei JetBrains.ReSharper.Psi.Parsing.MissingTokenInserterBase.Run(TreeElement root)
     bei JetBrains.ReSharper.Psi.CSharp.Parsing.CSharpMissingTokensInserter.Run(TreeElement node, ILexer lexer, ITokenOffsetProvider offsetProvider, B
oolean trimTokens, PreProcessorParser preProcessorParser, SeldomInterruptChecker interruptChecker, ITokenIntern tokenIntern)
     bei JetBrains.ReSharper.Psi.CSharp.Parsing.CSharpParser.InsertMissingTokens(TreeElement result, Boolean trimMissingTokens)
     bei JetBrains.ReSharper.Psi.CSharp.Parsing.CSharpParser.ParseCodeBlock()
     bei JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ClosedChameleonElement.TryParseUsingTokenBuffer(Func`2 parseFunc)
     bei JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ClosedChameleonElement.Parse(Func`2 parseFunc)
     bei JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ChameleonBlock.OpenChameleon()
     bei JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ChameleonBlock.get_FirstChild()
     bei JetBrains.ReSharper.Psi.Util.TreeRange.NodeIterator(ITreeRange range, Func`2 predicate)
     bei JetBrains.ReSharper.Psi.Util.RegionStructureBuilder.BuildRegionStructure(ITreeNode node, INodeTreeNavigator treeNodeNavigator)
     bei JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.MemberReordering.MemberReorderingProcessor.Process(ITreeNode node)
     bei JetBrains.ReSharper.Psi.CSharp.CodeStyle.CSharpFormatterHelper.ReorderMembers(ICSharpTypeAndNamespaceHolderDeclaration declaration)
     bei JetBrains.ReSharper.Psi.Transactions.PsiTransactions.Execute(String commandName, Action handler)

RSRP-475671: Skip ignored on xunit theory InlineData

$
0
0
Reporter Shay Rojansky (Shay.Rojansky) Shay Rojansky (Shay.Rojansky)
Created Jul 28, 2019, 9:37:47 PM
Updated Aug 1, 2019, 6:24:05 PM
Resolved Aug 1, 2019, 6:24:05 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Fixed
Type Bug
Fix version 2019.2
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

When trying to skip a specific xunit test case by placing a Skip value on an InlineData attribute, the test is executed anyway.

Source code:

c#
public class UnitTest1
{
    [Theory]
    [InlineData(true, Skip = "Don't run")]  // This is ignored
    [InlineData(false)]
    public void Foo(bool param)
    {
        if (param)
            throw new Exception("Never supposed to happen");
    }
}

csproj:

xml
<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFramework>netcoreapp3.0</TargetFramework>

        <IsPackable>false</IsPackable>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1"/>
        <PackageReference Include="xunit" Version="2.4.0"/>
        <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0"/>
    </ItemGroup>

</Project>

Test is properly skipped when running on the command line:

> dotnet test
Test run for /home/roji/projects/Test/bin/Debug/netcoreapp3.0/Test.dll(.NETCoreApp,Version=v3.0)
Microsoft (R) Test Execution Command Line Tool Version 16.1.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
                                                                                                                                                                                                                   
[xUnit.net 00:00:00.47]     Test.UnitTest1.Foo(param: True) [SKIP]
                                                                                                                                                                                                                   
  ! Test.UnitTest1.Foo(param: True) [1ms]
                                                                                                                                                                                                                   
Test Run Successful.
Total tests: 2
     Passed: 1
    Skipped: 1
 Total time: 1.0950 Seconds

RSRP-473837: Item 43810 had old key value , but was not registered in cache OptimizedPersistentSortedMap`2 by this value.

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Mar 9, 2019, 10:47:25 AM
Updated Aug 1, 2019, 6:34:01 PM
Subsystem Unit Testing
Assignee Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Priority Show-stopper
State To Reproduce
Type Exception
Fix version 2019.2
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

JetBrains Rider 2019.1 Build RD-191.6062.106 Date 2019-03-09T05:35:10.205+0000

--- EXCEPTION #1/1 [LoggerException]
Message = “Item 43810 had old key value <Uncategorized>, but was not registered in cache OptimizedPersistentSortedMap2 by this value.” ExceptionPath = Root ClassName = JetBrains.Util.LoggerException HResult = COR_E_APPLICATION=80131600 StackTraceString = “ at JetBrains.Util.Logging.Logger.Fail(String messageText) at JetBrains.ReSharper.UnitTestFramework.Caches.PersistentSortedMapExtension.RemoveFromSetBy[TKey,TItem](OptimizedPersistentSortedMap2 map, TKey key, TItem item)
at JetBrains.ReSharper.UnitTestFramework.Caches.OneToSetLevelDbCache1.ElementRemoved(IEnumerable1 elements)
at JetBrains.ReSharper.UnitTestFramework.UnitTestElementRepository.Remove(ICollection1 elements) at JetBrains.ReSharper.UnitTestFramework.Elements.UnitTestElementManager.RemoveElementsNoRaise(ISet1 elements, ISet1 changedElements) at JetBrains.ReSharper.UnitTestFramework.Elements.UnitTestElementManager.ApplyChanges(IUnitTestElementsObserver observer) at JetBrains.ReSharper.UnitTestFramework.Exploration.UnitTestArtifactExplorationRunner.<ExploreProject>d__9.MoveNext() 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.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task1.TrySetResult(TResult result)
at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result)
at JetBrains.ReSharper.UnitTestFramework.Extensions.TaskExtensions.<>c__DisplayClass8_0.<Finally>b__0(Task t)
at System.Threading.Tasks.Task.Execute()
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.ThreadPoolWorkQueue.Dispatch()

last.action = null

app.eap = true
app.internal = true
app.build = RD-191.6062.106
app.version.major = 2019
app.version.minor = 1
app.build.date = 2019-03-09T05:35:10.205+0000
app.build.date.release = 2019-04-20T00:00:10.205+0000
app.build.date.release = 2019-04-20T00:00:10.205+0000
app.compilation.timestamp = null
app.product.code = RD

os.name = Windows 10
java.version = 1.8.0_202-release
java.vm.vendor = JetBrains s.r.o

UIUtil.isRetina = false
JBUI.isHiDPI() = false
ImageScaleFactor = 1

RSRP-475745: exception from typing assist

$
0
0
Reporter Vadim Lomshakov (Vadim.Lomshakov) Vadim Lomshakov (Vadim.Lomshakov)
Created Aug 1, 2019, 6:36:44 PM
Updated Aug 1, 2019, 6:36:44 PM
Subsystem Typing Assistance
Assignee Andrew Karpov (andrew.karpov)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions 2019.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
— EXCEPTION #1/2 [InvalidOperationException]
Message = “Nullable context state isn't available inside interpolated string. Use state from token preceding outermost interpolated string.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.ThreadLocalDebugInfo = “
RdSignal<Operation>: MainProtocol.SolutionModel.solutions.[1].editors.typingSession.$.execute
-> RdDispatcher::FlushAll

HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.ReSharper.Psi.CSharp
StackTraceString = “
 at JetBrains.ReSharper.Psi.CSharp.Parsing.CSharpLexer.GetNullableContext(UInt32 lexerState) in /Product.Root/Psi.Features/Core/Psi/CSharp/Src/Parsing/csharpLexer.cs:line 84
 at JetBrains.ReSharper.Psi.CSharp.Parsing.CSharpLexer.GetNullableContext(UInt32 lexerState) in /Product.Root/Psi.Features/Core/Psi/CSharp/Src/Parsing/csharpLexer.cs:line 84
 at JetBrains.ReSharper.Psi.CSharp.CSharpExtensionMethods.TryGetNullableContextFromCachedLexerState(ITreeNode treeNode, TokenBuffer tokenBuffer) in /Product.Root/Psi.Features/Core/Psi/CSharp/Src/CSharpExtensionMethods.cs:line 191
 at JetBrains.ReSharper.Psi.CSharp.CSharpExtensionMethods.TryGetNullableContext(ITreeNode treeNode) in /Product.Root/Psi.Features/Core/Psi/CSharp/Src/CSharpExtensionMethods.cs:line 139
 at JetBrains.ReSharper.Psi.CSharp.CSharpExtensionMethods.IsNullableContextEnabled(ITreeNode treeNode) in /Product.Root/Psi.Features/Core/Psi/CSharp/Src/CSharpExtensionMethods.cs:line 90
 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.NullabilityAnnotationAssist.Annotate(Boolean isNotNull, ISolution solution, ITextControl textControl, CachingLexer lexer) in /Product.Root/Psi.Features/Core/Services/CSharp/Src/TypingAssist/NullabilityAnnotationAssist.cs:line 192
 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.CSharpTypingAssistBase.HandleSmartNullablityAnnotation(ITypingContext typingContext, Boolean isNotNull) in /Product.Root/Psi.Features/Core/Services/CSharp/Src/TypingAssist/CSharpTypingAssistBase.cs:line 1745
 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.CSharpTypingAssistBase.HandleBangTyped(ITypingContext typingContext) in /Product.Root/Psi.Features/Core/Services/CSharp/Src/TypingAssist/CSharpTypingAssistBase.cs:line 1702
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.ChainedContextBase`2.CallNext() in /Product.Root/Psi.Features/Core/Services/_Core/Src/TypingAssist/TypingAssistManager.cs:line 217
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.Handle[TContext,THandler](TContext context, IEnumerable`1 handlers, Func`4 chainedContextFactory) in /Product.Root/Psi.Features/Core/Services/_Core/Src/TypingAssist/TypingAssistManager.cs:line 92
 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.Type(ITypingContext typingContext) in /Product.Root/Psi.Features/Core/Services/_Core/Src/TypingAssist/TypingAssistManager.cs:line 45
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Feature.Services.LiveTemplates.SurroundTemplates.SurroundSelectionTypingTracker.TypingHandler(ITypingContext typingContext) in /Product.Root/Psi.Features/Core/Services/_Core/Src/LiveTemplates/SurroundTemplates/SurroundSelectionTypingTracker.cs:line 67
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Feature.Services.Xml.TypingAssist.ChangedTagNameTracker.HandleAction(ITextControl textControl, Action action, Func`2 selRangeConverter, Boolean shouldReCheckAfterNoMarkers) in /Product.Root/Psi.Features/Core/Services/Xml/Src/TypingAssist/ChangedTagNameTracker.cs:line 293
 at JetBrains.ReSharper.Feature.Services.Xml.TypingAssist.ChangedTagNameTracker.Type(ITypingContext typingContext) in /Product.Root/Psi.Features/Core/Services/Xml/Src/TypingAssist/ChangedTagNameTracker.cs:line 473
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.HandleAction(ITextControl textControl, Action action, Func`2 selRangeConverter, Boolean shouldReCheckAfterNoMarkers, Boolean checkAvailability) in /Product.Root/Psi.Features/Web/Core/Services/Src/Html/TypingAssist/ChangedTagNameTracker.cs:line 300
 at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.Type(ITypingContext typingContext) in /Product.Root/Psi.Features/Web/Core/Services/Src/Html/TypingAssist/ChangedTagNameTracker.cs:line 486
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.HandleAction(ITextControl textControl, Action action, Func`2 selRangeConverter, Boolean shouldReCheckAfterNoMarkers, Boolean checkAvailability) in /Product.Root/Psi.Features/Web/Core/Services/Src/Html/TypingAssist/ChangedTagNameTracker.cs:line 300
 at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.Type(ITypingContext typingContext) in /Product.Root/Psi.Features/Web/Core/Services/Src/Html/TypingAssist/ChangedTagNameTracker.cs:line 486
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.HandleAction(ITextControl textControl, Action action, Func`2 selRangeConverter, Boolean shouldReCheckAfterNoMarkers, Boolean checkAvailability) in /Product.Root/Psi.Features/Web/Core/Services/Src/Html/TypingAssist/ChangedTagNameTracker.cs:line 300
 at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.ChangedTagNameTracker.Type(ITypingContext typingContext) in /Product.Root/Psi.Features/Web/Core/Services/Src/Html/TypingAssist/ChangedTagNameTracker.cs:line 486
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.NextTypingHandler.Type(ITypingContext typingContext) in /Product.Root/Psi.Features/Core/Services/_Core/Src/CodeCompletion/NextTypingHandler.cs:line 39
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Feature.Services.ParameterInfo.ParameterInfoPopupController.TypingHandler.Type(ITypingContext typingContext) in /Product.Root/Psi.Features/Core/Services/_Core/Src/ParameterInfo/ParameterInfoPopupController.cs:line 389
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Host.Features.Completion.RiderCodeCompletionSessionManager.Type(ITypingContext typingContext) in /Product.Root/ReSharperAutomationTools/src/ReSharperHost/ReSharperHost/Features/Completion/RiderCodeCompletionSessionManager.cs:line 125
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.ReSharper.Feature.Services.TypingAssist.SkippingTypingAssist.Type(ITypingContext typingContext) in /Product.Root/Psi.Features/Core/Services/_Core/Src/TypingAssist/SkippingTypingAssist.cs:line 64
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallNext() in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 200
 at JetBrains.TextControl.TextControlTypingHandlers.TypingContext.CallFirst(Lifetime lifetime, TypingHandler[] handlers, ITextControl textControl, Char ch, IShellLocks locks, TypingHandlerModificationKind kind) in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 178
 at JetBrains.TextControl.TextControlTypingHandlers.Type(ITextControl textControl, Char c, TypingHandlerModificationKind kind) in /Product.Root/Platform/Core/Text/TextControl/Src/Typing/TextControlTypingHandlers.cs:line 128
at JetBrains.ReSharper.Host.Features.TypingAssist

RSRP-474358: Inconsistent placement of curly braces in Razor pages

$
0
0
Reporter A.J. Ruckman (ajruckman) A.J. Ruckman (ajruckman)
Created Apr 16, 2019, 6:57:57 PM
Updated Aug 1, 2019, 6:58:07 PM
Resolved Aug 1, 2019, 6:57:48 PM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Major
State Fixed
Type Bug
Fix version 2019.2.1
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

Rider isn't consistently placing opening and closing curly braces on new lines after the "@" respective char in Razor pages. Here are some code examples:

Here, the opening brace is placed in the same column below the "@" sign (correct):

    @if (Model.Header != null)
    {
        <div class="OuterTableHeader" colspan="2">@Model.Header</div>
    }

Here, the first opening brace is placed below the "@" sign in front of the "if" statement (correct), but it isn't in the inner block in front of the "foreach" statement (incorrect):

        @if (Model.HiddenFields != null)
        {
            @foreach (string field in Model.HiddenFields)
             {
                 <input type="hidden" name="@(field)Prev" value="@Value(field)">
             }
        }

Here, it's the opposite of the last example. The "@@foreach" statement is correct but the "@if" statement isn't:

            @foreach (Row x in Model.Rows)
            {
                @if (!x.Key.Display)
                 {
                     continue;
                 }
Viewing all 106942 articles
Browse latest View live


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