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

RSRP-471824: Unit test runner mangles the name of test function when it contains `(`, `)`, or `.`.

$
0
0
Reporter Josh (Buedel) Josh (Buedel)
Created Oct 12, 2018 2:19:12 PM
Updated Oct 23, 2018 12:24:13 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Functions declared in F# can include spaces and punctuation and so forth (via double backticks). These names do not appear correctly in the unit test session window. Specifically, the rest of the name after the first ( gets truncated and a . is treated as if the stuff after the dot is a child test.

So, as I was setting up VS to create that image, the names actually changed again on me. Still mangled, but mangled slightly differently. Stuff after the ( was getting treated as a subtest, like . does. But then I did a Run All and it went back to what you see now.


RSRP-471361: Duplicate Finder (dupfinder.exe) in TeamCity believes Visual Studio solution folders are real folders

$
0
0
Reporter Halstein Tonheim (halstein_XaQu) Halstein Tonheim (halstein_XaQu)
Created Sep 3, 2018 12:00:34 PM
Updated Oct 23, 2018 12:24:30 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Alexandra Kuks (Asia.Rudenko)
Priority Normal
State To Reproduce
Type Bug
Fix version 2018.3
Affected versions 2018.2.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Error message: "Project 'FunctionalTests' root directory doesn't exist. Checked path C:\BuildAgent\work\fc2167779e923e6c\SW\Tests".

Neither Test nor FunctionalTests are real folders on disk. They are just solution folders in Visual Studio solution.

[10:49:30]Step 11/11: Find Duplicates (Duplicates finder (ReSharper)) (42s)
[10:49:31][Step 11/11] Searching for duplicates
[10:49:31][Step 11/11] Starting: C:\BuildAgent\tools\jetbrains.resharper-clt.2018.2.1\tools\dupfinder.exe --config=C:\BuildAgent\temp\agentTmp\dotnet-tools-dupfinder.config
[10:49:31][Step 11/11] in directory: C:\BuildAgent\work\fc2167779e923e6c
[10:49:31][Step 11/11] JetBrains Duplicates Finder 2018.2.1
[10:49:31][Step 11/11] Running in 64-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.1.7601 Service Pack 1
[10:49:36][Step 11/11] Custom location will be used to store solution caches. Path: C:\BuildAgent\system\dotnet-tools-dupfinder\fc2167779e923e6c
[10:49:38][Step 11/11] Collecting files to analyze:
[10:49:38][Step 11/11] from project 'C:\BuildAgent\work\fc2167779e923e6c\SW\Mercatus.Future.sln' excluding: C:/BuildAgent/work/fc2167779e923e6c/SW/**/*.designer.cs;C:/BuildAgent/work/fc2167779e923e6c/SW/**/DataModel/**;C:/BuildAgent/work/fc2167779e923e6c/SW/**/AssemblyInfo.cs.
[10:49:43][Step 11/11] Project 'UnitTests' root directory doesn't exist. Checked path C:\BuildAgent\work\fc2167779e923e6c\SW\Tests
[10:49:42][Step 11/11] Error message is logged
[10:49:43][Step 11/11] Project 'FunctionalTests' root directory doesn't exist. Checked path C:\BuildAgent\work\fc2167779e923e6c\SW\Tests
[10:49:43][Step 11/11] Project 'UserInterfaceTests' root directory doesn't exist. Checked path C:\BuildAgent\work\fc2167779e923e6c\SW\Tests
[10:49:46][Step 11/11] 1161 files found to analyze.
[10:50:12][Step 11/11] Duplicates report was written to C:\BuildAgent\temp\buildTmp\dupfinder-report-7811506618632245157.xml
[10:50:12][Step 11/11] Total time: 00:00:40.7630613
[10:50:12][Step 11/11] User time: 00:00:37.6742415
[10:50:12][Step 11/11] Peak virtual memory: 2199MB
[10:50:12][Step 11/11] Peak working set: 1626MB
[10:50:13][Step 11/11] Process exited with code 0
[10:50:13][Step 11/11] Importing data from 'C:\BuildAgent\temp\buildTmp\dupfinder-report-7811506618632245157.xml' (734.06 KB) with 'DotNetDupFinder' processor
[10:50:13][Step 11/11] Processing data
[10:50:13]Waiting for 7 service processes to complete

RSRP-469271: Some TestNames with periods in them do not display properly in the test runner UI for .NET Core projects (netcoreapp2.0)

$
0
0
Reporter Rian Stockbower (rianjs) Rian Stockbower (rianjs)
Created Apr 16, 2018 4:53:44 PM
Updated Oct 23, 2018 12:26:28 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Some periods (but not all) appears to be treated like a namespace or category in ReSharper v 2017.3.5

This appears to be a .NET Core only behavior, as I recently converted this from regular framework, and had no such issues.

Test method:

public static IEnumerable<ITestCaseData> GetScheduleForResourcesAsync_ExceptionTestCases()
{
    yield return new TestCaseData(_id, DateTimeOffset.MinValue, DateTimeOffset.MaxValue)
        .SetName("Start = DateTimeOffset.MinValue, End = DateTimeOffset.MaxValue returns 400 BadRequest");
}

Here's the full csproj:

<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>

  <PropertyGroup>
   <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
   <ApplicationIcon />
   <OutputType>Library</OutputType>
   <StartupObject />
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net462|AnyCPU'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <WarningsAsErrors></WarningsAsErrors>
    <NoWarn>1701;1702;1705;NU1605</NoWarn>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net462|AnyCPU'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <WarningsAsErrors></WarningsAsErrors>
    <NoWarn>1701;1702;1705;NU1605</NoWarn>
  </PropertyGroup> 

  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.1" />
    <PackageReference Include="Ical.Net" Version="4.0.6" />
    <PackageReference Include="Moq" Version="4.8.2" />
    <PackageReference Include="NUnit" Version="3.9.0" />
    <PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\CalendaringService\CalendaringService.csproj" />
  </ItemGroup>

</Project>

See attached screenshot for what the runner looks like.

RSRP-471662: TestCaseSource cases with names containing "." are not displayed properly in UTE/UTS.

$
0
0
Reporter Fedor Buyvol-Kot (Fedor.Buyvol-Kot) Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Created Sep 27, 2018 5:09:26 PM
Updated Oct 23, 2018 12:26:28 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471214: Protobuf v3 import is not found automatically from package

$
0
0
Reporter NN __ (NN) NN __ (NN)
Created Aug 23, 2018 11:43:03 AM
Updated Oct 23, 2018 12:37:40 PM
Resolved Oct 23, 2018 12:37:40 PM
Subsystem ProtoBuf
Assignee Nikolay Kuznetsov (Nikolay.Kuznetsov)
Priority Normal
State Duplicate
Type Bug
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Install package Google.Protobuf.Tools.3.6.0
Add proto file:

syntax = "proto3";

import "google/protobuf/timestamp.proto";

ReSharper warns about bad import since the file is not searched automatically in SolutionDir\packages\Google.Protobuf.Tools.3.6.0.
A workaround is to add these files as link to the project.

RSRP-451369: [ProtoBuf] Import gives wrong 'File not found' error when path contains '../'

$
0
0
Reporter Sebastian Krysmanski (manski) Sebastian Krysmanski (manski)
Created Nov 26, 2015 11:03:47 AM
Updated Oct 23, 2018 12:39:26 PM
Subsystem ProtoBuf
Assignee Nikolay Kuznetsov (Nikolay.Kuznetsov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 10.0.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
R#'s proto buf parser can't handle import paths that contain "../", like this:



This compiles fine, though (and the file actually exists).

I'm running version 10.0.2 EAP 1.

RSRP-471949: MethodBase.GetParameters isn't annotated with ItemNotNull

RSRP-471950: Assembly.GetManifestResourceNames is not annotated NotNull, ItemNotNull


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

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

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

RSRP-471951: XContainer.Elements is not annotated NotNull, ItemNotNull

RSRP-471952: Enum.GetNames is not annotated with ItemNotNull

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 23, 2018 1:22:29 PM
Subsystem Platform - VS Integration
Assignee Serge Baltic (baltic)
Priority Show-stopper
State Submitted
Type Exception
Fix version 2018.3
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-471829: reviewing web.config and error thrown

$
0
0
Reporter Ewin Hong (minoseah629) Ewin Hong (minoseah629)
Created Oct 12, 2018 8:06:51 PM
Updated Oct 23, 2018 1:22:29 PM
Subsystem Platform - VS Integration
Assignee Denis Korneev (Denis.Korneev)
Priority Normal
State Submitted
Type Exception
Fix version 2018.3
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion VS 2017 15.6

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.


Object reference not set to an instance of an object.

--- EXCEPTION #1/2 [NullReferenceException]

Message = “Object reference not set to an instance of an object.”

ExceptionPath = Root.InnerException

ClassName = System.NullReferenceException

Data.ReentrancyGuard.ActionName = GetHighlighters

HResult = E_POINTER=COR_E_NULLREFERENCE=80004003

Source = JetBrains.Platform.ComponentModel

StackTraceString = “

at JetBrains.Application.Components.ComponentStorage.<EnumerateDescriptors>d__17`1.MoveNext()

 at JetBrains.Application.Components.EnumerableValueResolver.EnumerableComponentDescriptor`1.<GetEnumerator>d__5.MoveNext()

 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.TextControl.Intellisense.VsQuickInfoComponentSinceVs10.<>c__DisplayClass9_0.<GetContent>b__0()

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

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]

Message = “Object reference not set to an instance of an object.”

ExceptionPath = Root

ClassName = JetBrains.Util.LoggerException

Data.ManagedThreadName = <NULL>

InnerException = “Exception #1 at Root.InnerException”

HResult = COR_E_APPLICATION=80131600

StackTraceString = “

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

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

 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.TextControl.Intellisense.VsQuickInfoComponentSinceVs10.GetContent(Lifetime sessionLifetime, ITextBuffer textBuffer, IQuickInfoSession session, ITextControl textControl)

 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.TextControl.Intellisense.MEF.VsQuickInfoSourcePreviewSinceVs14.<>c__DisplayClass2_1.<Microsoft.VisualStudio.Language.Intellisense.IQuickInfoSource.AugmentQuickInfoSession>b__1()

 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.TextControl.Intellisense.MEF.VsQuickInfoSourceSinceVs10.GetOrCreateQuickInfoData(IQuickInfoSession session, Func`1 creator)

 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.TextControl.Intellisense.MEF.VsQuickInfoSourcePreviewSinceVs14.<>c__DisplayClass2_0.<Microsoft.VisualStudio.Language.Intellisense.IQuickInfoSource.AugmentQuickInfoSession>b__0()

 at JetBrains.Util.Logging.Logger.Catch[TValue](Func`1 func)

 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.TextControl.Intellisense.MEF.VsQuickInfoSourcePreviewSinceVs14.Microsoft.VisualStudio.Language.Intellisense.IQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 sessionItems, ITrackingSpan& applicableToSpan)

 at Microsoft.VisualStudio.Language.Intellisense.Implementation.LegacyQuickInfoSource.AugmentQuickInfoSession(IAsyncQuickInfoSession session, IList`1 content, ITrackingSpan& applicableToSpan)

 at Microsoft.VisualStudio.Language.Intellisense.Implementation.AsyncQuickInfoSession.<TryComputeContentFromLegacySourceAsync>d__46.MoveNext()

 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.InvokeMoveNext(Object stateMachine)

 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 Microsoft.VisualStudio.Threading.JoinableTaskFactory.SingleExecuteProtector.TryExecute()

 at Microsoft.VisualStudio.Threading.JoinableTaskFactory.SingleExecuteProtector.<>c.<.cctor>b__20_0(Object state)

 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-471847: This property is locked. It can only be changed by the owner of the token.

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

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

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

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


— Outer —

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

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

RSRP-471953: Missing type inference with ValueTuple

$
0
0
Reporter Mark Tkachenko (Rizzen) Mark Tkachenko (Rizzen)
Created Oct 20, 2018 7:18:43 PM
Updated Oct 23, 2018 2:06:29 PM
Subsystem Code Analysis
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
When used Value Tuple, var popup shows "???" instead of any type information.
Example attached.

RSRP-57032: Unsafe code - R# does not found a error< but compiler does

$
0
0
Reporter Mikhail Pilin (ww) Mikhail Pilin (ww)
Created Jan 31, 2008 7:04:23 PM
Updated Oct 23, 2018 2:10:39 PM
Resolved Oct 23, 2018 2:10:39 PM
Subsystem Code Analysis
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
=============
Compiler error:
C:\Work\dotTrace-Main\src\TreeViewControl\src\ColumnsSupport\ColumnsManager.cs(209,28): error CS0213: You cannot use the fixed statement to take the address of an already fixed expression

===

Code:
[StructLayout(LayoutKind.Sequential)]
public struct HDITEM
{
public HeaderItemMask mask;
public int cxy;
public IntPtr pszText;
public IntPtr hbm;
public int cchTextMax;
public HeaderItemFlag fmt;
public IntPtr lParam;
public int iImage;
public int iOrder;
public uint type;
public IntPtr pvFilter;
}
HDITEM hdi = new HDITEM();
hdi.mask = HeaderItemMask.HDI_FORMAT;
unsafe
{
fixed (void* ptr_hdi = &hdi)
User32Dll.Helpers.SendMessageW(myHeader.Handle, WindowsMessages.HDM_GETITEMW, new IntPtr(column), new IntPtr(ptr_hdi));
}

RSRP-143678: Incorrect 'Redundant unsafe keyword' analysis

$
0
0
Reporter Andrew Serebryansky (marcus23) Andrew Serebryansky (marcus23)
Created Dec 17, 2009 6:51:16 PM
Updated Oct 23, 2018 2:13:22 PM
Subsystem Code Analysis
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Open
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
public unsafe delegate bool MyDelegate(byte* pData); 
private void Callme(MyDelegate mydelegate)
{

}
public unsafe void SomeMethod()
{
Callme(mydata => true);
}
Remove the last unsafe keyword and the code won't compile

RSRP-273185: unsafe false positive error

$
0
0
Reporter T (thymin) T (thymin)
Created Jun 24, 2011 3:33:32 PM
Updated Oct 23, 2018 2:13:58 PM
Subsystem Code Analysis
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Open
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
svn_diff__position_t[] sentinel_position_Array = new svn_diff__position_t[2];
fixed (svn_diff__position_t* sentinel_position = sentinel_position_Array)
{
var fpManaged = new svn_diff__snake_t[10];
svn_diff__position_t* position_list1 = null;
fixed (svn_diff__snake_t* fpManagedPtr = fpManaged)
{
position_list1->next = &sentinel_position[0]; //error on &
}
}


public struct svn_diff__snake_t
{
public Int32 y;
//public svn_diff__lcs_t* lcs;
//public svn_diff__position_t* position0;
//public svn_diff__position_t* position1;
};

public struct svn_diff__position_t
{
public svn_diff__position_t* next;
//public svn_diff__node_t* node;
//public Int32 offset;
}

JetBrains ReSharper 6.0 Beta 3 Full Edition
Build 6.0.2168.356 on 2011-06-20T18:26:14

RSRP-337807: unsafe context is incorrectly reported as redundant

$
0
0
Reporter Josef Goebel (josefgoebel) Josef Goebel (josefgoebel)
Created Jan 29, 2013 6:25:40 PM
Updated Oct 23, 2018 2:13:58 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 7.1.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
class TestClass
{
unsafe delegate void TestFunction(byte* ptr);

void RunMe(TestFunction callback) { ; }

unsafe void TestMe() // "'unsafe' context is redundant"
{
RunMe(p => { ; });
}
}

In the above code ReSharper reports the unsafe keyword in the TestMe() method as being redundant.
But it's actually required. Compiler reports the following error if the unsafe keyword is not specified:
"Pointers and fixed size buffers may only be used in an unsafe context"

Environment:
Win7 Pro, Visual Studio 2008, .NET 3.5

RSRP-462228: Incorrect QF over unsafe symbols in contexts which cannot be unsafe (e.g. iterators)

$
0
0
Reporter Andrey Dyatlov (Andrey.Dyatlov) Andrey Dyatlov (Andrey.Dyatlov)
Created Dec 14, 2016 2:36:26 PM
Updated Oct 23, 2018 2:17:00 PM
Subsystem Quick Fixes
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2016.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
  public unsafe IEnumerable<int> M4(int* a)
{
yield break;
}
'unsafe' keyword is highlighted with 'cannot use unsafe construct in safe context' error which is not very helpful
also QF 'make M4 unsafe' does nothing and doesn't fix the error (since M4 is already unsafe)
Viewing all 106942 articles
Browse latest View live


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