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

RSRP-389727: dont create fields as readonly

$
0
0
Reporter SimonCropp (SimonCropp) SimonCropp (SimonCropp)
Created Oct 25, 2013 2:39:40 PM
Updated Oct 15, 2018 6:04:51 PM
Resolved Oct 15, 2018 6:04:51 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
can you please add an option to not create fields as readonly

RSRP-191179: Introduce and initialize field (from constructor parameter) quick-fix always creates readonly fields

$
0
0
Reporter Andrew Serebryansky (marcus23) Andrew Serebryansky (marcus23)
Created Sep 20, 2010 1:19:28 PM
Updated Oct 15, 2018 6:04:51 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 5.1.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Which is not always required. Should have an option to control this behavior or have 2 separate quick-fixes

RSRP-390357: Properties created with alt+enter are public by default

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Oct 30, 2013 4:09:03 PM
Updated Oct 15, 2018 6:06:17 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Improvement
Fix version Backlog
Affected versions 8.0, 8.0.1, 8.1 EAP, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
When creating a new property through alt+enter on a variable that does not exist, the generated code is public by default. In ReSharper 7 and below it seemed to be protected by default. Is it possible to change it so properties are protected by default?

RSRP-390634: When creating new property from constructor parameter create private setter

$
0
0
Reporter Joshua McKinney (joshka) Joshua McKinney (joshka)
Created Nov 1, 2013 5:58:23 PM
Updated Oct 15, 2018 6:08:15 PM
Resolved Oct 15, 2018 6:08:15 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Given
Class Foo {
public Foo(int asdf) { }
}


Creating a field from asdf creates:
private readonly int _asdf;

Whereas creating a property creates:
public int Foo { get; set; }

It would be nicer from an encapsulation perspective to create:
public int Foo { get; private set; }

This might need a setting to allow user to select default behaviour, or a dialog with sensible defaults to override this.

RSRP-391577: Type created outside of namespace

$
0
0
Reporter Philip Lee (philiplee) Philip Lee (philiplee)
Created Nov 7, 2013 1:40:06 PM
Updated Oct 15, 2018 6:12:31 PM
Resolved Oct 15, 2018 6:12:31 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version Backlog
Affected versions 8.1 EAP
Fixed In Version ReSharper Undefined
VsVersion All Versions
Say I create this

<asp:ListView runat="server" ItemType="GroupItem" SelectMethod="GetGroups">
<ItemTemplate>
<div></div>
</ItemTemplate>
</asp:ListView>

where GroupItem isn't defined.

R# offers to create GroupItem but does so with in the global namespace, and then obviously highlights this and suggests moving it into the appropriate namespace. Perhaps this behaviour could be improved.

RSRP-401450: Create from usage on Action and Func should offer to create method

$
0
0
Reporter Matt Ellis (citizenmatt) Matt Ellis (citizenmatt)
Created Jan 14, 2014 6:37:21 PM
Updated Oct 15, 2018 6:19:05 PM
Resolved Oct 15, 2018 6:19:05 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Feature
Fix version Unidentified prior version
Affected versions 8.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Given a method that takes an Action, typing an unknown symbol will offer to create from usage. It will offer to create a variable, field or property of type Action. It should also offer to create a void method taking no arguments.

See https://gist.github.com/jen20/2b340e2b6fade9d78798 for example

RSRP-372025: Using Create property 'NewProperty' quick-fix no longer prompts for Auto Property, create and use 'newProperty' as backing field, or default member body.

$
0
0
Reporter Nathan Brown (shiften) Nathan Brown (shiften)
Created Jun 20, 2013 8:34:16 PM
Updated Oct 15, 2018 6:22:28 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions 2018.2, 8.0 EAP
Fixed In Version ReSharper Undefined
VsVersion All Versions
This is a regression from ReSharper 7.1.2 and before. This hasn't been working for the last several versions of ReSharper 8 EAP.

When I assign a value against a non-existing property on own class or another class, I am prompted with a quick fix to create the property. On selecting the quick-fix, the property is created and I am prompted to specify the type. However, on hitting 'tab' or 'enter', the normal prompt to specify "Auto Property", "Create and use 'fieldName' as backing field", or "Default member body" does not appear. I am left with "throw new NotImplementedException()" in both the get and set handlers.

I am using Visual Studio 2012 and C# projects.

JetBrains ReSharper 8 EAP Full Edition Checked
Build 8.0.9.1171 on 2013-06-19T06:42:24
Plugins: 3
  1. 1. ReSharper.RazorExtensions v1.0.0.0 by “Xavier Decoster”
  2. 2. “Create Test Plugin” v1.0.0.0 by “Victor Kropp, JetBrains”
  3. 3. “NuGet support for ReSharper” v1.2.0.42457 by JetBrains
Visual Studio 11.0.60315.1.

RSRP-412939: Create property from usage is not that useful at the moment

$
0
0
Reporter T (thymin) T (thymin)
Created Apr 16, 2014 6:46:05 PM
Updated Oct 15, 2018 6:22:28 PM
Resolved Oct 15, 2018 6:22:28 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
class C { }

C c;
c.Prop = 1234;

When you ask R# to create C.Prop, you get:

class C {
public int Prop
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
}

That could be much better! Please allow me to pick:

Auto-property
Auto-prop with private setter
Auto-prop with private setter initialized from a constructor parameter
Property with backing field
throw new NotImplementedException
Leave code non-compilable (insert "return TODO;" or similar)

This feature has changed over the years quite a bit. Both for better and for worse. I suggest you dog-food it a bit to make sure that you actually produce a feature that real devs like.

RSRP-471500: [Performance Report] Lag when typing

$
0
0
Reporter Steven Bouwkamp (stevenbouwkamp) Steven Bouwkamp (stevenbouwkamp)
Created Sep 13, 2018 7:12:24 PM
Updated Oct 15, 2018 6:23:10 PM
Subsystem Code Analysis - C#
Assignee Razmik Seysyan (razmik)
Priority Show-stopper
State Open
Type Performance Problem
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Evaluator: False
OS Version: Microsoft Windows NT 10.0.16299.0
Product: dotCover, Version: 2018.2.20180912.160624
Product: dotTrace, Version: 2018.2.20180912.160542
Product: ReSharperCpp, Version: 2018.2.20180912.160214
Product: teamCityAddin, Version: 2018.2.20180912.160239
Product: ReSharper, Version: 2018.2.20180912.160227
Product: dotMemory, Version: 2018.2.20180912.160400
Time Zone: Eastern Standard Time

Description

Occasionally, when typing there is a noticeable lag or hitch occuring followed by a CPU spike into around 65% on an i75820k.

Been persistent through multiple versions of Visual Studio and Resharper.

There doesn't seem to be a commonality for where the problem pops up - could be in small solutions, large solutions, C#-only, VB.NET-only, or solutions with projects that are C# and VB.NET.

The lag does not go away through Visual Studio restarts, Resharper restarts, Resharper cache clears.

I've followed all performance guide reccommendations and none seem to help.

Issue was captured in one of the later snapshots, didn't realize it was already running in the first one :)

Thanks

RSRP-413602: Add missing enum member should respect existing conventions

$
0
0
Reporter T (thymin) T (thymin)
Created Apr 25, 2014 9:32:48 PM
Updated Oct 15, 2018 6:25:12 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Suppose the following enum exists:

public enum LoggingErrorCode
{
Generic = 1,
DataCaptureFailed = 2,
HostSendMailFailed = 3,
QueueProcessingFailed = 4,
}

Now let's say I write (LoggingErrorCode.DatabaseWriteFailed) and make R# add the missing error code. I get:

public enum LoggingErrorCode
{
Generic = 1,
DataCaptureFailed = 2,
HostSendMailFailed = 3,
QueueProcessingFailed = 4,

DatabaseWriteFailed
}

Two issues:

1. The numbering should have been continues
2. The empty line should not be there

RSRP-413739: Create Method

$
0
0
Reporter elan cao (elan_cao) elan cao (elan_cao)
Created Apr 29, 2014 7:06:07 AM
Updated Oct 15, 2018 6:27:01 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Improvement
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
when i create a method,Reshaper do like this:
private int GetValueBySomething(object parm)
{
throw new NotImplementedException();
//it's no use to me anyway
}
i want it do like this:
private List<int> GetValueBySomething(object parm)
{
List<int> result = new List<int>();
return result;
//just return the value type. i can change it
}

RSRP-471754: Analyzer 'JetBrains.ReSharper.Daemon.CSharp.Stages.ControlFlowFunctionProblemAnalyzer' thrown exception: Control-Flow analysis Sequence contains more than one element

$
0
0
Reporter Kirill Falk (kfalk) Kirill Falk (kfalk)
Created Oct 4, 2018 4:07:33 PM
Updated Oct 15, 2018 6:27:46 PM
Resolved Oct 15, 2018 6:27:46 PM
Subsystem Code Analysis - Control Flow
Assignee Ivan Serduk (IvanSerduk)
Priority Show-stopper
State Fixed
Type Exception
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
JetBrains Rider 2018.3 Build RD-183.3226.62 Date 2018-10-03T15:54:56.642+0000

— EXCEPTION #1/3 [InvalidOperationException]
Message = “Sequence contains more than one element”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = System.Core
StackTraceString = “
 at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
 at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
 at JetBrains.ReSharper.Psi.CSharp.Impl.ControlFlow.CSharpControlFlowGraph.get_RedundantJumpStatements() in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\Core\Psi\CSharp\Src\Impl\ControlFlow\CSharpControlFlowGraph.cs:line 199
 at JetBrains.ReSharper.Daemon.CSharp.Stages.ControlFlowProblemAnalyzerBase.StaticAnalysis(IDeclaration declaration, ICSharpTreeNode body, ICSharpControlFlowGraph graph, IHighlightingConsumer consumer) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\src\Daemon\CSharp\Src\Stages\Analysis\ControlFlowProblemHighlighter.cs:line 45
 at JetBrains.ReSharper.Daemon.CSharp.Stages.ControlFlowFunctionProblemAnalyzer.Analyze(ICSharpDeclaration declaration, IParametersOwner parametersOwner, ICSharpTreeNode functionBody, ElementProblemAnalyzerData data, IHighlightingConsumer consumer) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\src\Daemon\CSharp\Src\Stages\Analysis\ControlFlowFunctionProblemAnalyzer.cs:line 138


— Outer —

— EXCEPTION #2/3 [InvalidOperationException]
Message = “Control-Flow analysis”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.ReSharper.Daemon.CSharp
StackTraceString = “
 at JetBrains.ReSharper.Daemon.CSharp.Stages.ControlFlowFunctionProblemAnalyzer.Analyze(ICSharpDeclaration declaration, IParametersOwner parametersOwner, ICSharpTreeNode functionBody, ElementProblemAnalyzerData data, IHighlightingConsumer consumer) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\src\Daemon\CSharp\Src\Stages\Analysis\ControlFlowFunctionProblemAnalyzer.cs:line 163
 at JetBrains.ReSharper.Daemon.CSharp.Stages.ControlFlowFunctionProblemAnalyzer.Analyze(ICSharpDeclaration declaration, IParametersOwner parametersOwner, ICSharpTreeNode functionBody, ElementProblemAnalyzerData data, IHighlightingConsumer consumer) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\src\Daemon\CSharp\Src\Stages\Analysis\ControlFlowFunctionProblemAnalyzer.cs:line 163
 at JetBrains.ReSharper.Daemon.CSharp.Stages.ControlFlowFunctionProblemAnalyzer.Run(ITreeNode element, ElementProblemAnalyzerData data, IHighlightingConsumer consumer) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\src\Daemon\CSharp\Src\Stages\Analysis\ControlFlowFunctionProblemAnalyzer.cs:line 103
 at JetBrains.ReSharper.Feature.Services.Daemon.ElementProblemAnalyzerRegistrar.ElementAnalyzerDispatcher.Run(ITreeNode element, IHighlightingConsumer consumer) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\Core\Services\_Core\Src\Daemon\ElementProblemAnalyzerRegistrar.cs:line 217


— Outer —

— EXCEPTION #3/3 [LoggerException]
Message = “Analyzer 'JetBrains.ReSharper.Daemon.CSharp.Stages.ControlFlowFunctionProblemAnalyzer' thrown exception: Control-Flow analysis”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.LogException(String comment, Exception ex) in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 992
 at JetBrains.Util.Logging.Logger.LogException(String comment, Exception ex) in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 992
 at JetBrains.ReSharper.Feature.Services.Daemon.ElementProblemAnalyzerRegistrar.ElementAnalyzerDispatcher.Run(ITreeNode element, IHighlightingConsumer consumer) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\Core\Services\_Core\Src\Daemon\ElementProblemAnalyzerRegistrar.cs:line 217
 at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpErrorStageProcess.ProcessAfterInterior(ITreeNode element, IHighlightingConsumer consumer) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\src\Daemon\CSharp\Src\Stages\CSharpErrorStage.cs:line 111
at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase.<>c__DisplayClass4_0.<Execute>g__MemberHighlighter|0(ICSharpTypeMemberDeclaration declaration) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\src\Daemon\CSharp\Src\Stages\CSharpIncrementalDaemonStageProcessBase.cs:line 73
 at JetBrains.ReSharper.Psi.Extensions.<>c__DisplayClass0_0.<EnqueueJob>b__0() in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\Core\Psi\_Core\Src\CompilationContextCookie.cs:line 330
 at JetBrains.ReSharper.Psi.Extensions.<>c__DisplayClass0_0.<EnqueueJob>b__0() in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\Core\Psi\_Core\Src\CompilationContextCookie.cs:line 330
 at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action) in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Concurrency\Threading\Tasks\TaskHost.cs:line 158
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass33_0.<Create>b__1(Object state) in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Concurrency\Threading\Tasks\TaskHost.cs:line 216
 at System.Threading.Tasks.Task.Execute()
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
 at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task) in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Concurrency\Threading\Tasks\Scheduler\JetScheduler.cs:line 218
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask() in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Concurrency\Threading\Tasks\Scheduler\JetSchedulerThread.cs:line 203
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc() in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Concurrency\Threading\Tasks\Scheduler\JetSchedulerThread.cs:line 153
 at JetBrains.Util.Reflection.CallStackAnnotation.InvokeAnnotated(String classNameOfNewFrame, String methodNameOfNewFrame, Action actionToAnnotate) in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Reflection\CallStackAnnotation.cs:line 122
 at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate) in C:\Build Agent\work\c8d4f91fb89c3b1b\Platform\Core\Shell\Core\Src\Reflection\CallStackAnnotation.cs:line 138
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Threading.ThreadHelper.ThreadStart()



last.action = null

app.eap = true
app.internal = false
app.build = RD-183.3226.62
app.version.major = 2018
app.version.minor = 3
app.build.date = 2018-10-03T15:54:56.642+0000
app.build.date.release = 2018-08-24T00:00:56.642+0000
app.build.date.release = 2018-08-24T00:00:56.642+0000
app.compilation.timestamp = null
app.product.code = RD

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

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

RSRP-417553: Missing VB Quickfix "Create Function..."

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Jul 4, 2014 3:59:49 PM
Updated Oct 15, 2018 6:30:23 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 8.2.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I've typed an assignment of a function result to a variable. R# offers me the following quick fixes:


I would like to see if you could add a "Create Function 'GetMissingEposObject'" quikfix in the next release of R#. If i use the built in error correction option "Create method stub..." a function is generated.

RSRP-419143: When creating properties, choose private setters instead of public when possible

$
0
0
Reporter Joshua McKinney (joshka) Joshua McKinney (joshka)
Created Jul 23, 2014 5:03:41 AM
Updated Oct 15, 2018 6:32:10 PM
Resolved Oct 15, 2018 6:32:10 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Usability Problem
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
When creating properties from constructor parameters, nothing is yet using the property, hence it should likely have a private setter rather than a public one by default.

RSRP-420671: property Creator from Private Variable Keep invalid code

$
0
0
Reporter Yannick Lapierre (exatex) Yannick Lapierre (exatex)
Created Aug 8, 2014 1:32:47 PM
Updated Oct 15, 2018 6:35:48 PM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
When I want create a Property Resharper suggest me a list of Private Variable. if a select on of them, it will create the Property code correctly, but keep the line I had started to write.

RSRP-458414: Easier way to fix unknown symbols

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Apr 21, 2016 4:16:43 PM
Updated Oct 15, 2018 6:43:40 PM
Subsystem Quick Fixes - Create From Usage
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
Currently the QF menu for unknown symbols can be quite long. Maybe it's a local variable that needs to be added. Maybe a param. Maybe a method. R# makes a good guess via capitalisation and context, but it can't always be sure.

It'd be easier if we could just use the existing shortcut keys for "introduce parameter", "extract method", "introduce variable", "introduce field" whenever the caret is on an unknown symbol. This is one key chord, instead of alt+enter, read, think, check again, maybe navigate, enter.

These shortcut keys are baked into R# user's brains, so there's less concentration required than reading a menu. They also don't require moving your hands off the home position to the arrow keys.

RSRP-459760: Create from usage: When creating a field named "group", the field has an unnecessary @ in front of it.

$
0
0
Reporter Kirill Rakhman (kirill.rakhman) Kirill Rakhman (kirill.rakhman)
Created Jul 13, 2016 4:00:46 PM
Updated Oct 15, 2018 6:45:05 PM
Resolved Oct 15, 2018 6:45:05 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
What the title says

RSRP-459185: 'Redundant verbatim prefix' for @group and @from

$
0
0
Reporter Edward Avis (epa) Edward Avis (epa)
Created Jun 9, 2016 4:30:14 PM
Updated Oct 15, 2018 6:45:05 PM
Subsystem Psi - C#
Assignee Alexander Shvedov (shvedov)
Priority Critical
State Open
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
If C# code contains variables 'group' and 'from', some Resharper operations will automatically change them to @group and @from. But at the same time they are flagged as 'redundant verbatim prefix' and Resharper prompts you to remove the @.

RSRP-439608: Compilation error after applying a quickfix

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created May 13, 2015 11:01:55 AM
Updated Oct 15, 2018 6:50:51 PM
Subsystem Quick Fixes
Assignee Ivan Serduk (IvanSerduk)
Priority Critical
State Submitted
Type Bug
Fix version Backlog
Affected versions 9.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
using System;

class Program
{
static void Main() {
var x = DateTime.Now.Day > 10 ? 1 : new Program() ?? default(object);
}
}

RSRP-463856: "Create Read-Only Property" doesn't create a read-only property

$
0
0
Reporter Denis Abramov (sparky2708) Denis Abramov (sparky2708)
Created Mar 21, 2017 6:59:18 PM
Updated Oct 15, 2018 6:51:40 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions 2017.2, 2018.3
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM
When you select "Create Read-Only Property" from the Quick Fixes dropdown it doesn't actually create a read-only property. The only thing I can think of that I changed is that I set the project property: "C# Language Level" to be "C# 5.0".

It creates:

    public object ReferenceID { get; private set; }

I would have expected:

    public object ReferenceID { get; }
Viewing all 106942 articles
Browse latest View live


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