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

RSRP-469244: StyleCop rules synchronization between ReSharper and other software (StyleCopAnalyzers)

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Apr 12, 2018 9:39:01 PM
Updated Oct 5, 2018 10:58:32 PM
Subsystem Code Style - Cleanup
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Major
State Submitted
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
The Problem: Stylecop Analyzer and the Stylecop Plugin for Resharper are not synchronized. So we need a Settings.StyleCop file for Resharper and a *.ruleset file for the Analyzer to disabled some of the rules.

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/releases/1.0.2

RSRP-471771: "x:Key attribute required" reported as error on XAML resource reference

$
0
0
Reporter Diego Ponce de Leon (xleon) Diego Ponce de Leon (xleon)
Created Sep 14, 2018 4:25:20 PM
Updated Oct 6, 2018 11:44:21 AM
Subsystem XAML
Assignee Sergey Kuks (coox)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

This is not an error. It shouldn´t be a warning either. The project compiles fine. Adding a key attribute prevents the project to build correctly.
If I set the same reference without any other style inside <ContentPage.Resources>, then it works fine, as you can see on the second screenshot

Version: RD-182.4231.496
Timezone: Europe/Paris
Evaluation: false
Environment: RD-182.4231.496, JRE 1.8.0_152-release-1248-b8x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1200x1920, 1680x1050, 3440x1440

RSRP-471772: vb - incorrect reporting of possible null exception

$
0
0
Reporter Rick Piovesan (riix) Rick Piovesan (riix)
Created Jul 26, 2018 2:33:36 PM
Updated Oct 6, 2018 3:17:02 PM
Subsystem Code Analysis - VB.NET
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

Version: RD-181.4952.311
Timezone: America/New_York
Evaluation: true
Environment: RD-181.4952.311, JRE 1.8.0_152-release-1136-b38x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1080

RSRP-471773: Find Usages shows strange things in external sources

$
0
0
Reporter Ivan Migalev (Ivan.Migalev) Ivan Migalev (Ivan.Migalev)
Created Oct 6, 2018 4:42:43 PM
Updated Oct 6, 2018 4:44:28 PM
Subsystem Navigation - Search (Find Usages)
Assignee Alexander Ulitin (alexander.ulitin)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
(Initially found in Rider, but works the same in ReSharper.)

1. Open any decompiled class, e.g. System.Net.Http.SocketsHttpHandler from .NET Core.
2. Focus any instance field (e.g. _handler).
3. Press Find Usages key (Alt-F7 on my machine).
4. Rider actually finds usages, but shows the results in a strange way (probably because they're linked with the compiled code).


The code is already decompiled, so I expect that Rider will show actual source code lines instead of this.

It works in Visual Studio with ReSharper the same way, here's a sample from .NET Framework's String.m_firstChar:

RSRP-471774: ReSharper cannot navigate to decompiled sources of .NET Core

$
0
0
Reporter Ivan Migalev (Ivan.Migalev) Ivan Migalev (Ivan.Migalev)
Created Oct 6, 2018 4:59:57 PM
Updated Oct 6, 2018 4:59:57 PM
Subsystem Decompiler
Assignee Nikita Raba (nikita.raba)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
  1. Create .NET Core 2.1 project.
  2. Try to navigate e.g. to String class.
  3. ReSharper doesn't show the decompiled code from .NET Core library but shows only decompiled reference assembly instead (e.g. C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\ref\netcoreapp2.1\System.Runtime.dll instead of C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.0\System.Runtime.dll).

It works for some assemblies in Rider (e.g. for System.Net.Http.SocketHttpHandler it navigates to a proper version of System.Net.Http.dll, but doesn't work e.g. for System.String), and I wasn't able to make it work at all in ReSharper.

NOTE: it isn't a duplicate of RSRP-468636, because this issue is about .NET Core and not .NET Standard (honestly I don't get how .NET Standard libraries can be meaningfully decompiled).

Reproduced on the latest available nightly:

JetBrains ReSharper Ultimate 2018.2 EAP 9 D Checked Build 182.0.20180924.103437-eap09d
This pre-release version will expire in 17 days
dotCover 2018.2.20180924.112537-eap09d
dotTrace 2018.2.20180924.112541-eap09d
ReSharper C++ 2018.2.20180924.104610-eap09d
TeamCity Add-in 2018.2.20180924.104615-eap09d
ReSharper 2018.2.20180924.104604-eap09d
dotMemory 2018.2.20180924.112529-eap09d

RSRP-471775: Time between interruption is 11688ms, which is more than 500ms StackTrace -------------------------------- at JetBrains.Util.Concurrency.UiSmoothnessT

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Oct 6, 2018 7:10:29 PM
Updated Oct 6, 2018 7:11:29 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
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 _53b8c6f9 — JetBrains ReSharper Ultimate 2018.3 EAP 1 Build 183.0.20181005.161021-eap01

JetBrains dotCover 2018.3 EAP 1 Build 2018.3.20181005.162547-eap01
JetBrains dotMemory 2018.3 EAP 1 Build 2018.3.20181005.162416-eap01
JetBrains dotTrace 2018.3 EAP 1 Build 2018.3.20181005.162553-eap01
JetBrains ReSharper 2018.3 EAP 1 Build 2018.3.20181005.162249-eap01
JetBrains ReSharper C++ 2018.3 EAP 1 Build 2018.3.20181005.162300-eap01
JetBrains TeamCity Add-in 2018.3 EAP 1 Build 2018.3.20181005.162255-eap01

Time between interruption is 11688ms, which is more than 500ms StackTrace
at JetBrains.Util.Concurrency.UiSmoothnessToolkit::CheckLastInterruptTime() + 3C. at JetBrains.Util.Concurrency.UiSmoothnessToolkit::FinishInterruptTimeCheck(Boolean) + 8. at JetBrains.Util.Concurrency.ReentrantWriterPreferenceReadWriteLock+ReaderLock::Release() + 6C. at JetBrains.Application.Threading.ContentModelReadWriteLock::ReleaseReadLock() + 10. at JetBrains.Application.Threading.IShellLocksEx::ExecuteWithReadLock(IShellLocks,Action) + 3A. at JetBrains.Application.Threading.IShellLocksEx+<>c__DisplayClass11_0::<QueueReadLock>b__0() + 11. at JetBrains.Threading.ReentrancyGuardEx+<>c__DisplayClass0_1::<Queue>b__3() + 22. at JetBrains.Threading.ReentrancyGuard::Execute(String,Action) + 71. at JetBrains.Threading.ReentrancyGuard::ExecutePendingActions() + 65. at JetBrains.Threading.JetDispatcher+Closure::Execute() + 8A. at JetBrains.Util.Concurrency.WinJetDispatcher::ProcessQueue(Int32) + 114. at JetBrains.Util.Concurrency.WinJetDispatcher+ExternalIdleProcessing::OnExternalDriverIdle() + 1C. at JetBrains.VsIntegration.Shell.VsDoIdleDispatcherSink::Microsoft.VisualStudio.OLE.Interop.IOleComponent.FDoIdle(UInt32) + 11.

— EXCEPTION #1/1 [LoggerException]
Message = “
Time between interruption is 11688ms, which is more than 500ms

StackTrace

at JetBrains.Util.Concurrency.UiSmoothnessToolkit::CheckLastInterruptTime() + 3C.
at JetBrains.Util.Concurrency.UiSmoothnessToolkit::FinishInterruptTimeCheck(Boolean) + 8.
at JetBrains.Util.Concurrency.ReentrantWriterPreferenceReadWriteLock+ReaderLock::Release() + 6C.
at JetBrains.Application.Threading.ContentModelReadWriteLock::ReleaseReadLock() + 10.
at JetBrains.Application.Threading.IShellLocksEx::ExecuteWithReadLock(IShellLocks,Action) + 3A.
at JetBrains.Application.Threading.IShellLocksEx+<>c__DisplayClass11_0::<QueueReadLock>b__0() + 11.
at JetBrains.Threading.ReentrancyGuardEx+<>c__DisplayClass0_1::<Queue>b__3() + 22.
at JetBrains.Threading.ReentrancyGuard::Execute(String,Action) + 71.
at JetBrains.Threading.ReentrancyGuard::ExecutePendingActions() + 65.
at JetBrains.Threading.JetDispatcher+Closure::Execute() + 8A.
at JetBrains.Util.Concurrency.WinJetDispatcher::ProcessQueue(Int32) + 114.
at JetBrains.Util.Concurrency.WinJetDispatcher+ExternalIdleProcessing::OnExternalDriverIdle() + 1C.
at JetBrains.VsIntegration.Shell.VsDoIdleDispatcherSink::Microsoft.VisualStudio.OLE.Interop.IOleComponent.FDoIdle(UInt32) + 11.

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 Build 183.0.20181005.161021-eap01”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 1 Build 2018.3.20181005.162547-eap01”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 1 Build 2018.3.20181005.162553-eap01”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 1 Build 2018.3.20181005.162300-eap01”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.3 EAP 1 Build 2018.3.20181005.162255-eap01”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.3 EAP 1 Build 2018.3.20181005.162249-eap01”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.3 EAP 1 Build 2018.3.20181005.162416-eap01”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183-eap1::0eb0065d062c9bfc4eb1590bcaf200021b887a20


Platform\VisualStudio:
    git::refs/heads/183-eap1::e3ef340faae02e8bc8af03a0370466b734b63622

Data.VsVersion = 15.8.28010.2041
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Concurrency.UiSmoothnessToolkit.CheckLastInterruptTime()
 at JetBrains.Util.Concurrency.UiSmoothnessToolkit.CheckLastInterruptTime()
 at JetBrains.Util.Concurrency.UiSmoothnessToolkit.FinishInterruptTimeCheck(Boolean run)
 at JetBrains.Util.Concurrency.ReentrantWriterPreferenceReadWriteLock.ReaderLock.Release()
 at JetBrains.Application.Threading.ContentModelReadWriteLock.ReleaseReadLock()
 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-471776: ReSharper should mark ref returns in autocompletion dialog

$
0
0
Reporter Ivan Migalev (Ivan.Migalev) Ivan Migalev (Ivan.Migalev)
Created Oct 6, 2018 8:07:38 PM
Updated Oct 6, 2018 8:07:38 PM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

For example, GetPinnableReference() returns ref byte, but I don't get that info from the autocompletion:

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 6, 2018 9:09:29 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-471777: Quick fix using template

$
0
0
Reporter Fakhrulhilal Maktum (fakhrulhilal) Fakhrulhilal Maktum (fakhrulhilal)
Created Oct 7, 2018 1:24:29 AM
Updated Oct 7, 2018 1:24:29 AM
Subsystem Quick Fixes
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Question
Fix version No Fix versions
Affected versions 2018.2, 2017.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

When using quick fix (alt+enter) for unknown member in class, there're options like Create new property/field. Can we reuse code template generation here? For example, I create template for generating property with documentation + todo comment and other default, let's say PendingProperty. So when I write unknown property in a class, I expect we choose PendingProperty so it will generate property based on template.
This issue is created as request from help.

RSRP-471778: Unused ctor parameter is not highlighted if class is derived from MVC Controller

$
0
0
Reporter Viktor Voropaev (Viktor.Voropaev) Viktor Voropaev (Viktor.Voropaev)
Created Sep 21, 2018 11:46:34 AM
Updated Oct 7, 2018 10:07:20 AM
Subsystem ASP.NET - MVC
Assignee Slava Trenogin (derigel)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
In this example the parameter in B and C is highlighted as unused, but the parameter in A isn't

using System.Web.Mvc;

public class A: Controller
{
public A(string a) {}
}

public class B
{
public B(string a) {}
}

public class C: ControllerBase
{
public B(string a) {}
protected override void ExecuteCore() { throw new System.NotImplementedException(); }
}

What's so special about Controller? Are there any workarounds?
We have tons of unused ctor params in Controller subclasses and I can't find them since they are not highlighted.

JetBrains Rider 2018.2.3
Build #RD-182.4231.496, built on September 13, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

RSRP-467711: Decompiler does not decompile methods implementation in .NET Core/Standard 2.0 projects

$
0
0
Reporter Ilya Petuhov (ioprst) Ilya Petuhov (ioprst)
Created Dec 21, 2017 5:33:47 PM
Updated Oct 7, 2018 10:52:04 AM
Subsystem Decompiler
Assignee Slava Tutushkin (slava.tutushkin)
Priority Critical
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2017.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

When I trying to navigate to decompiled sources from Core or Standard 2.0 project R# show decompiled source without any method implementation.

Here is what I get when trying to decompile Dictionary<,>

// Decompiled with JetBrains decompiler
// Type: System.Collections.Generic.Dictionary`2
// Assembly: System.Collections, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 046EF1B4-A4CF-4079-AA2E-EE83885437EA
// Assembly location: C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.dll

using System.Runtime.Serialization;

namespace System.Collections.Generic
{
  /// <summary>Represents a collection of keys and values.</summary>
  /// <typeparam name="TKey">The type of the keys in the dictionary.</typeparam>
  /// <typeparam name="TValue">The type of the values in the dictionary.</typeparam>
  public class Dictionary<TKey, TValue> : ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IReadOnlyDictionary<TKey, TValue>, ICollection, IDictionary, IDeserializationCallback, ISerializable
  {
    /// <summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.Dictionary`2"></see> class that is empty, has the default initial capacity, and uses the default equality comparer for the key type.</summary>
    public Dictionary();

    /// <summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.Dictionary`2"></see> class that contains elements copied from the specified <see cref="T:System.Collections.Generic.IDictionary`2"></see> and uses the default equality comparer for the key type.</summary>
    /// <param name="dictionary">The <see cref="T:System.Collections.Generic.IDictionary`2"></see> whose elements are copied to the new <see cref="T:System.Collections.Generic.Dictionary`2"></see>.</param>
    /// <exception cref="T:System.ArgumentNullException"><paramref name="dictionary">dictionary</paramref> is null.</exception>
    /// <exception cref="T:System.ArgumentException"><paramref name="dictionary">dictionary</paramref> contains one or more duplicate keys.</exception>
    public Dictionary(IDictionary<TKey, TValue> dictionary);

    /// <summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.Dictionary`2"></see> class that contains elements copied from the specified <see cref="T:System.Collections.Generic.IDictionary`2"></see> and uses the specified <see cref="T:System.Collections.Generic.IEqualityComparer`1"></see>.</summary>
    /// <param name="dictionary">The <see cref="T:System.Collections.Generic.IDictionary`2"></see> whose elements are copied to the new <see cref="T:System.Collections.Generic.Dictionary`2"></see>.</param>
    /// <param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer`1"></see> implementation to use when comparing keys, or null to use the default <see cref="T:System.Collections.Generic.EqualityComparer`1"></see> for the type of the key.</param>
    /// <exception cref="T:System.ArgumentNullException"><paramref name="dictionary">dictionary</paramref> is null.</exception>
    /// <exception cref="T:System.ArgumentException"><paramref name="dictionary">dictionary</paramref> contains one or more duplicate keys.</exception>
    public Dictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer);

    /// <param name="collection"></param>
    public Dictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection);

...

Here's a related issue RSRP-466389 that was in 2017.2 but there the decompiled classes are with method bodies

RSRP-471779: Conflict with resharper suggestions

$
0
0
Reporter Thomas D (thomasd3) Thomas D (thomasd3)
Created Sep 14, 2018 6:09:14 PM
Updated Oct 7, 2018 11:07:59 AM
Subsystem Code Analysis - C#
Assignee Alexandra Kuks (Asia.Rudenko)
Priority Major
State Waiting for Info
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

I have a generic partial class.
In one of the files, where I define more methods for that class, the generic definition is marked as 'not used' since that specific file doesn't make use of the generic parameters.
So resharper suggests I remove it, but I can't remove it since it's used in other files.

RSRP-471780: 'Invert if statement to reduce nesting' inspection isn't shown in CLT results

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Oct 8, 2018 1:19:00 AM
Updated Oct 8, 2018 1:23:30 AM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Slava Trenogin (derigel)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
0. Try this code:
public void TestMethod()
        {
            if (MyObject.MyBool)
            {
                if (MyObject.MyString != string.Empty)
                {
                    Console.WriteLine(MyObject.MyString);
                }
            }
        }
1. Inspect code issues for solution in ReSharper and by CLT

Result: ReSharper shows '"Invert 'if' statement to reduce nesting" while CLT does not.
'

RSRP-469921: UI input lag after saving file

$
0
0
Reporter Thomas Harrison (rolls) Thomas Harrison (rolls)
Created May 30, 2018 9:23:00 AM
Updated Oct 8, 2018 6:55:20 AM
Subsystem Psi - Caches
Assignee Dmitry Ivanov (daivanov)
Priority Critical
State Open
Type Performance Problem
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
https://resharper-support.jetbrains.com/hc/en-us/requests/1340628?page=1

I get bad UI input lag (typing) after saving a file. This also occurs randomly when I haven't saved a file. Sometimes the intellisense look alike (eg the auto complete) completely fails and I have to disable resharper.

I took some performance profiles but your bug tracker doesn't upload. The performance profiler crashes and fails to attach. After spending several hours restarting processes I managed to get it to attach whilst the slowdown was occuring, then the bug tracker app uploaded at 3kb/s and timed out after several hours despite having a 100 megabit connection.

I managed to grab the performance profiles out of my temp folder before the bug reporter crashed again (crashes 9/10 times I managed to attach a bug report taking visual studio with it!).

Anyway ignoring the fact the profiler won't attach and the bug reporter is buggy and impossible to upload I've attached via sharepoint a performance profile.
https://pcmtec-my.sharepoint.com/:u:/p/roland/EaxrTT-am2hLnBpPqii5VsEBfdKPqHuoeHbK0ovda2ZG8w?e=9AIbmA

Basically this happens whenever I press ctrl+s then start typing, the UI lags badly for 15 seconds afterwards. Startup is horrendously slow as well lagging the entire UI and showing "not responding" whilst it is "processing assemblies".

I moved my cache folder to a different drive (SSD in raid) and it was no worse than my NVME PCIE SSD with 3gb/s transfer rates.

I keep seeing these files being accessed in resource monitor (ignore the path, this was before I moved the folder) when the IDE is idling away doing nothing.

Why is the UI completely locked whilst "processing assemblies"? Why does it need to process them every time I start the application?

Why does the UI lock up badly after saving? I have disabled code lense, intelli trace and everything else in the performance guide but resharper still runs like a complete dog. I was hoping spending $2k on a new 12 core, 32gb ram and NVME SSD would make things faster, but it is barely an improvement.

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

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

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

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

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

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





RSRP-459691: Weird behaviour of unit test runner with NUnit's TestFixtureSource attribute

$
0
0
Reporter Alexandra Kuks (Asia.Rudenko) Alexandra Kuks (Asia.Rudenko)
Created Jul 7, 2016 4:10:47 PM
Updated Oct 8, 2018 10:23:35 AM
Resolved Jul 9, 2018 4:31:01 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.2
Affected versions 2016.2
Fixed In Version ReSharper 2018.2 EAP 2
VsVersion All Versions
Attached is the solution with three examples of TestFixtureSource attribute. ReSharper's behaviour on them is very unstable. Please try:
- launching all tests from solution (sometimes they're run properly, but very often they all stay 'Inconclusive: test not run');
- launching test from gutter mark's menu (the session opened is empty);
- launching test fixture from gutter mark's menu (only one case is run);
- launching different sets of tests from Unit Test Explorer (empty session, 'Inconclusive session' etc.)

RSRP-471328: ReSharper Options: not possible to scroll to bottom of options using scrollbar.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Aug 31, 2018 10:05:35 AM
Updated Oct 8, 2018 10:26:17 AM
Resolved Oct 8, 2018 10:26:17 AM
Subsystem UI
Assignee Daniel Degtyarev (daniel.degtyarev)
Priority Major
State Fixed
Type Usability Problem
Fix version 2018.3
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

JetBrains.ReSharperUltimate.2018.2.EAP9D.Checked.(182.0.20180831.43533-eap09d).

Actual result:
See attached video. It's not possible to scroll to bottom of options using scrollbar:

"Outdent commas" is not the last option here but dragging scrollbar down/using mouse wheel does not display other options.

Expected result:
It's possible to scroll to bottom using scrollbar only.

RSRP-228913: QF to add file to project for "Project file expected" warning

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Mar 14, 2011 8:16:09 PM
Updated Oct 8, 2018 11:16:18 AM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
R# points out that the file being referenced is not included in the project. However, R# supported autocomplete because the file is on the disk.

It's be great to have a QF for this inspection that added the file to the project without having to dig through the solution explorer. It's a frequent pattern that I create a new image, link to it from code and then have to go and find it in solution explorer. That last step could be much faster.

RSRP-258712: quick-fix remove redundant using directive does not generate namespaces specified in R# options as always imported. Used to work in R# 5.

$
0
0
Reporter Gedas Kutka (Gedas.Kutka) Gedas Kutka (Gedas.Kutka)
Created Apr 22, 2011 3:44:23 AM
Updated Oct 8, 2018 11:22:32 AM
Resolved Oct 8, 2018 11:22:32 AM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Usability Problem
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
R# build 2137, VS2010 SP1, C#

RSRP-261400: Quick-fix for 'Thread static field has initializer'

$
0
0
Reporter Andrey Simanovsky (ands) Andrey Simanovsky (ands)
Created May 3, 2011 7:04:43 PM
Updated Oct 8, 2018 11:33:24 AM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
When the inspection 'Thread static field has initializer' is shown on a field:
[ThreadStatic]
private static object myFoo = new object();
Suggest to convert it to lazy initialized property:
[ThreadStatic]
private static object myFoo;
public static object Foo
{
get
{
if (myFoo == null)
myFoo = new object();
return myFoo;
}
}
As is recommended in code inspection wiki.
Or even with the following code (since the code above gets highlighted with suggestions):
[ThreadStatic]
private static object myFoo;
public static object Foo
{
get { return myFoo ?? (myFoo = new object()); }
}
Or with the following:
private ThreadLocal<object> myFoo = new ThreadLocal<object>(() => new object());
Viewing all 106942 articles
Browse latest View live


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