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

RSRP-189889: Quickfix: use object initializer

$
0
0
Reporter Philip Lee (philiplee) Philip Lee (philiplee)
Created Aug 31, 2010 3:36:23 PM
Updated Oct 4, 2018 5:17:47 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 5.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
In this code (from a Prism WPF app), R# suggests 'use object initializer' on the marked line. This may be a valid suggestion but accepting the suggestion only updates the marked line and will therefore break the Silverlight build.

DialogActivationBehavior behavior;
  1. if SILVERLIGHT
behavior = new PopupDialogActivationBehavior();
  1. else
behavior = new WindowDialogActivationBehavior(); /*****/
  1. endif
behavior.HostControl = owner;

RSRP-471753: Unit Tests don't discover and run all the xUnit tests using extensibility

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Oct 4, 2018 4:12:05 PM
Updated Oct 4, 2018 5:24:08 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


RSRP-466905: Local functions break razor parsing

$
0
0
Reporter Andrey Dyatlov (Andrey.Dyatlov) Andrey Dyatlov (Andrey.Dyatlov)
Created Nov 2, 2017 5:41:10 PM
Updated Oct 4, 2018 5:29:34 PM
Subsystem ASP.NET - Razor
Assignee Slava Trenogin (derigel)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Uncomment the local function in the following code snippet and observe incorrect highlighting of the 'text' tag

@helper GetValue()
{
    // void Local() { } 

    <text></text>
}

RSRP-190805: QuickFix Rename Scrolls Incosistently

$
0
0
Reporter Greg Law (lothan) Greg Law (lothan)
Created Sep 11, 2010 11:04:08 PM
Updated Oct 4, 2018 5:42:34 PM
Resolved Oct 4, 2018 5:42:34 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions 5.1.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharper exhibits inconsistent behavior about where to scroll the file when using quickfix to rename fields, properties, parameters, and variables. Sometimes it positions the current line at the very top of the window, near the top of the window, approximately half way down the window, or the scroll position doesn't change at all. I'm sure there is some weird logic behind the madness, but it seems to reposition the file at random.

If I had my choice, I would prefer ReSharper to leave the scroll position where it is. If you must change the scroll position, put the current line in the middle of the window and be consistent about it.

RSRP-190908: Implement members quick fix in VB

$
0
0
Reporter Olga Lukianova (olka) Olga Lukianova (olka)
Created Sep 14, 2010 3:01:41 PM
Updated Oct 4, 2018 5:46:57 PM
Resolved Oct 4, 2018 5:46:57 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Should replace 'Implement members' context action and should be available on error range instead of 'Implements' interfaces.

RSRP-471744: Work with Roslyn team to ensure smooth migration from JetBrains.Annotations [CanBeNull]] to the new C# 8 nullable types feature

$
0
0
Reporter Виктор Милованов (Виктор.Милованов) Виктор Милованов (Виктор.Милованов)
Created Oct 4, 2018 9:10:04 AM
Updated Oct 4, 2018 5:50:16 PM
Subsystem Code Analysis - Annotations
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

I was wondering if you are working with Roslyn team on this. I just attended a talk, where they explained, that so far plan is to mark things with new attributes, similar to ones in JetBrains.Annotations (e.g. CanBeNull and NotNull). My concern in basically to ensure, that people, who currently use [CanBeNull] will have to replace every single one of them with whatever the new attribute going to be.

It would be magical, if the new C# compiler would recognize these annotations from old assemblies (e.g. compiled with 7.3-).

It would be even better if I did not have to manually update every [CanBeNull] in my code with the new attribute Microsoft introduces. Ideally, you could try to convince Microsoft to simply use JetBrains.Annotations in the first place. Or have it map automatically.

RSRP-468500: Running a bunch of NUnit tests with some of them marked [ ,Explicit] will result in running all the tests in the project

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Feb 26, 2018 1:24:18 PM
Updated Oct 4, 2018 5:53:32 PM
Resolved Oct 4, 2018 5:53:32 PM
Subsystem Unit Testing
Assignee Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Priority Major
State Duplicate
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
When running several tests (e.g. from the same .cs file) which include [ ,Explicit] tests,
  • the test runner hangs before actually running these tests
or
  • the test runner hangs after running the tests and before it ends the session.

Reproduced with a project which has several .cs files with unit tests. Looks like the runner launches all the tests instead of selected only.

RSRP-471450: Testrunner making all tests in fixture explicit when making [TestCaseSource] [Explicit]


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 4, 2018 5:55:10 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-471625: Failed to install NuGet package Sequence contains no elements

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Sep 12, 2018 5:16:38 PM
Updated Oct 4, 2018 6:02:40 PM
Subsystem Platform - VS Integration
Assignee Serge Baltic (baltic)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 183 Hive _138bc0bdReSharper_Uber — JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180912.74724-eap01d

JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180912.74724-eap01d

Failed to install NuGet package Sequence contains no elements

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Sequence contains no elements”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = System.Core
StackTraceString = “
 at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at JetBrains.Platform.VisualStudio.SinceVs10.ProjectDocumentsNuget.Thin.NugetServicesWrapper.<>c__DisplayClass8_0.<PublishServices>g__FindExtProject|26(FileSystemPath projectFilePath)
 at JetBrains.Platform.VisualStudio.SinceVs10.ProjectDocumentsNuget.Thin.NugetServicesWrapper.<>c__DisplayClass8_0.<PublishServices>b__24(Lifetime lifetime, ValueTuple`5 tuple)
 at JetBrains.Platform.VisualStudio.SinceVs10.ProjectDocumentsNuget.Thin.NugetServicesWrapper.<>c__DisplayClass8_0.<PublishServices>b__24(Lifetime lifetime, ValueTuple`5 tuple)
 at JetBrains.Platform.RdFramework.Tasks.InprocRpc`2.Start(TReq request, IScheduler responseScheduler)
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.Common.NuGetApi.BeginInstallAssemblyAsNuGetPackage(IList`1 assemblyLocations, ProjectFileDescriptor projectDescriptor, FileSystemPath& installedLocation)
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.Common.NuGetApi.BeginInstallAssemblyAsNuGetPackage(IList`1 assemblyLocations, IProject project, FileSystemPath& installedLocation)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Failed to install NuGet package Sequence contains no elements”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = vb
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180912.74724-eap01d”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180912.74724-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/183::e94232bd8cec4ec1413dcbcd6d497d049b747558

Data.VsVersion = 15.8.28010.2026
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex)
 at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex)
 at JetBrains.Util.Logging.LogEx.Error(ILog this, Exception ex, String message)
 at JetBrains.Util.Logging.Logger.LogException(String comment, Exception ex)
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.Common.NuGetApi.BeginInstallAssemblyAsNuGetPackage(IList`1 assemblyLocations, IProject project, FileSystemPath& installedLocation)
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.Common.NuGetApi.InstallNuGetPackageFromAssemblyFiles(IList`1 assemblyLocations, IProject project, FileSystemPath& installedLocation)
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.AddReference.NuGetModuleReferencer.ReferenceModule(IPsiModule module, IPsiModule moduleToReference)
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.AddReference.NuGetModuleReferencer.ReferenceModuleWithType(IPsiModule module, ITypeElement typeToReference)
 at JetBrains.ReSharper.Psi.Modules.ModuleReferencerService.ReferenceModuleWithType(IPsiModule module, ITypeElement typeToReference)
 at JetBrains.ReSharper.Intentions.QuickFixes.ReferenceModuleAndTypeFixItem.ExecuteBeforePsiTransaction(ISolution solution, IProjectModelTransactionCookie cookie, IProgressIndicator progress)
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.<>c__DisplayClass0_3.<Execute>b__0(IProgressIndicator progress)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunStartTaskCallTaskAction(IProperty`1 isDone, ProgressIndicator progressIndicator, TaskThreadAffinity taskThreadAffinity, Action`1 FTask, JetDispatcher dispatcherPrimary)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.<>c__DisplayClass11_0.<RunStartTask>b__0()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass18_0.<BeginInvokeCore>b__0()
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 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)
 at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
 at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
 at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
 at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
 at System.Windows.Forms.Application.RunDialog(Form form)
 at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
 at System.Windows.Forms.Form.ShowDialog()
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunCore(TaskThreadAffinity taskThreadAffinity, Action`1 FTask, Func`3 FAttachUi, ProgressIndicator progressIndicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRuns.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task)
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.Execute(ISolution solution, ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.Intentions.IntentionAction.MyExecutableProxi.Execute()
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked()
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.<>c__DisplayClass29_0.<InitMenuGeneral>b__0(Object objKey)
 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.Application.UI.Controls.JetPopupMenu.JetPopupMenu.<>c__DisplayClass49_0.<InitViewModel>b__3(JetPopupMenuItem item)
 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.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.Application.UI.Controls.JetPopupMenu.Detail.JetPopupMenuDoc.ExecuteSelectedItem()
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuMainpartView.OnKeyDownLowPriority(KeyEventArgs args)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuView.OnKeyDown(KeyEventArgs args)
 at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
 at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
 at System.Windows.Forms.Control.WmKeyChar(Message& m)
 at System.Windows.Forms.Control.WndProc(Message& m)
 at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
 at System.Windows.Forms.Form.WndProc(Message& m)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuView.WndProc(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
 at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
 at System.Windows.Forms.NativeWindow.WndProc(Message& m)
 at JetBrains.UI.Utils.DpiUtil.TopLevelWindowDpiTracker.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.InternalPumpMessagesOnce()
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run(Func`1 condition, TimeSpan timeout, Boolean bThrowOnTimeout)
 at JetBrains.Threading.JetDispatcher.Run(Func`1 condition, TimeSpan timeout, Boolean bThrowOnTimeout)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.JetPopupMenuOverlordView.Show(Boolean isModal)
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenus.ShowCore(JetPopupMenu menu, ShowWhen when, Boolean isModal, LifetimeDefinition lifetimeDefinitionOptional, IJetPopupMenuOverlordView parentView)
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenus.ShowModal(JetPopupMenu menu, ShowWhen when, LifetimeDefinition lifetimeDefinitionOptional)
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.ShowBulbMenuAdvanced(IEnumerable`1 menuItems, PopupWindowContextSource contextSource, GotoByNameModel gotoByNameModel, Action`1 modelInitHandler, LifetimeDefinition viewLifetimeDefinition, IAutomation captionAutomation, Action`1 beforeShow)
 at JetBrains.ReSharper.Intentions.Bulbs.BulbOnGutterMarginIndicator.ExecuteIndicator(IDataContext context, BulbItemsReadyState readyState)
 at JetBrains.ReSharper.Intentions.Bulbs.IndicatorControllerBase.HandleAction(IDataContext context)
 at JetBrains.ReSharper.Intentions.Bulbs.AltEnterHandlers.HandleAction(IDataContext context)
 at JetBrains.ReSharper.Intentions.Bulbs.AltEnterActionHandler.Execute(IDataContext context, DelegateExecute nextExecute)
 at JetBrains.Application.UI.ActionsRevised.Handlers.ExecutableActionEvaluator.Execute(IAction action, IReadOnlyCollection`1 allActions, IDataContext dataContext)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.ExecuteWithoutRequirements()
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_1.<PrepareRequirementsAsync>b__0()
 at JetBrains.Application.UI.ActionSystem.ActionsRevised.Handlers.RequirementsManager.ExecuteActionAsync(IActionRequirement requirement, Action continueWith, Action failWith, Boolean reSharperIsThinking)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.PrepareRequirementsAsync(OuterLifetime lifetime, Func`1 executeWhenRequirementsReady, Action`1 failWith)
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.Execute()
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.<>c__DisplayClass17_0.<CommandTargetExec>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.CommandTargetExec(CommandID commandid, OLECMDEXECOPT cmdExecOpt)
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.<.ctor>b__12_2(CommandID commandid, OLECMDEXECOPT opt, IntPtr in, IntPtr out)
 at JetBrains.VsIntegration.Shell.Package.VsPackageSdkStub.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& guidGroup, UInt32 nCmdId, UInt32 nCmdExcept, IntPtr vIn, IntPtr vOut)

RSRP-191980: QFix "Make Method Return Void": Should Remove Return Value Nullity Annotation

$
0
0
Reporter Serge Baltic (baltic) Serge Baltic (baltic)
Created Oct 5, 2010 12:07:03 AM
Updated Oct 4, 2018 6:05:03 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
[NotNull] and [CanBeNull] should be removed from method.

RSRP-471126: Bogus Unable to choose more specific candidate

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Aug 17, 2018 4:28:19 PM
Updated Oct 4, 2018 6:05:06 PM
Subsystem Psi - VB.NET
Assignee Olga Lukianova (olka)
Priority Show-stopper
State Fixed In Branch
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Public Class Class1
Public Shared Function Create(Of T)(item As T) As Class1
Return New Class1()
End Function
Public Shared Function Create(Of T)(ParamArray items As T()) As Class1
Return New Class1()
End Function

End Class

Public Class Class2
Public Sub foo(ParamArray items As Class2())
Class1.Create(items)
End Sub
End Class

RSRP-193639: Quickfix to remove unused member does not process overriders/implementors

$
0
0
Reporter Valentin Kipiatkov (valentin) Valentin Kipiatkov (valentin)
Created Oct 15, 2010 7:29:56 PM
Updated Oct 4, 2018 6:10:54 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Bug
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
When ReSharper detects an interface or virtual method which is unused the quickfix to delete it does not remove implementors/overriders. Either it should delete them too or at ask to do that (ask Ilya?).
Note that there is a special variant of unused member highlighting which claims that only implementors/overriders of the method are used. In this case it should leave those implementors/overriders which are used. Can Safe Delete manage to do that? Ask Sergey.

RSRP-379554: Remove unused variable from combined deceleration and assignment leaves the assignment behind if assignment is a method

$
0
0
Reporter mark leavesley (markleavesley) mark leavesley (markleavesley)
Created Jul 18, 2013 3:29:59 PM
Updated Oct 4, 2018 6:17:09 PM
Resolved Oct 4, 2018 6:17:09 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Unspecified
Fix version No Fix versions
Affected versions 8.0 EAP
Fixed In Version ReSharper Undefined
VsVersion VS10 (2010)
If you have 'Dim X As Integer = AFunc()' and X is unused, removing the unused variable will leave 'AFunc()' behind. See attachments. If the assignment is a literal or a system function such as Now.Ticks, the whole line is removed.

RSRP-272110: Remove unused resources

$
0
0
Reporter Richard Pruitt (Richard.Pruitt) Richard Pruitt (Richard.Pruitt)
Created Jun 11, 2011 10:53:39 PM
Updated Oct 4, 2018 6:19:36 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Add ability to remove unused resources. For example my projects may have several images, string or other resources that are no longer used. They many be in the Properties\Resources.resx or would be nice if it could also find any items that are marked as specific build actions, like content, that are not being referenced. For both winforms and XAML.

With Visual Studio it is very difficult to manage all of the images and strings and other resources that are used throughout the solution.

RSRP-442379: Usability problems in the 'Remove Unused References' dialog

$
0
0
Reporter Dmitry Matveev (Dmitry.Matveev) Dmitry Matveev (Dmitry.Matveev)
Created Jun 25, 2015 7:17:47 PM
Updated Oct 4, 2018 6:22:22 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Usability Problem
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
  1. Enable Undo - now undo is not possible for references anyway. Either make it possible or remove the check box and add a warning that undo is impossible
  2. Preview - this button makes no sense here
  3. Group by - this selector makes no sense either. It always shows a single option

RSRP-272229: VB.Net removing unused variable leads to syntax error

$
0
0
Reporter Geoff Hart (gghart) Geoff Hart (gghart)
Created Jun 14, 2011 12:05:56 AM
Updated Oct 4, 2018 6:26:21 PM
Resolved Oct 4, 2018 6:26:21 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Duplicate
Type Usability Problem
Fix version Backlog
Affected versions 6.0 EAP
Fixed In Version ReSharper Undefined
VsVersion All Versions
In the following code sample, which is being used because creating the class has a side-effect, f is marked as unused and the recommented action is to remove it. If you do that, the code will no longer compile.

Admittedly, I don't really know what I'd like to happen here since this is an unusual thing to find in code. However, having the quick-correct break the code isn't good.

Language: VB.Net 4.0
ReSharper: 6.0.2161.480 (2011-06-10)

Code
Public Class Test
Public Sub Foo()
Dim f As Form = New Form
End Sub
End Class

RSRP-304167: 'Remove unused variable' goes wrong in terms of removal and highlighting

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created May 22, 2012 6:04:41 PM
Updated Oct 4, 2018 6:26:46 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 7.0, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Steps:
1. Type in:
var variablename = new Bitmap();
2. Press Alt+Enter on 'variablename' name and select 'Remove Unused Variable'.

Result:
1. Shown on screenshot. 'new Bitmap();' is not removed, and blue highlighting stays there whatever actions are done after that.

Expected:
1. Normal work.

RSRP-197131: Wrong text in a quick fix

$
0
0
Reporter Josh (Buedel) Josh (Buedel)
Created Nov 4, 2010 7:27:05 PM
Updated Oct 4, 2018 6:34:50 PM
Resolved Oct 4, 2018 6:34:50 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Cosmetics
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
This code...
    internal static class Args {
        public static Args Parse(string[] args)
        {
            return new Args();
        }
    }
causes a quick fix to be offered on the new keyword that reads "make class Args non-abstract". Invoking it removes the static keyword from the class. I expected the quick fix to read "make class Args non-static".

RSRP-199927: QF "Fix parameter text" doesn't available in property/indexer setter

$
0
0
Reporter Alexander Nesterenko (alexn) Alexander Nesterenko (alexn)
Created Dec 9, 2010 10:59:50 AM
Updated Oct 4, 2018 6:40:37 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Bug
Fix version Backlog
Affected versions 5.1.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
      public IProtein CurrentProtein
{
get { return _currentProtein; }
protected set
{
if (value == null) throw new ArgumentNullException("name");

// Set the New Protein
_currentProtein = value;
}
}
Viewing all 106942 articles
Browse latest View live


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