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

RSRP-47002: error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Aug 8, 2007 2:25:46 PM
Updated Oct 4, 2018 12:31:24 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
using System;

[A(X = new bool[] { 1 is int })] // error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression
class AAttribute : Attribute
{
public bool[] X;
}

RSRP-169462: error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Mar 4, 2010 5:09:34 PM
Updated Oct 4, 2018 12:31:24 PM
Resolved Oct 4, 2018 12:30:53 PM
Subsystem Code Analysis - C#
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
using System;

[A(new[] { "" })] // error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
class A : Attribute
{
public A(params object [] x){}
}

RSRP-471536: Object reference not set to an instance of an object.

$
0
0
Reporter Anna Milova (anna.milova) Anna Milova (anna.milova)
Created Sep 18, 2018 5:26:32 PM
Updated Oct 4, 2018 12:49:26 PM
Resolved Oct 4, 2018 12:49:26 PM
Subsystem Navigation - Search (Find Usages)
Assignee Alexander Ulitin (alexander.ulitin)
Priority Normal
State Fixed
Type Exception
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs12 Wave 183 Hive DotnetProducts — JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180916.0-eap01d

JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180916.0-eap01d
JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180916.0-eap01d

Object reference not set to an instance of an object.

— EXCEPTION #1/2 [NullReferenceException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root.InnerException
ClassName = System.NullReferenceException
HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
Source = JetBrains.Platform.ProjectModel
StackTraceString = “
 at JetBrains.ProjectModel.NuGet.Packaging.NuGetLegacyInstalledPackageNamesProvider.<>c__DisplayClass6_0.<GetInstalledPackage>b__0(NuGetNupkg nupkg)
 at JetBrains.ProjectModel.NuGet.Packaging.NuGetLegacyInstalledPackageNamesProvider.<>c__DisplayClass6_0.<GetInstalledPackage>b__0(NuGetNupkg nupkg)
 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
 at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
 at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
 at JetBrains.ProjectModel.NuGet.Packaging.NuGetLegacyInstalledPackageNamesProvider.GetInstalledPackage(IProject project, NugetId id)
 at JetBrains.ProjectModel.Resolver.NugetPackageResolver.<>c__DisplayClass5_0.<GetResolveResult>b__1(INugetInstalledPackageNamesProvider p)
 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
 at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
 at JetBrains.ProjectModel.Resolver.NugetPackageResolver.GetResolveResult(IProjectToPackageReference reference)
 at JetBrains.ReSharper.Features.Inspections.AnalyzeReferences.AnalyzeReferencesNugetDependencyGraph.CreateDependencyGraphs(IProject project)
 at JetBrains.ReSharper.Features.Inspections.AnalyzeReferences.AnalyzeReferencesNugetDependencyGraph.CreateNugetUsageGraph(IEnumerable`1 usedReferencesModules, IProject project)
 at JetBrains.ReSharper.Features.Inspections.AnalyzeReferences.RemoveUnused.RemoveUnusedReferencesWorkflow.ProcessSingleProject(IProject project, IProgressIndicator pi)
 at JetBrains.ReSharper.Features.Inspections.AnalyzeReferences.RemoveUnused.RemoveUnusedReferencesWorkflow.SearchUnusedModules(IProgressIndicator pi)
 at JetBrains.ReSharper.Features.Inspections.AnalyzeReferences.RemoveUnused.RemoveUnusedReferencesPage.Initialize(IProgressIndicator pi)
 at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper`1.ExecuteAction(IProgressIndicator pi)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Object reference not set to an instance of an object.”
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 D Build 183.0.20180916.0-eap01d”
Data.SubProducts.#0 = “JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180916.0-eap01d”
Data.SubProducts.#1 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180916.0-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/183-am-watch::13a5979caa244a85b4977549ddbc8572779a3c94

Data.VsVersion = 12.0.40629.0
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(Exception ex)
 at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper`1.ExecuteAction(IProgressIndicator pi)
 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 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.Refactorings.WorkflowExecuter.RunWithProgress[TResult](Func`2 action, String taskName, TResult& result)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.InitPage(IRefactoringPage page)
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.FirstPage()
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.StartRefactoring()
 at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.ExecuteWithCustomHost(IDataContext context, IRefactoringWorkflow refactoringWorkflow, IWorkflowHost host)
 at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WinformsRefactoringActionHostProvider.ExecuteRefactoring(IDataContext context, IRefactoringWorkflow workflow)
 at JetBrains.ReSharper.Feature.Services.Refactorings.RefactoringActionUtil.ExecuteRefactoring(IDataContext context, IRefactoringWorkflow refactoringWorkflow)
 at JetBrains.ReSharper.Feature.Services.Refactorings.ExtensibleRefactoringAction`1.Execute(IDataContext context, IRefactoringWorkflow refactoringWorkflow)
 at JetBrains.ReSharper.Feature.Services.ActionsMenu.ExtensibleAction`3.Execute(IDataContext dataContext, 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)
 at Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource.Invoke(String verb, Object pvaIn, Object& pvaOut)
 at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(String verb, Object pvaIn, Object& pvaOut)
 at Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(Object parameter)
 at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
 at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
 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.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 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 Microsoft.VisualStudio.PlatformUI.NativeMethods.DispatchMessage(MSG& lpmsg)
 at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.<PushMessageLoopOnContextMenuTrackingComponent>b__6b(Object sender, PreTranslateMessageEventArgs args)
 at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.FPreTranslateMessageCore(MSG[] pMsg)
 at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.<>c__DisplayClasse.<Microsoft.VisualStudio.OLE.Interop.IOleComponent.FPreTranslateMessage>b__d()
 at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.CallAndReturnOnException(Func`1 method, Int32 retValueOnException)
 at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.Microsoft.VisualStudio.OLE.Interop.IOleComponent.FPreTranslateMessage(MSG[] pMsg)
 at Microsoft.VisualStudio.OLE.Interop.IOleComponentManager.FPushMessageLoop(UInt32 dwComponentID, UInt32 uReason, IntPtr pvLoopData)
 at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.PushMessageLoopOnContextMenuTrackingComponent()
 at Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.ExecCommand(UInt32 itemid, Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.Internal.VisualStudio.PlatformUI.HierarchyUtilities.<>c__DisplayClass22.<ExecHierParentChain>b__1f()
 at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(Func`1 method, Boolean reportError, Boolean setShellErrorInfo)
 at Microsoft.Internal.VisualStudio.PlatformUI.HierarchyUtilities.ExecHierParentChain(IVsHierarchyItemManager manager, IVsUIHierarchy lpUIHCmd, IVsUIHierarchy lpUIHCurrent, UInt32 itemidCurrent, Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.PlatformUI.HierarchyItem.HierarchyContextMenuController.ShowContextMenu(IEnumerable`1 items, Point location)
 at Microsoft.Internal.VisualStudio.PlatformUI.ContextMenuController.ShowContextMenu(IEnumerable`1 items, Point location, Func`2 getController)
 at Microsoft.Internal.VisualStudio.PlatformUI.ContextMenuController.ShowContextMenu(IEnumerable`1 items, Point location)
 at Microsoft.Internal.VisualStudio.PlatformUI.PivotTreeView.OnContextMenuOpening(ContextMenuEventArgs e)
 at System.Windows.FrameworkElement.OnContextMenuOpeningThunk(Object sender, ContextMenuEventArgs e)
 at System.Windows.Controls.ContextMenuEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
 at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
 at System.Windows.ContentElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
 at System.Windows.Controls.PopupControlService.RaiseContextMenuOpeningEvent(IInputElement source, Double x, Double y, Boolean userInitiated)
 at System.Windows.Controls.PopupControlService.ProcessMouseUp(Object sender, MouseButtonEventArgs e)
 at System.Windows.Controls.PopupControlService.OnPostProcessInput(Object sender, ProcessInputEventArgs e)
 at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
 at System.Windows.Input.InputManager.ProcessStagingArea()
 at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
 at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
 at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
 at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at System.Windows.Interop.HwndSource.InputFilterMessage(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)

RSRP-184155: Encapsulate Field should keep property in current Region

$
0
0
Reporter Pierre Huguet (phuguet) Pierre Huguet (phuguet)
Created Jun 28, 2010 6:35:36 AM
Updated Oct 4, 2018 12:54:27 PM
Subsystem Refactorings
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 encapsulating a field inside a code region, the properties are moved to other regions (based on alphabetical order?).

Expected behavior: the encapsulated properties should stay in the same region as the private fields.

JetBrains ReSharper 5 Full Edition
Build 5.0.1659.36 on 2010-04-13T02:19:06

Licensed to: XPDreamTeam LLC.
Plugins: none.
Visual Studio 10.0.30319.1.

RSRP-184416: ToDictionary is not suggested when the target is a field instead of a variable

$
0
0
Reporter Tatham Oddie (tatham) Tatham Oddie (tatham)
Created Jun 29, 2010 12:03:22 PM
Updated Oct 4, 2018 12:56:14 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State To be discussed
Type Bug
Fix version Backlog
Affected versions 5.0, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharper does not suggest to use ToDictionary in the following code because the dictionary is stored in a field:

Dictionary<string, PropertyInfo> _properties;
void Foo()
{
_properties = new Dictionary<string, PropertyInfo>();
var pis = typeof(Bar).GetProperties();
foreach (var pi in pis)
{
_properties.Add(pi.Name, pi);
}
}

class Bar {}

The suggestion is provided if the target is a variable instead:

void Foo()
{
var properties = new Dictionary<string, PropertyInfo>();
var pis = typeof(Bar).GetProperties();
foreach (var pi in pis)
{
properties.Add(pi.Name, pi);
}
}

class Bar {}

I would expect the suggestion to be offered in both scenarios.

RSRP-184527: Do not suggest QFixes that require to insert types not expressible in the target language

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Jun 29, 2010 5:42:01 PM
Updated Oct 4, 2018 12:59:32 PM
Subsystem Quick Fixes
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
class B : I
{
void I.Foo(){}
}

See declaration of I in the assembly A in attachment.

Currently R# attempts to perform QF and throws exception.

RSRP-184871: "Invert 'if' to reduce nesting" helper produces an empty statement block when the original block throws an exception

$
0
0
Reporter Tatham Oddie (tatham) Tatham Oddie (tatham)
Created Jul 1, 2010 5:32:29 AM
Updated Oct 4, 2018 1:02:24 PM
Resolved Oct 4, 2018 1:02:24 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions 5.0
Fixed In Version ReSharper Undefined
VsVersion All Versions
This code:

bool _bar, _baz;
void Foo()
{
if (_bar)
{
if (_baz)
{
_bar = false;
}

throw new Exception();
}
}

Turns into this when the helper is used against the first 'if' statement:

bool _bar, _baz;
void Foo()
{
if (!_bar)
{
}
else
{
if (_baz)
{
_bar = false;
}

throw new Exception();
}
}

I would expect this:

bool _bar, _baz;
void Foo()
{
if (!_bar) return;
if (_baz)
{
_bar = false;
}

throw new Exception();
}

RSRP-471715: Incorrect position of caret when navigating to next issue

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Oct 1, 2018 3:27:38 PM
Updated Oct 4, 2018 1:10:47 PM
Subsystem Navigation - Contextual
Assignee Alexander Ulitin (alexander.ulitin)
Priority Normal
State Submitted
Type Bug
Fix version 2018.3
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Start decorating a parameter of the constructor with Lazy<, e.g.:

2. Hit <Alt>+<PgDown> to place the text caret at the error that occurs because the Lazy< is not terminated correctly

Result: The text caret is not positioned after the last character of the type name.

RSRP-471673: Redundant parens false positive

$
0
0
Reporter Alexandra Kuks (Asia.Rudenko) Alexandra Kuks (Asia.Rudenko)
Created Sep 28, 2018 1:33:36 PM
Updated Oct 4, 2018 1:16:20 PM
Subsystem Quick Fixes
Assignee Ivan Serduk (IvanSerduk)
Priority Major
State Fixed In Branch
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
From https://youtrack.jetbrains.com/issue/RSRP-453762#focus=streamItem-27-3077389-0-0

Since ReSharper 2018.2.3 (maybe one or two releases ealier), the quickfix 'Remove redundant parentheses' is appearing for non-suitable code fragments; when applied, it removes parentheses that are not redundant, thus breaking evaluation order of expressions and semantical correctness, leading to compilation errors.

Reproducible with the following code fragments and VS 2013 (and likely other VS's as well):

before 'Remove redundant parentheses':

unsafe
{
*(pData + position) = value;
}
after 'Remove redundant parentheses':

unsafe
{
*pData + position = value;
}
before 'Remove redundant parentheses':

return (idx < array.Length ? array[idx] : null) as ISomeInterface;
after 'Remove redundant parentheses':

return idx < array.Length ? array[idx] : null as ISomeInterface;

RSRP-184924: 'Move To Folder' should be enabled if moving from C# Web Site to VB Web Site and vise versa

$
0
0
Reporter Alexander Zverev (alexander.zverev) Alexander Zverev (alexander.zverev)
Created Jul 1, 2010 2:05:12 PM
Updated Oct 4, 2018 1:25:20 PM
Subsystem Refactorings
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

RSRP-185519: QF 'Add reference and use type' does not work correctly if referenced project has been renamed

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Jul 6, 2010 1:20:39 PM
Updated Oct 4, 2018 1:30:21 PM
Resolved Oct 4, 2018 1:30:21 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
Create solution with 2 projects: ClassLibrary1, ConsoleApplication1 (do not add reference to ClassLibrary1).
Declare a public class Class1 in ClassLibrary1.
Rename ClassLibrary1 to ClassLibrary2 in Solution Explorer (do not change assembly name in project properties).
Use Class1 in ConsoleApplication1. It is unresolved because there is no reference, but QF is suggested.
Apply QF. Reference to ClassLibrary2 is added, but Class1 is still shown as unresolved (but the code compiles without errors).

RSRP-185546: Rename pattern/dictionary

$
0
0
Reporter Marcin Smółka (msmolka) Marcin Smółka (msmolka)
Created Jul 6, 2010 4:15:51 PM
Updated Oct 4, 2018 1:32:06 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 5.0, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
There should be good to tell Resharper how it should suggest renaming, eg. based on some dictionary?

Here is an example:

I have enum with name: DTT_TEXTCOLOR

Resharper suggest it to: DttTextcolor

I would like rather: DttTextColor

RSRP-471653: Could not create the VS text control for the view 00C305DE because there is already a text control created for it.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Sep 24, 2018 11:58:02 AM
Updated Oct 4, 2018 1:33:01 PM
Subsystem Platform - VS Integration
Assignee Serge Baltic (baltic)
Priority Critical
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 _3f3919c0 — JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180924.54845-eap01d

JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20180924.60324-eap01d
JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20180924.60150-eap01d
JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20180924.60311-eap01d
JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180924.60052-eap01d
JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180924.60054-eap01d
JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20180924.60055-eap01d

SubProducts.0 = JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20180924.60324-eap01d
SubProducts.1 = JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20180924.60311-eap01d
SubProducts.2 = JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180924.60054-eap01d
SubProducts.3 = JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20180924.60055-eap01d
SubProducts.4 = JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180924.60052-eap01d
SubProducts.5 = JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20180924.60150-eap01d

Could not create the VS text control for the view 00C305DE because there is already a text control created for it.

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Could not create the VS text control for the view 00C305DE because there is already a text control created for it.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.VisualStudio.SinceVs10
StackTraceString = “
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.VsTextControlCreatorDevTen.CreateTextControl[TTextControl](CreateTextControlParams`1 param)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.VsTextControlCreatorDevTen.CreateTextControl[TTextControl](CreateTextControlParams`1 param)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsAttachTextControlsToTextViews.<>c__DisplayClass0_1.<.ctor>b__1()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsAttachTextControlsToTextViews.<>c__DisplayClass0_0.<.ctor>b__0(Lifetime lifetimeView, VsTextViewDataForTextControlDevTen data)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_1`1.<ForEachItemCore>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Could not create the VS text control for the view 00C305DE because there is already a text control created for it.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = xaml
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180924.54845-eap01d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20180924.60324-eap01d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20180924.60311-eap01d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180924.60054-eap01d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20180924.60055-eap01d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180924.60052-eap01d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20180924.60150-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/183::07a69fc0d6451d5f13e7e98037b09212eba0086e

Data.VsVersion = 15.8.28010.2036
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass9_0`1.<ForEachItemCore>b__0(AddRemoveEventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.InternalAdd(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.Add(TValue value, Object cookie)
 at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass16_1`2.<FlowInto>b__1(AddRemoveEventArgs`1 args)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
 at JetBrains.DataFlow.DictionaryEvents`2.InternalAdd(KeyValuePair`2 value, Object cookie)
 at JetBrains.DataFlow.DictionaryEvents`2.set_Item(TKey key, Object cookie, TValue value)
 at JetBrains.DataFlow.DictionaryEvents`2.set_Item(TKey key, TValue value)
at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsTextViewDataForTextControlCollectorDevTen.<>c__DisplayClass0_1.<.ctor>g__ApplyData|4(IWpfTextView view, VsTextViewDataForTextControlDevTen newdata)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsTextViewDataForTextControlCollectorDevTen.<>c__DisplayClass0_7.<.ctor>b__17()
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsTextViewDataForTextControlCollectorDevTen.<>c__DisplayClass0_7.<.ctor>b__17()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.VsTextViewDataForTextControlCollectorDevTen.<>c__DisplayClass0_1.<.ctor>b__6(EventArgs`1 args)
 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.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.TrackVsTextViewDataForTextControlChangesEx.<>c__DisplayClass0_0.<FireTextViewDataChanged>b__0()
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.TrackVsTextViewDataForTextControlChangesEx.FireTextViewDataChangedImpl(ITrackVsTextViewDataForTextControlChanges trackVsTextViewDataForTextControlChanges, Lifetime lifetime, IShellLocks locks, Action action)
 at JetBrains.Platform.VisualStudio.SinceVs10.TextControl.AttachTextControlsToTextViews.TrackVsTextViewDataForTextControlChangesEx.FireTextViewDataChanged(ITrackVsTextViewDataForTextControlChanges trackVsTextViewDataForTextControlChanges, Lifetime lifetime, IShellLocks locks, Func`1 isEventStillActual, IWpfTextView wpfTextView)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.VsDocumentManagerWhidbey_TrackVsTextViewDataForTextControlChanges.<>c__DisplayClass0_0.<.ctor>b__2()
 at JetBrains.UI.Application.LocalReentrancyGuard.TryExecute(Action action)
 at JetBrains.Platform.VisualStudio.SinceVs10.IDE.VsDocumentManagerWhidbey_TrackVsTextViewDataForTextControlChanges.<>c__DisplayClass0_1.<.ctor>b__0(EventArgs`1 args)
 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.VsIntegration.ProjectDocuments.VsDocumentManagerWhidbey.OnRegisterTextBuffer(VsTextBufferData textBufferData, Boolean forceReregisterEventProjectFileIsTheSame)
 at JetBrains.VsIntegration.ProjectDocuments.VsDocumentManagerWhidbey.<>c__DisplayClass26_0.<OnRdtAfterFirstDocumentLock>b__0()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.VsIntegration.ProjectDocuments.VsDocumentManagerWhidbey.<>c__DisplayClass23_0.<ExecuteOrQueueOrMergeUnguardedCallbackWithLog>b__0()
 at JetBrains.Util.Concurrency.UnguardedCallbackMerger.<>c__DisplayClass8_1.<ExecuteOrQueueOrMerge>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.<>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)

RSRP-185646: [Remove redundant method override] should not remove references to the method from derived classes

$
0
0
Reporter Tatham Oddie (tatham) Tatham Oddie (tatham)
Created Jul 7, 2010 4:04:22 AM
Updated Oct 4, 2018 1:34:31 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Open
Type Bug
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I started with the following code:

public class ClassA
{
protected virtual void Foo()
{
}
}

public class ClassB : ClassA
{
protected override void Foo()
{
base.Foo();
}
}

public class ClassC : ClassB
{
protected override void Foo()
{
Bar();
base.Foo();
}

static void Bar() { }
}

ReSharper correctly highlights the method in ClassB as being a redundant override.

Using the [Remove redundant method override] helper produces the following result:

public class ClassA
{
protected virtual void Foo()
{
}
}

public class ClassB : ClassA
{
}

public class ClassC : ClassB
{
protected override void Foo()
{
Bar();
}

static void Bar() { }
}

This breaks ClassC as the call to base.Foo() has been removed. A warning to this effect is given by the "Safe Delete" process however it shouldn't even be a candidate for removal in this scenario.

RSRP-185716: [VB] CA 'To Public', 'To Private' are not available on interface implementations

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Jul 7, 2010 4:34:33 PM
Updated Oct 4, 2018 1:38:04 PM
Subsystem Context Actions
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
Interface IA
Sub Foo()
End Interface

Class A
Implements IA
Private Sub Foo() Implements IA.Foo
End Sub
End Class

RSRP-185765: Some Class-Targeting Refactorings Are not Available when Class Name Is Selected

$
0
0
Reporter Serge Baltic (baltic) Serge Baltic (baltic)
Created Jul 7, 2010 10:36:12 PM
Updated Oct 4, 2018 1:40:21 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Open
Type Usability Problem
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
public class Class { }

If I place caret inside the class name, 10 refactorings are available.
If I select the class name, 3 refactorings are available.

These numbers must be equal. The set of available refactorings must be the same.
This applies to everything but in-method-body expressions (where there could be special selection-based refactorings like introduce var, so selection gets some meaning).

At the least, the refactorings should be consistent in treating the selection (eg the numbers could be 10 : 0 which is also OK).

Users with VS background expect refacs to be available on selection, they find three refactorings there and think it's all we got without trying the no-selection case. If it were zero, they'd try. Even better, all refactorings should be there.

RSRP-471728: System.TypeLoadException when running .Net Core NUnit tests, which target full .Net framework

$
0
0
Reporter Fedor Buyvol-Kot (Fedor.Buyvol-Kot) Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Created Oct 2, 2018 8:30:47 PM
Updated Oct 4, 2018 1:53:02 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Fixed In Branch
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Tests run fine, but there is this error in the execution log:

2018.10.02 20:21:49.607 ERROR System.TypeLoadException: Could not load type 'NUnit.Engine.NUnitEngineUnloadException' from assembly 'nunit.engine.api, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb'.
System.TypeLoadException: Could not load type 'NUnit.Engine.NUnitEngineUnloadException' from assembly 'nunit.engine.api, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb'.
System.TypeLoadException: Could not load type 'NUnit.Engine.NUnitEngineUnloadException' from assembly 'nunit.engine.api, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb'.
 at NUnit.Engine.Services.DomainManager.DomainUnloader.Unload()
 at NUnit.Engine.Runners.TestDomainRunner.UnloadPackage()
 at NUnit.Engine.Runners.AbstractTestRunner.Dispose(Boolean disposing)
 at NUnit.Engine.Runners.AbstractTestRunner.Dispose()
 at NUnit.Engine.Runners.MasterTestRunner.Dispose(Boolean disposing)
 at NUnit.Engine.Runners.MasterTestRunner.Dispose()
 at JetBrains.ReSharper.UnitTestRunner.nUnit30.BuiltInNUnitRunner.<>c__DisplayClass6_0.<RunTests>b__0() in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\UnitTesting\nUnit\Runner30\Src\BuiltInNUnitRunner.cs:line 134
 at JetBrains.ReSharper.UnitTestRunner.nUnit30.BuiltInNUnitRunner.WithExtensiveErrorHandling(IRemoteTaskServer server, Action action) in C:\Build Agent\work\8845a38daf4692e1\Psi.Features\UnitTesting\nUnit\Runner30\Src\BuiltInNUnitRunner.cs:line 942

RSRP-333075: Outgoing calls should process event subscriptions and proceed through them

$
0
0
Reporter Ilya Ryzhenkov (orangy) Ilya Ryzhenkov (orangy)
Created Oct 25, 2012 10:55:15 AM
Updated Oct 4, 2018 2:20:16 PM
Subsystem Inspect This - Call Tracking
Assignee Alexander Ulitin (alexander.ulitin)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 8.0
Fixed In Version ReSharper Undefined
VsVersion All Versions
Currently, tracking outgoing calls just stops at events. It would be nice to find subscriptions to events and proceed with tracking into subscriber.

RSRP-459605: Wrong 'redundant type parameter' warning in partial types

$
0
0
Reporter Andrey Dyatlov (Andrey.Dyatlov) Andrey Dyatlov (Andrey.Dyatlov)
Created Jul 1, 2016 6:30:26 PM
Updated Oct 4, 2018 2:24:34 PM
Subsystem Code Analysis - C#
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
Create two files:

Fil1.cs
  partial class Program<T>
{
static T Method()
{
return default(T);
}
}

File2.cs
  partial class Program<T>
{

}

Type parameter T in File2.cs is highlighted as redundant. However if I accept QF to remove it I would end up with two different types instead of single Program<T> type and compilation will likely be broken.

RSRP-186255: error BC36643: Array modifiers cannot be specified on lambda expression parameter name. They must be specified on its type.

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Jul 14, 2010 12:50:23 PM
Updated Oct 4, 2018 2:31:36 PM
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
Public Module M
Sub Main()
Dim x As Action(Of String()) = Sub(y()) Console.WriteLine
End Sub
End Module
Viewing all 106942 articles
Browse latest View live


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