Reporter | Kirill Skrygan (kirill.skrygan) |
---|---|
Created | May 17, 2012 11:52:52 AM |
Updated | Apr 16, 2018 1:23:57 PM |
Resolved | Apr 16, 2018 1:23:57 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Critical |
State | Can't Reproduce |
Type | Bug |
Fix version | No Fix versions |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
RSRP-303061: 'Unknown error' window during rename refactoring
RSRP-304504: Bogus 'redundand String.Format highlighting'
Reporter | Sergey Kuks (coox) |
---|---|
Created | May 23, 2012 10:15:21 PM |
Updated | Apr 16, 2018 1:29:53 PM |
Resolved | Apr 16, 2018 1:29:52 PM |
Subsystem | Code Analysis - Annotations |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Obsolete |
Type | Bug |
Fix version | Backlog |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
BTW there's no QF to remove redundand code
BinaryWriter writer;
writer.WriteLine(String.Format(CultureInfo.InvariantCulture, "{0:d/M/yyyy HH:mm:ss}", entry.FileAccessTime));
RSRP-312199: Lambda inlining bug
Reporter | Alexander Logger (inTagger) |
---|---|
Created | Jun 18, 2012 12:35:21 PM |
Updated | Apr 16, 2018 1:32:46 PM |
Resolved | Apr 16, 2018 1:32:46 PM |
Subsystem | Context Actions |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Obsolete |
Type | Bug |
Fix version | Backlog |
Affected versions | 7.0 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
RSRP-318328: Could you please add keyboard shortcut for "Do not rename overloads" item in Rename dialog?
Reporter | Sergey (Shchegrikovich) |
---|---|
Created | Jun 28, 2012 12:34:49 PM |
Updated | Apr 16, 2018 1:34:44 PM |
Resolved | Apr 16, 2018 1:34:44 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Obsolete |
Type | Feature |
Fix version | No Fix versions |
Affected versions | 7.0 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
See attached file.
RSRP-326704: Reorder add constraint/ remove constraint bulb items
Reporter | Sergey Kuks (coox) |
---|---|
Created | Jul 16, 2012 9:09:49 PM |
Updated | Apr 16, 2018 1:36:07 PM |
Resolved | Apr 16, 2018 1:36:07 PM |
Subsystem | Quick Fixes |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Obsolete |
Type | Feature |
Fix version | Backlog |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
class Foo<TFoo> where TFoo : classsee http://www.rsdn.ru/forum/jetbrains/4820553.1.aspx
{
}
class Bar<TBar>
{
private Foo<TBar> myFoo;
}
RSRP-326832: Refactoring: move class to antoher file creates file with wrong encoding
Reporter | Michael Lund (icodeit) |
---|---|
Created | Jul 17, 2012 4:37:04 PM |
Updated | Apr 16, 2018 1:40:01 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Submitted |
Type | Bug |
Fix version | Backlog |
Affected versions | 2018.1, 6.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
My specific problem has to do with a project where I have to use UTF-8 with signature and resharper creates file with another encoding.
RSRP-392220: ReSharper not reporting "Auto-implemented property accessor is never used"
Reporter | Michael Sloane (Michael_Sloane) |
---|---|
Created | Nov 11, 2013 8:42:34 PM |
Updated | Apr 16, 2018 1:40:20 PM |
Subsystem | Code Analysis - Solution-wide |
Assignee | Ivan Serduk (IvanSerduk) |
Priority | Normal |
State | Submitted |
Type | Bug |
Fix version | 9.0 |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
<IssueType Id="UnusedAutoPropertyAccessor.Global" Category="Potential Code Quality Issues" Description="Auto-implemented property accessor is never used: Non-private accessibility" Severity="WARNING"/>
However, this issue is reported by the ReSharper command line tools.
Both ReSharper in the IDE and the ReSharper command line tools are using the same solution settings file (i.e. <solution_name>.sln.DotSettings)
ReSharper version: 8.0.2000.2660
ReSharper Command Line Tools version: 8.0.0.39
Microsoft Visual Studio Ultimate 2013- Version 12.0.21005.1 REL
My problem is that that the command line tool and IDE tool are inconsistent. If I could disable the warning so that it was not reported by the command line tool, that would be an acceptable solution. Unfortunately, I don't know what comment to insert to disable the warning, since the IDE tool does not show it.
Alternatively, if I had a version of the IDE tool that showed the warning, that would be acceptable too.
The code that is causing the warning is very simple:
public class TodoItem
{
public string ModelName { get; set; }
public string IpAddress { get; set; }
public string Status { get; set; }
}
Status is set, but not used, which is causing the warning to be reported by the Command Line tools. The same warning is not reported by the IDE tool.
RSRP-327511: Good way to implement read-only property with getter
Reporter | Alexey Kuptsov (alexey.kuptsov) |
---|---|
Created | Jul 19, 2012 6:24:25 PM |
Updated | Apr 16, 2018 2:32:13 PM |
Resolved | Apr 16, 2018 2:32:13 PM |
Subsystem | Quick Fixes |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Obsolete |
Type | Feature |
Fix version | Backlog |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
public interface ICanBeValid
{
bool IsValid { get; }
}
public class MyCanBeValid : ICanBeValid{caret}
{}
Default "Alt+Enter, Enter" way makes:
public class MyCanBeValid : ICanBeValid{caret}
{
public bool IsValid { get; private set; }
}
(There is non-noticeable option "Properties as:" if ICanBeValud contains more than one member.)
We need a simple way to implement this property with single getter:
public class MyCanBeValid : ICanBeValid{caret}
{
public bool IsValid { get { throw new NotImplementedException(); } }
}
RSRP-463014: Ignore unsupported projects in R# build
Reporter | Dmitry Matveev (dmitry.matveev@jetbrains.com) |
---|---|
Created | Feb 9, 2017 1:20:23 PM |
Updated | Apr 16, 2018 2:47:29 PM |
Subsystem | Solution builder |
Assignee | Anton Spilnyy (Anton.Spilnyy) |
Priority | Critical |
State | Submitted |
Type | Feature |
Fix version | 2018.2 |
Affected versions | 2016.3 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
RSRP-328277: Create overload refactoring should preserve return type
Reporter | Guest 256 (guest256) |
---|---|
Created | Jul 25, 2012 7:06:04 PM |
Updated | Apr 16, 2018 2:51:42 PM |
Subsystem | Quick Fixes - Create From Usage |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Submitted |
Type | Bug |
Fix version | Backlog |
Affected versions | 2018.1, 7.0 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
internal static class Bar
{
public static void SomeMethod()
{
var i = Foo(DateTime.Now);
^
// set cursor here and call “Create overload for 'Foo'” action
}
private static int Foo(string s)
{
return 42;
}
}
Current:
internal static class Bar
{
public static void SomeMethod()
{
var i = Foo(DateTime.Now); // compilation error, cannot assign void value!
}
private static void Foo(DateTime now) // return type is void
{
throw new NotImplementedException();
}
private static int Foo(string s)
{
return 42;
}
}
Expected:
internal static class Bar
{
public static void SomeMethod()
{
var i = Foo(DateTime.Now);
}
private static int Foo(DateTime now) // return type is int
{
throw new NotImplementedException();
}
private static int Foo(string s)
{
return 42;
}
}
Having overloaded methods with different return types isn't best practice, so R# should create overloads with the same return type.
Note: replacing implicitly-typed variable “i” with explicitly-typed solves the problem, but it's workaround because R# type will inferred from usage, not from overload origin.
RSRP-328476: Rename fails
Reporter | Eric Gurney (ekgurney) |
---|---|
Created | Jul 26, 2012 9:23:20 PM |
Updated | Apr 16, 2018 2:57:13 PM |
Resolved | Apr 16, 2018 2:57:13 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Can't Reproduce |
Type | Unspecified |
Fix version | No Fix versions |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
RSRP-328672: Rename fails
Reporter | Johan (JohaViss) |
---|---|
Created | Jul 29, 2012 11:39:24 PM |
Updated | Apr 16, 2018 2:58:41 PM |
Resolved | Apr 16, 2018 2:58:41 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Obsolete |
Type | Bug |
Fix version | Backlog |
Affected versions | 7.1.3, 8.0.1, 8.1 EAP |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
Resharper 7.0
RSRP-328771: Create enum member 'Value' context action does not position cursor correctly
Reporter | Alex Berezoutsky (fergard) |
---|---|
Created | Jul 31, 2012 4:25:30 PM |
Updated | Apr 16, 2018 3:03:58 PM |
Subsystem | Quick Fixes |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Open |
Type | Bug |
Fix version | Backlog |
Affected versions | 2018.1, 7.0 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
hit "Alt+Enter";
select "Create enum member 'NewValue'" action, new enum member is created, file with Enum definition is opened and got focus, but cursor is not moved where new enum member is and stays on top of the file.
RSRP-464853: Manage options - search in Reset/Copy options dialogs does not work
Reporter | Tatyana Lunegova (lunega) |
---|---|
Created | May 22, 2017 3:28:47 PM |
Updated | Apr 16, 2018 3:14:55 PM |
Resolved | Apr 16, 2018 3:14:52 PM |
Subsystem | Platform - Layered Settings |
Assignee | Anton Spilnyy (Anton.Spilnyy) |
Priority | Critical |
State | Fixed |
Type | Bug |
Fix version | Unidentified prior version |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
RSRP-328929: Extract Parameters with lowercase naming conventions causes property names of extracted class to be appended with 1
Reporter | Jeff Barnes (jeff.barnes) |
---|---|
Created | Aug 3, 2012 7:40:07 PM |
Updated | Apr 16, 2018 3:18:00 PM |
Resolved | Apr 16, 2018 3:18:00 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Obsolete |
Type | Usability Problem |
Fix version | No Fix versions |
Affected versions | 7.0 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
Here is an example:
public void method(string first_name, string last_name, string phone_number)
{
// Blah
}
Extract parameters to class named Person will result in:
public class Person
{
string first_name;
string last_name;
string phone_number;
public Person(string first_name, string last_name_, string phone_number)
{
this.first_name = first_name;
this.last_name = last_name;
this.phone_number = phone_number;
}
public string first_name1
{
get { return first_name; }
}
public string last_name1
{
get { return last_name; }
}
public string phone_number1
{
get { return phone_number; }
}
}
Ideally, I would prefer to see the generated class look like:
public class Person
{
public Person(string first_name, string last_name_, string phone_number)
{
this.first_name = first_name;
this.last_name = last_name;
this.phone_number = phone_number;
}
public string first_name
{
get; private set;
}
public string last_name
{
get; private set;
}
public string phone_number
{
get; private set;
}
}
Currently, I can work around this issue by converting the properties to automatic properties and rename the property names. However, I would rather not have to do this extra effort every time that I extract a class from parameters. Please add support to gracefully handle this scenario without appending numbers to the name of properties. This could be avoided with an option for automatic properties in this scenario.
I'm using build 7.0.97.60.
RSRP-328950: CA: "Format numeric value" that provides builder for standard/custom format strings
Reporter | Drew Noakes (drewnoakes) |
---|---|
Created | Aug 5, 2012 2:34:17 PM |
Updated | Apr 16, 2018 3:26:05 PM |
Subsystem | Context Actions |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Major |
State | Open |
Type | Feature |
Fix version | Backlog |
Affected versions | 2018.1, 7.0 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
- Standard Numeric Format Strings
- Custom Numeric Format Strings
Remembering all the details of these languages is tough, but they're actually very useful. ReSharper's in a great position to help out.
double d = 123.4;
Console.WriteLine(d|);
With the caret positioned as shown, R# detects that a conversion from a numeric type to a string is going to take place, and a CA is available that helps the developer build a valid numeric format string for the appropriate numeric type. The builder replaces the need to check online reference material as it lists all options and provides examples of how they format various values.
The builder provides all formatting options, including padding, decimal places, conversion to hex, presentation of negative numbers, scientific representation, percentage representation, etc.
This could also be available in other places that formatting might apply:
int i = 1234;
Console.WriteLine("{0|}", i); // Console.WriteLine("{0:#,##0}", i)
Console.WriteLine(i|); // Console.WriteLine(i.ToString("X4"));
var s = "ID = " + i|; // var s = "ID = " + i.ToString("D6");
Equally, the CA is available on existing numeric formatting operations, and may be used to find out how it's going to format the value in question.
Support for custom format strings (both for positive/negative) would be great too.
Since standard conversions are culture sensitive, a builder may allow for investigation of conversions to strings in different cultures. This can be very useful when designing UI layouts that fail in other cultures because strings are longer/shorter than expected.
Related to issue: http://youtrack.jetbrains.com/issue/RSRP-328948
RSRP-466305: Analysis is unsupported for document
Reporter | Philip Lee (philiplee) |
---|---|
Created | Sep 18, 2017 3:50:39 PM |
Updated | Apr 16, 2018 3:26:26 PM |
Resolved | Apr 16, 2018 3:26:26 PM |
Subsystem | No Subsystem |
Assignee | Unassigned |
Priority | Normal |
State | Duplicate |
Type | Unspecified |
Fix version | No Fix versions |
Affected versions | 2017.2, 2017.1.2 |
Fixed In Version ReSharper | Undefined |
VsVersion | VS 2017 15.3 |
Tried reverting from 2017.2 to 2017.1.3. Same issue.
Only seems to be a problem in WPF projects.
RSRP-468986: Code Analysis not working most of the time
Reporter | Werner de Vries (werner.devries) |
---|---|
Created | Mar 30, 2018 12:20:49 PM |
Updated | Apr 16, 2018 3:26:26 PM |
Resolved | Apr 7, 2018 10:25:34 PM |
Subsystem | Code Analysis |
Assignee | Sergey Kuks (coox) |
Priority | Critical |
State | Fixed |
Type | Bug |
Fix version | 2018.1 |
Affected versions | 2017.3.3, 2017.3.5, 2017.3.1, 2017.3, 2017.3.2, 2017.2, 2017.1.2, 2017.1.1, 2017.1, 2016.3.1, 2016.3.2, 2016.3, 2017.2.1, 2017.2.2 |
Fixed In Version ReSharper | 2018.1 RTM |
VsVersion | VS 2017 15.3, VS 2015 RTM |
Summary: Resharper's Code Analysis is disabled for almost all files most of the time. Many of my colleagues report the same issue. The is a forum topic about it for a long time, but still no solution. I (and other people) tried a lot of things to get things working again, even after a complete reinstall of my PC and Visual Studio 2017 + Resharper the problem persists.
Since the forum topic does not get enough attention I decided to create this issue, because we pay enough money for these tools every year and now they only work 50% of the time. We might as well cancel our subscription if this does not get solved anytime soon.
Link to the forum topic: https://resharper-support.jetbrains.com/hc/en-us/community/posts/115000015424-Code-Analysis-Not-Working-on-Many-Files?page=1#community_comment_360000121564
RSRP-469245: Downloaded latest version Resharper and In Visual Studio 2010 getting System Version 2.0.0.0 should be rereferned warning
Reporter | Bob Mossanen (bobmoss14@gmail.com) |
---|---|
Created | Apr 12, 2018 9:49:14 PM |
Updated | Apr 16, 2018 3:40:29 PM |
Subsystem | Platform - Project Model |
Assignee | Slava Tutushkin (slava.tutushkin) |
Priority | Show-stopper |
State | Open |
Type | Bug |
Fix version | 2018.1.1 |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
latest version Resharper in Visual Studio 2010 Win form getting System Version 2.0.0.0 should be referenced warning message every were
Currently have C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll, from where do i get version 2.0.0.0
RSRP-328993: Edit.LineOpenBelow Unexpected behavior
Reporter | James Alexander (yanigisawa) |
---|---|
Created | Aug 6, 2012 5:38:20 PM |
Updated | Apr 16, 2018 3:42:02 PM |
Subsystem | Context Actions |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Submitted |
Type | Usability Problem |
Fix version | Backlog |
Affected versions | 2018.1, 7.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
if (1 == 1)
I{ // Caret Position
}
else
{
}
Key Chord: Ctrl+Shift+Enter (Edit.LineOpenBelow VS command)
if (1 == 1)
{
I // Caret Position
}
else
{
}
if (1 == 1)
{
}
else
{
}
I // Caret Position
I have reset all visual studio settings to default, and even set the R# Keyboard Shortcuts to "None", and still R# overrides this behavior. Is there a work-around to get the default VS 2010 behavior?