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

RSRP-471827: Unit Test sees two tests with the same name but different signatures as the same test and executes only the 1st one

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Oct 12, 2018 4:44:13 PM
Updated Oct 17, 2018 2:50:33 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
When I have two tests with the same name but different signatures, the windows do not show the tests as separate tests. Have a look at the attached file OrderServiceTest.cs

Set a breakpoint on the second method OrderService_ShouldBeBackwardsCompatible and try to debug it. You'll note that the breakpoint doesn't get hit.

These may be two separate issues.


Reproduced with R# 2018.2.3




RSRP-471826: Resharper Installer needs local admin rights for Visual Studio 2017

$
0
0
Reporter peter wellstein (petercosmic) peter wellstein (petercosmic)
Created Oct 12, 2018 4:01:08 PM
Updated Oct 17, 2018 2:51:24 PM
Subsystem Installation
Assignee Denis Korneev (Denis.Korneev)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
When trying to install JetBrains.ReSharperUltimate.2018.2.3.exe we face the issue that for integration with VS 2017 we apparently need local admin rights (not needed for VS2015). However this is prevented by company policy. Is there a way to get around it?

RSRP-329768: 'Pick color from palette'. Quck-fix or Context Action?

$
0
0
Reporter Dmitry Matveev (Dmitry.Matveev) Dmitry Matveev (Dmitry.Matveev)
Created Sep 6, 2012 12:31:04 PM
Updated Oct 17, 2018 2:54:13 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Cosmetics
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
This action has a quick-fix icon. But it does not fix anything, it is rather a context action.

RSRP-471818: "Implicitly captured closure" on local functions that never leave their home method

$
0
0
Reporter Alexander McCabe (mccabea) Alexander McCabe (mccabea)
Created Oct 12, 2018 1:05:23 AM
Updated Oct 17, 2018 2:57:17 PM
Subsystem Code Analysis - C#
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

When the "Implicitly captured closure" code issue applies to a local function, there's no way to remove it even if you know it's not passed to anything and thus has the same scope as the stuff it's capturing.

For a lambda that's passed directly into a function, that issue doesn't apply if the parameter has the InstantHandle attribute, but that's not an option here.

RSRP-471817: C# Named Parameters in expression trees

$
0
0
Reporter Chris Burkhart (ctide) Chris Burkhart (ctide)
Created Oct 12, 2018 12:21:48 AM
Updated Oct 17, 2018 2:57:36 PM
Subsystem Code Style
Assignee Razmik Seysyan (razmik)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

If you want Rider to enforce named parameters, it will also enforce them in expression trees. C# prohibits you from compiling code that uses named parameters in expression trees (CS0854), so the only option is to disable all the named parameters options from that file. Named Parameters vs. Optional Parameters should really have a better set of options around when they're leveraged instead of just by the value being passed as the parameter. Indexers would be nice, for example, if they didn't require named paramters.

RSRP-471813: ToDo items are not discovered in given *.js and *.ts files

$
0
0
Reporter Anna Milova (anna.milova) Anna Milova (anna.milova)
Created Oct 11, 2018 10:56:54 AM
Updated Oct 17, 2018 2:57:57 PM
Subsystem TODO Items
Assignee Andrew Karpov (andrew.karpov)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Though R# 2018.1 discovered these items.
Compare:
R# 2018.1

R# 2018.3

See the solution attached.

RSRP-330030: Convert to '||' expression changes behavior with function calls

$
0
0
Reporter Peter Fuhrimann (Peter.Fuhrimann) Peter Fuhrimann (Peter.Fuhrimann)
Created Sep 19, 2012 11:58:45 AM
Updated Oct 17, 2018 3:00:06 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 7.0.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Original code:

bool change = function1();
if ( function2() )
{
change = true;
}

is converted to:

bool change = function1() || function2();

-> Changed behavior: function2 is not called if function1 returns true !!

RSRP-330084: ContextAction classes cannot be shared across language settings pages

$
0
0
Reporter Matt Ellis (citizenmatt) Matt Ellis (citizenmatt)
Created Sep 21, 2012 5:50:45 PM
Updated Oct 17, 2018 3:01:58 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Submitted
Type Task
Fix version Backlog
Affected versions 7.0, 7.0.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
I cannot create a context action handler that is visible in more than one language group in the settings page. Take this example (http://blogs.lessthandot.com/index.php/DesktopDev/MSTech/resharper-plugin-rename-class-to). It renames a file to match the classname, and can work in either VB or C#, by accepting LanguageIndependentContextActionDataProvider as the ctor parameter. But it can only enter "C#" or "VB" in the ContextActionAttribute.Group property, and so only appear in one language's settings page for configuration.

Looking at the usages of Group, there are a couple of handlers with a Group of "All". This does not get used anywhere, but it would be good if the settings pages displayed any context actions with a specific group or "All". So the C# page would display "C#" and "All" actions, and VB would display "VB" and "All" actions.

RSRP-471227: Add ability to import dictionary directly from ReSpeller configuration page

$
0
0
Reporter Jonathan Ward (xach00) Jonathan Ward (xach00)
Created Aug 23, 2018 4:30:31 PM
Updated Oct 17, 2018 3:03:54 PM
Subsystem ReSpeller
Assignee Artem Bukhonov (Artem.Bukhonov)
Priority Normal
State Submitted
Type Feature
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

I'd like to be able to import my language directly on this page please. I don't want to have to go off and download a dictionary and the set it up just to avoid warnings all over my code for US spellings. i.e. I click "add dictionary", you give me a list of available languages and I pick mine. You handle the downloading of the dictionary behind the scenes.

Failing that, I'd like a simple means of turning this feature off, like a single checkbox, rather than the workaround described on this page:
https://blog.jetbrains.com/dotnet/2018/07/10/integrated-spell-checking-respeller-resharper-rider/
"There is no “one click” way, however it’s not too difficult. From Rider’s settings, find Editor | Inspections. Then under the languages of choice (e.g. C#), search for "spell" or "typo" and disable the inspections."

RSRP-471194: ReSpeller custom dictionaries with relative path / source control

$
0
0
Reporter Maarten Balliauw (Maarten.Balliauw) Maarten Balliauw (Maarten.Balliauw)
Created Aug 22, 2018 4:50:04 PM
Updated Oct 17, 2018 3:04:03 PM
Subsystem ReSpeller
Assignee Artem Bukhonov (Artem.Bukhonov)
Priority Major
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

From https://blog.jetbrains.com/dotnet/2018/07/10/integrated-spell-checking-respeller-resharper-rider/#comment-525766:

I added the en-GB dictionary and saved the setting to my team’s layer. The path to the dictionary is saved as a full path including drive letter. This necessitates all team members to have installed the dictionary into the same folder on the same drive. I want to commit the dictionary to source control and have Resharper look for it relative to my team settings file location. Is that possible? I tried manually editing the settings file but it didn’t work.

RSRP-471811: ReSpeller team shared dictionaries in solution folder.

$
0
0
Reporter Denis A. Gladkiy (DrollerTroller) Denis A. Gladkiy (DrollerTroller)
Created Oct 11, 2018 10:11:10 AM
Updated Oct 17, 2018 3:04:17 PM
Subsystem ReSpeller
Assignee Artem Bukhonov (Artem.Bukhonov)
Priority Normal
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

I can't specify relative path to the .dic file in the team-shared options layer from the UI. If I manually fix the path in .DotSettings R# says it can't load dictionary.

RSRP-470466: Improve discovering and using other than en_US dictionaries in ReSpeller

$
0
0
Reporter Rachel Davids (RachelD) Rachel Davids (RachelD)
Created Jul 4, 2018 1:26:22 PM
Updated Oct 17, 2018 3:04:17 PM
Subsystem ReSpeller
Assignee Artem Bukhonov (Artem.Bukhonov)
Priority Critical
State Submitted
Type Usability Problem
Fix version 2018.3
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharper 2018.2 EAP 1
The bundled dictionary is en_US which is not usable in our code - based in UK.

Either a) include en_UK? en_GB? as an alternative
b) provide information from where this can be sourced - my searches have come up empty
or c) provide a means to disable ALL the new Respeller inspections/fixes.

RSRP-471808: Resharper threats not using a variable named "unused" as intentional, but does not warn about actually using it

$
0
0
Reporter Attila Zimler (Attila.Zimler) Attila Zimler (Attila.Zimler)
Created Oct 11, 2018 3:24:07 AM
Updated Oct 17, 2018 3:05:02 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Hi,

I found that it's a nice touch to ignore warning about not using a variable named unused. Probably though, it a similar warning should be implemented if the variable is named unused and it is being used?

Example code shows a situation where unused is not warned to be not used:

    [Test]
    public void ThrowExceptionOnAttemptToConvertToClosedIntervalWhenFromIsNullAndAttemptingToAccessIt()
    {
        var timeInterval = new TimeInterval { From = null, To = new DateTime(2018, 10, 11) };
        DateTime unused;

        var ex = Assert.Throws<InvalidOperationException>(() => unused = timeInterval.AsClosedTimeInterval().From.AddDays(1));
        ex.Message.Should().Be("Time interval is open, From has no value");
    }

RSRP-471807: Choosing project: [Shared MSBuild Project Files] for UWP project makes the execution fail

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Oct 10, 2018 9:00:56 PM
Updated Oct 17, 2018 3:05:33 PM
Subsystem Run Configurations
Assignee Slava Tutushkin (slava.tutushkin)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Create empty Xamarin.Forms project with netstandard2.0 forms-project and UWP project.
Rightclick UWP project in the solution explorer, select "Create run configuration..." and select "[Shared MSBuild Project Files]" in the dialog. The resulting "MySolution.sln.DotSettings.user" will prevent ReSharper from starting the project.


RSRP-471803: Under certain circumstances, dependencies between classes are not noticed by Resharper

$
0
0
Reporter Max Guernsey (maxguernseyiii) Max Guernsey (maxguernseyiii)
Created Oct 10, 2018 7:45:12 PM
Updated Oct 17, 2018 3:07:08 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Waiting for Info
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

The problem is that sometimes some methods which are in fact used are treated as if there are no references to it even though there are several references to it. Practically speaking, this affects everything but its biggest impact on me is that it makes rename and safe delete unsafe operations. It also makes the code render stupidly - graying out public methods that are called by the method right above or below it in the same file.

I'm not going to engage in magical thinking and pretend I know the cause so I'll just dump what I think I know and hope someone with more context can figure out the problem.

Here are the circumstances, some of which probably matter:

  1. The code is in a .NET Standard project.
  2. The project has file references to copies of UnityEngine.dll et al
  3. The code references other .NET standard projects, which are functioning perfectly.
  4. All of the classes where the problem is happening inherit MonoBehaviour.

Here are things that I am pretty sure aren't sole causal factors:

  1. .NET Standard: I have other projects in the same solution and they work just fine.
  2. Just using Unity classes I have several classes which do not inherit MonoBehaviour and Resharper works fine with all of them.
  3. The presence or absence of the Unity plug-in. I can't figure out how that plug-in is supposed to help me but it has absolutely no impact on this problem either way.

I'd be glad to add any more information upon request.


RSRP-471882: Visualize running unit test processes in the Unit Test sessions

RSRP-471830: Automating ReSharper setup is complicated

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

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

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

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

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

RSRP-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 17, 2018 3:15:15 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-471800: Angular (v6): error when using Safe Navigation Operator

$
0
0
Reporter Espen Røvik Larsen (espen.rovik.larsen) Espen Røvik Larsen (espen.rovik.larsen)
Created Oct 10, 2018 3:26:19 PM
Updated Oct 17, 2018 3:17:10 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471799: Angular (v6): error in event handler when calling function named delete()

$
0
0
Reporter Espen Røvik Larsen (espen.rovik.larsen) Espen Røvik Larsen (espen.rovik.larsen)
Created Oct 10, 2018 3:21:25 PM
Updated Oct 17, 2018 3:17:25 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

The function has to be named delete() to provoke the error message. The message I get is "=> expected".

Happens in html - see image.

ReSharper v2018.2.3

Viewing all 106942 articles
Browse latest View live


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