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

RSRP-430709: Batch 'Move Types to matching files' cannot be undone

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Jan 19, 2015 7:47:53 PM
Updated Oct 11, 2018 3:28:08 PM
Resolved Oct 11, 2018 3:28:08 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Duplicate
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
See subject.

Try to 'Move Types into matching files in solution' on 'ProgramImpl in the following code and then undo.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
class Program
{
private string _field;

public Program(string field)
{
_field = field;
}

static void Main(string[] args)
{
int i;
DoSomething();
}

private static void DoSomething()
{
throw new NotImplementedException();
}
}

partial class ProgramImpl : Program
{
public ProgramImpl(string field) : base(field)
{
}
}
}

RSRP-459249: Undo 'Make Partial' does not restore the original state (produces red code)

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Jun 14, 2016 4:57:19 PM
Updated Oct 11, 2018 3:28:08 PM
Subsystem Refactorings
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Critical
State Submitted
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Steps:
1. Make partial some 'Nested One' class
2. Ctrl+Z after new file is created.

Result:
The original code is restored, but the new file is not removed.

using System;

namespace Test
{
static class Program
{
static void Main()
{
Console.BackgroundColor = ConsoleColor.Black;
Console.WriteLine("Hello world");
Console.ReadKey();
}

internal class NestedOne
{

}
}
}

RSRP-471756: Debugger inline values are rendered with blurry font.

$
0
0
Reporter Andrew Vasilyev (Andrew.Vasilyev) Andrew Vasilyev (Andrew.Vasilyev)
Created Oct 4, 2018 5:14:02 PM
Updated Oct 11, 2018 3:31:58 PM
Resolved Oct 11, 2018 3:31:58 PM
Subsystem Debugger features
Assignee Andrew Vasilyev (Andrew.Vasilyev)
Priority Normal
State Fixed
Type Bug
Fix version 2018.3
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

To reproduce:

  1. Set font to "Text Editor font":

  2. Start debugging.

  3. Stop at line after line with variable assignment.

  4. Scale editor to 250%

Result:

сс: @Igor Akhmetov @Mikhail Senkov

RSRP-430811: Specify location when creating new method

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Jan 21, 2015 1:10:08 PM
Updated Oct 11, 2018 3:38:00 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
When I have created an unimplemented method and uses alt + enter to generate that method I would like to choose were the method should be created.

RSRP-431201: Quick fix submenu closes on mouse hover after auto popup

$
0
0
Reporter Guest 256 (guest256) Guest 256 (guest256)
Created Jan 23, 2015 1:55:36 PM
Updated Oct 11, 2018 3:45:06 PM
Resolved Oct 11, 2018 3:45:06 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Cosmetics
Fix version Unidentified prior version
Affected versions 9.0 Update 1
Fixed In Version ReSharper Undefined
VsVersion VS 2012 RTM U2
In the quick fix menu some items directly call actions, while other items are just group of subitems. When I move mouse to menu item of second category, it's submenu opens automatically. Well, I think, you saved me a click, then I try to move mouse to submenu item, but submenu immediately closes when mouse leaves root menu area. Workaround is to click on root menu item before moving to submenu, it forces submenu to reopen and avoids unexpected closing. Another workaround is to use keyboard.

I'm not sure how describe this well, so I captured a video.

RSRP-471732: Using a custom type in TestFixtureData doesn't work

$
0
0
Reporter Roger Kratz (rogerkratz) Roger Kratz (rogerkratz)
Created Oct 3, 2018 12:15:00 PM
Updated Oct 11, 2018 3:48:14 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

Test runner (both latest Rider and latest VS) won't run this two times as expected/nunit console does....

[TestFixtureSource(typeof(MyFixtureData), "FixtureParms")]
public class TestFixture
{
	public TestFixture(TestFixtureDataParameters foo)
	{
	}

	[Test]
	public void JustATest()
	{
	}
}

public class MyFixtureData
{
	public static IEnumerable FixtureParms
	{
		get
		{
			yield return new TestFixtureData(new TestFixtureDataParameters(1));
			yield return new TestFixtureData(new TestFixtureDataParameters(2));
		}
	}  
}

public class TestFixtureDataParameters
{
	public TestFixtureDataParameters(object foo)
	{
		Foo = foo;
	}
	
	public object Foo { get; }
}

RSRP-471816: Can't get solution active configuration

$
0
0
Reporter Tatyana Lunegova (lunega) Tatyana Lunegova (lunega)
Created Oct 11, 2018 3:54:28 PM
Updated Oct 11, 2018 3:55:42 PM
Subsystem Solution builder
Assignee Anton Spilnyy (Anton.Spilnyy)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 183 Hive _cfcc61ab — JetBrains ReSharper Ultimate 2018.3 EAP 3 D Build 183.0.20181011.101501-eap03d

JetBrains dotCover 2018.3 EAP 3 D Build 2018.3.20181011.103028-eap03d
JetBrains dotMemory 2018.3 EAP 3 D Build 2018.3.20181011.102853-eap03d
JetBrains dotTrace 2018.3 EAP 3 D Build 2018.3.20181011.103023-eap03d
JetBrains ReSharper 2018.3 EAP 3 D Build 2018.3.20181011.102733-eap03d
JetBrains ReSharper C++ 2018.3 EAP 3 D Build 2018.3.20181011.102738-eap03d

SubProducts.0 = JetBrains dotCover 2018.3 EAP 3 D Build 2018.3.20181011.103028-eap03d
SubProducts.1 = JetBrains dotTrace 2018.3 EAP 3 D Build 2018.3.20181011.103023-eap03d
SubProducts.2 = JetBrains ReSharper C++ 2018.3 EAP 3 D Build 2018.3.20181011.102738-eap03d
SubProducts.3 = JetBrains ReSharper 2018.3 EAP 3 D Build 2018.3.20181011.102733-eap03d
SubProducts.4 = JetBrains dotMemory 2018.3 EAP 3 D Build 2018.3.20181011.102853-eap03d

Can't get solution active configuration

— EXCEPTION #1/1 [LoggerException]
Message = “Can't get solution active configuration”
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 3 D Build 183.0.20181011.101501-eap03d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 3 D Build 2018.3.20181011.103028-eap03d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 3 D Build 2018.3.20181011.103023-eap03d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 3 D Build 2018.3.20181011.102738-eap03d”
Data.SubProducts.#3 = “JetBrains ReSharper 2018.3 EAP 3 D Build 2018.3.20181011.102733-eap03d”
Data.SubProducts.#4 = “JetBrains dotMemory 2018.3 EAP 3 D Build 2018.3.20181011.102853-eap03d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183::98cb0e156842e413b59a601d523bcd22c04b0fea


Platform\VisualStudio:
    git::refs/heads/183-winnie-res07

Data.VsVersion = 15.8.28010.2046
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.VsIntegration.IDE.SolutionBuilder.ConfigHolders.SolutionConfigurationHolderNew.Recalculate(Action afterRecalculate)
 at JetBrains.VsIntegration.IDE.SolutionBuilder.ConfigHolders.SolutionConfigurationHolderNew.Recalculate(Action afterRecalculate)
 at JetBrains.VsIntegration.IDE.SolutionBuilder.ConfigHolders.SolutionConfigurationHolder.<.ctor>b__9_1(Lifetime lt, ConfigurationCalculationMode val)
 at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass26_0`1.<ForEachValue>b__0(Lifetime lf, TValue value, Object cookie)
 at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass27_1`1.<ForEachValue>b__1(Lifetime lifetimeValue)
 at JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass4_0.<Next>b__0(LifetimeDefinition definition, Lifetime lifetime)
 at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILog logger)
 at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)
 at JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)
 at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass27_0`1.<ForEachValue>b__0(PropertyChangedEventArgs`1 args)
 at JetBrains.DataFlow.Property`1.PropertyChangeSignal.Acknowledge(Action`1 handler, AddRemove addremove)
 at JetBrains.DataFlow.Property`1.PropertyChangeSignal.OnAfterAdvise(Action`1 handler)
 at JetBrains.DataFlow.Signal`1.<>c__DisplayClass19_0.<AdviseCore>b__0()
 at JetBrains.DataFlow.LifetimeDefinition.Bracket(Action opening, Action closing)
 at JetBrains.DataFlow.Signal`1.AdviseCore(Action`1 handler, Lifetime lifetime)
 at JetBrains.DataFlow.Signal`1.Advise(Lifetime lifetime, Action`1 handler)
 at JetBrains.DataFlow.IPropertyEx.ForEachValue[TValue](IProperty`1 property, Lifetime lifetime, Func`2 FCondition, Action`3 FHandler)
 at JetBrains.DataFlow.IPropertyEx.ForEachValue[TValue](IProperty`1 property, Lifetime lifetime, Func`2 FCondition, Action`2 FHandler)
 at JetBrains.VsIntegration.IDE.SolutionBuilder.ConfigHolders.SolutionConfigurationHolder..ctor(Lifetime lifetime, ILogger logger, ISolution solution, IShellLocks locks, ISettingsStore store, DTE dte, ProjectActiveConfigurationAccessor accessor, IVsHierarchies hierarchies, VsActiveConfigurationManager vsActiveConfigurationManager)
 at JetBrains.Platform.VisualStudio.SinceVs15.IDE.SolutionBuilder.SolutionConfigurationHolder15..ctor(Lifetime lifetime, ILogger logger, ISolution solution, IShellLocks locks, ISettingsStore store, DTE dte, ProjectActiveConfigurationAccessor accessor, IVsHierarchies hierarchies, ISolutionConfigurationBuilder15 solutionConfigurationBuilder15, LightSolutionLoadSettingsHolder holder, VsActiveConfigurationManager vsActiveConfigurationManager)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.SignatureResolution.BindArguments(List`1 argumentDescriptors, Object origin)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, ICollection`1 dscs, IComponentContainer container)
 at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
 at JetBrains.Application.Components.ComponentStorage.Compose()
 at JetBrains.ProjectModel.SolutionInstance.OpenSolutionInstance(ISolutionLoadTasksScheduler taskScheduler)
 at JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement solutionElement, SolutionInstance solutionInstance)
 at JetBrains.VsIntegration.ProjectDocuments.VSSolutionManager.<>c__DisplayClass36_0.<OpenVSSolution>b__0(Lifetime lifetime)
 at JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass4_0.<Next>b__0(LifetimeDefinition definition, Lifetime lifetime)
 at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILog logger)
 at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)
 at JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)
 at JetBrains.VsIntegration.ProjectDocuments.VSSolutionManager.OpenVSSolution(Boolean openSolution, Boolean sync)
 at JetBrains.VsIntegration.ProjectDocuments.VSSolutionManager.<>c__DisplayClass33_0.<OnAfterOpenProject>b__0()
 at JetBrains.Util.ILoggerEx.Catch(ILogger thіs, Action F, ExceptionOrigin origin, LoggingLevel loggingLevel)
 at JetBrains.VsIntegration.Interop.VsInteropController.ExecuteActionsUnderProperLock(Boolean isWriteLockTaken)
 at JetBrains.VsIntegration.Interop.VsInteropController.ExecuteActionsUnderWriteLockOrReschedule()
 at JetBrains.Util.Concurrency.UnguardedCallbackMerger.<>c__DisplayClass8_1.<ExecuteOrQueueOrMerge>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuardEx.ExecuteOrQueue(ReentrancyGuard thіs, Lifetime lifetime, String name, Action F, TaskPriority priority)
 at JetBrains.Util.Concurrency.UnguardedCallbackMerger.ExecuteOrQueueOrMerge(Lifetime lifetimeQueue, String name, Action F)
 at JetBrains.VsIntegration.Interop.VsInteropController.DispatchActions()
 at JetBrains.VsIntegration.Interop.VsInteropController.ExecuteOrQueueOrMergeWithReadLockWhenTalkingToVsAllowed(Lifetime lifetime, String name, Boolean requiresWriteLock, Action action)
 at JetBrains.VsIntegration.ProjectDocuments.VSSolutionManager.OnAfterOpenProject(IVsHierarchy pHierarchy, Int32 fAdded)
 at JetBrains.Platform.VisualStudio.SinceVs10.ProjectDocuments.VsSolutionManager10.OnAfterOpenProject(IVsHierarchy pHierarchy, Int32 fAdded)
 at EnvDTE.SolutionClass.AddFromTemplate(String FileName, String Destination, String ProjectName, Boolean Exclusive)
 at Microsoft.VisualStudio.TemplateEngine.TemplateCreatorBase.<CreateAsync>d__10.MoveNext()
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
 at Microsoft.VisualStudio.TemplateEngine.TemplateCreatorBase.CreateAsync(Solution solution, IProjectCreationMetadata creationMetadata, IReadOnlyDictionary`2 passthroughParams)
 at Microsoft.VisualStudio.TemplateEngine.Wizard.TemplateEngineWizard.<CreateProject>d__38.MoveNext()
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
 at Microsoft.VisualStudio.TemplateEngine.Wizard.TemplateEngineWizard.CreateProject()
at Microsoft.VisualStudio.TemplateEngine.Wizard.TemplateEngineWizard.<Microsoft-VisualStudio-TemplateWizard-IWizard-RunFinished>d__37.MoveNext()
 at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
 at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
 at Microsoft.VisualStudio.TemplateEngine.Wizard.TemplateEngineWizard.Microsoft.VisualStudio.TemplateWizard.IWizard.RunFinished()
 at Microsoft.VisualStudio.TemplateWizard.Wizard.Execute(Object application, Int32 hwndOwner, Object[]& ContextParams, Object[]& CustomParams, wizardResult& retval)
 at EnvDTE100.Solution4.AddFromTemplateEx(String FileName, String Destination, String ProjectName, String SolutionName, Boolean Exclusive, UInt32 Options)
 at Microsoft.VisualStudio.Dialogs.ServiceHelper.AddProjectFromSelectedTemplate(INewProjectDialogData dialog, String projectPath, Boolean isExclusive)
 at Microsoft.VisualStudio.Dialogs.SVsDialogService.CreateProject(INewProjectDialogData npdd)
 at Microsoft.VisualStudio.Dialogs.SVsDialogService.InvokeDialog(VSNEWPROJECTDLGINFO dlgInfo, String& bstrLocation)
 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 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-433499: ReSharper quickfix breaks VB code

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Feb 16, 2015 10:33:57 AM
Updated Oct 11, 2018 4:30:04 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 9.0, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Execute "Remove not accessed local variable " breaks the code in the following situation:
Sub Export(...) 
Dim count As Integer
Dim ns320, ns190 As Short

...

For count = 1 To ns320
...
Next

For count = 1 To ns190
...
Next

End Sub

RSRP-433784: Assign default value doesn't work if there's no block

$
0
0
Reporter Julien Lebosquain (mrjul) Julien Lebosquain (mrjul)
Created Feb 17, 2015 10:05:00 PM
Updated Oct 11, 2018 4:32:46 PM
Resolved Oct 11, 2018 4:32:46 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Bug
Fix version No Fix versions
Affected versions 9.0, 9.0 Update 1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Put the caret on return and apply the "assign default value to y" quickfix:
void Foo(object x, out object y) {
if (x == null)
return;
}

Actual result:
void Foo(object x, out object y) {
if (x == null) {
return;
}
}

Expected result:
void Foo(object x, out object y) {
if (x == null) {
y = null;
return;
}
}

(Side note: when null is inserted, it's selected. It would be nicer to have a hotspot instead, to be able to tab out of it.)

RSRP-471790: Sequence contains no elements

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Oct 9, 2018 12:24:44 PM
Updated Oct 11, 2018 4:32:46 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Submitted
Type Exception
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 183 Hive _3f3919c0 — JetBrains ReSharper Ultimate 2018.3 EAP 2 D Build 183.0.20181008.115722-eap02d

JetBrains dotCover 2018.3 EAP 2 D Build 2018.3.20181008.121226-eap02d
JetBrains dotMemory 2018.3 EAP 2 D Build 2018.3.20181008.121228-eap02d
JetBrains dotTrace 2018.3 EAP 2 D Build 2018.3.20181008.121231-eap02d
JetBrains ReSharper 2018.3 EAP 2 D Build 2018.3.20181008.120956-eap02d
JetBrains ReSharper C++ 2018.3 EAP 2 D Build 2018.3.20181008.120854-eap02d
JetBrains TeamCity Add-in 2018.3 EAP 2 D Build 2018.3.20181008.121021-eap02d

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.Aggregate[TSource](IEnumerable`1 source, Func`3 func)
 at System.Linq.Enumerable.Aggregate[TSource](IEnumerable`1 source, Func`3 func)
 at JetBrains.ReSharper.Feature.Services.LiveTemplates.Hotspots.HotspotSessionController.GetJoinedFieldsRange(IDocument document)
 at JetBrains.ReSharper.Feature.Services.LiveTemplates.LiveTemplates.LiveTemplatesManager.CreateHotspotSessionAtopExistingText(ISolution solution, DocumentRange endSelectionRange, ITextControl textControl, EscapeAction escapeAction, HotspotInfo[] hotspotInfos)
 at JetBrains.ReSharper.Intentions.CSharp.QuickFixes.InitializeVariablesFixBase.<>c__DisplayClass8_0.<ExecutePsiTransaction>b__0(ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.Execute(ISolution solution, ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.QuickFixes.QuickFixBase.Execute(ISolution solution, ITextControl textControl)
 at JetBrains.ReSharper.Feature.Services.Intentions.IntentionAction.MyExecutableProxi.Execute()
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked()


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Sequence contains no elements”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 2 D Build 183.0.20181008.115722-eap02d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 2 D Build 2018.3.20181008.121226-eap02d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 2 D Build 2018.3.20181008.121231-eap02d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 2 D Build 2018.3.20181008.120854-eap02d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.3 EAP 2 D Build 2018.3.20181008.121021-eap02d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.3 EAP 2 D Build 2018.3.20181008.120956-eap02d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.3 EAP 2 D Build 2018.3.20181008.121228-eap02d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183::abb3efa7eef3dbe69c9083ac8f2f4470e9e7aac5


Platform\VisualStudio:
    git::refs/heads/183::68c59afe9ec7fd1dbca996bd1dc2331d488b2cda

Data.VsVersion = 15.8.28010.2041
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked()
 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.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 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.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.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>b__18_0(IList`1 menuItems, PopupWindowContextSource contextSource, GotoByNameModel gotoByNameModel, Action`1 modelInitHandler, LifetimeDefinition definition)
 at JetBrains.ReSharper.Intentions.Bulbs.BulbOnGutterMarginIndicator.DoExecuteIndicator(IDataContext context, BulbItemsReadyState readyState, Action`5 showBulbAction)
 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-433938: ReSharper suggests adding a using assembly to a file even if it leads to a circle dependency

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Feb 19, 2015 7:25:00 PM
Updated Oct 11, 2018 4:37:05 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Submitted
Type Bug
Fix version Backlog
Affected versions 9.0, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
The solution attached, it adds just a using to a file. Gott sei Dank, it does not add a reference to a project. As result the solution is not compilable

RSRP-434291: No suggestion to make a private member public if it has public overloads

$
0
0
Reporter Dmitry Matveev (Dmitry.Matveev) Dmitry Matveev (Dmitry.Matveev)
Created Feb 26, 2015 8:11:32 PM
Updated Oct 11, 2018 4:38:55 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 9.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
    class Double
{
private static string DoSomething(){ return "some text"; }
public static string DoSomething(string s){ return "your input was: " + s; }
}

class Foo
{
private Foo()
{
var str = Double.DoSomething();
}
}



If we apply the first quick-fix, it will crate another conflicting declaration of DoSomething() without params

If we comment the public DoSomething(string s). then we'll get the right quick-fix to make DoSomething() public.

RSRP-434542: Missing "reference ... and use ..." quick fixes for attributes

$
0
0
Reporter Jens Odborg (JensO) Jens Odborg (JensO)
Created Mar 3, 2015 4:15:20 PM
Updated Oct 11, 2018 4:42:45 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 8.2, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I copied the code block below to a new project

SetUpFixture, SetUp, and TestContext is all red (was expected) they all originated from nunit

TestContext has the following expected quick fixes:
  • Reference 'Microsoft.VisualStudio.QualityTools.UnitTestFramework' and ...
  • Reference 'nunit.framework' and ...
  • Creat class 'TestContext'
  • ...

But SetUp quick fixes does only have "Create class ..." quick fixes, i.e.:
  • Creat class 'SetUpAttribute'
  • ...

<code>
[SetUpFixture]
public class SetupFixture
{
private static readonly ILogger Logger;

static SetupFixture()
{
var loggerFactory = new LoggerFactory();
Manager.Factory = loggerFactory;
Logger = Manager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
}

[SetUp]
public void RunBeforeAnyTest()
{
Logger.InfoFormat(":::: {0} Begin ::::", TestContext.CurrentContext.Test.Name);

}

[TearDown]
public void RunAfterAnyTest()
{
Logger.InfoFormat(":::: {0} End ::::", TestContext.CurrentContext.Test.Name);
}
}
</code>

RSRP-470951: Waiting in FireOutgoing more than 30000 ms. Possible livelock. Breaking

$
0
0
Reporter Miguel Pinto (enchoir) Miguel Pinto (enchoir)
Created Jul 3, 2018 6:28:05 PM
Updated Oct 11, 2018 4:44:19 PM
Subsystem External Sources
Assignee Nikita Raba (nikita.raba)
Priority Show-stopper
State Open
Type Exception
Fix version No Fix versions
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _b33d9532 — JetBrains ReSharper Ultimate 2018.2 EAP 1 Build 182.0.20180628.124316-eap01

JetBrains dotTrace 182 Build 182.0.20180628.132215-eap01
JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01
JetBrains TeamCity Add-in 182 Build 182.0.20180628.125617-eap01

Waiting in FireOutgoing more than 30000 ms. Possible livelock. Breaking

— EXCEPTION #1/1 [LoggerException]
Message = “Waiting in FireOutgoing more than 30000 ms. Possible livelock. Breaking”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = FileSystemTrackerCommit
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 1 Build 182.0.20180628.124316-eap01”
Data.SubProducts.#0 = “JetBrains dotTrace 182 Build 182.0.20180628.132215-eap01”
Data.SubProducts.#1 = “JetBrains TeamCity Add-in 182 Build 182.0.20180628.125617-eap01”
Data.SubProducts.#2 = “JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap1::389b2b0a5d2b33c46224f8f1850bc61276990d1e


Platform\VisualStudio:
    git::refs/heads/182-eap1

Data.VsVersion = 15.7.27703.2035
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.Threading.Tasks.FreeThreadedGroupingEvent.FireOutgoing(Boolean waitIfAlreadyFiring, Boolean fireIfNoIncoming)
 at JetBrains.Application.Threading.Tasks.FreeThreadedGroupingEvent.FireOutgoing(Boolean waitIfAlreadyFiring, Boolean fireIfNoIncoming)
 at JetBrains.Application.Threading.Tasks.FreeThreadedGroupingEvent.WaitAndPumpUntilNoIncoming()
 at JetBrains.ReSharper.Feature.Services.ExternalSources.Pdb.Cache.PdbCacheInvalidator.OnPossibleCacheFileChanged(ICollection`1 names)
 at JetBrains.ReSharper.Feature.Services.ExternalSources.Pdb.Cache.PdbCacheInvalidator.OnFileSystemChange(FileSystemChange change)
 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.FileSystemTracker.FileSystemTrackerImpl.DispatchChange(FileSystemChange change)
 at JetBrains.Application.FileSystemTracker.FileSystemTrackerImpl.DoCommit(FileSystemPath[] paths)
 at JetBrains.Application.FileSystemTracker.FileSystemTrackerImpl.AsyncCommitThread.<CommitChanges>b__11_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)
 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()
 at JetBrains.Threading.JetDispatcher.<>c__DisplayClass22_1.<CreateDispatcherThread>b__1()
 at System.Threading.ThreadHelper.ThreadStart_Context(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 System.Threading.ThreadHelper.ThreadStart()

RSRP-434550: Resharper does not recognize an attribute with a missing constructor

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Mar 3, 2015 6:23:49 PM
Updated Oct 11, 2018 4:51:16 PM
Resolved Oct 11, 2018 4:51:16 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Duplicate
Type Feature
Fix version No Fix versions
Affected versions 9.0
Fixed In Version ReSharper Undefined
VsVersion All Versions
using System.ComponentModel; 
using System.Web.Mvc;

namespace Website.Infrastructure
{
[Localizable(false)]
public class OnlyForCustomerTypes : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
}
}
}
No explicit ctor defined.

When adding this attribute to a controller and specifying an additional ctor parameter, Resharper fails to recognize it as needing an extra ctor. (see screenshot 1 and 2).

The following behaviour is expected: see screenshot 3.

RSRP-37317: Constructor of attribute with wrong number of params should have QF to create ctor

$
0
0
Reporter Ilya Ryzhenkov (orangy) Ilya Ryzhenkov (orangy)
Created Mar 17, 2007 6:50:25 PM
Updated Oct 11, 2018 4:51:33 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

RSRP-434559: 'Check for null' includes return statement and produces red code

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Mar 3, 2015 8:02:35 PM
Updated Oct 11, 2018 4:55:59 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
Steps:
public static MethodReference ImportMethod(this AssemblyDefinition assembly, MethodReference reference)
{
var type = Type.GetType(reference.DeclaringType.FullName);
var method = type.GetMethod(reference.Name);
return assembly.MainModule.Import(method);
}
Use 'Check for null' on type.GetMethod(reference.Name);

Result:

public static MethodReference ImportMethod(this AssemblyDefinition assembly, MethodReference reference)
{
var type = Type.GetType(reference.DeclaringType.FullName);
if (type != null)
{
var method = type.GetMethod(reference.Name);
return assembly.MainModule.Import(method);
}
}

Expected:

        public static MethodReference ImportMethod(this AssemblyDefinition assembly, MethodReference reference)
{
var type = Type.GetType(reference.DeclaringType.FullName);
if (type != null)
{
var method = type.GetMethod(reference.Name);
}
return assembly.MainModule.Import(method);
}

RSRP-470946: Cannot Advance beyond TotalWorkUnits.

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Jul 11, 2018 8:09:10 AM
Updated Oct 11, 2018 5:02:43 PM
Subsystem External Sources
Assignee Nikita Raba (nikita.raba)
Priority Critical
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _c4e60166 — JetBrains ReSharper Ultimate 2018.2 EAP 2 Build 182.0.20180706.95810-eap02

JetBrains ReSharper 182 Build 182.0.20180706.100921-eap02

Cannot Advance beyond TotalWorkUnits.

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Cannot Advance beyond TotalWorkUnits.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.Units = 1
HResult = COR_E_INVALIDOPERATION=80131509

— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Cannot Advance beyond TotalWorkUnits.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 2 Build 182.0.20180706.95810-eap02”
Data.SubProducts.#0 = “JetBrains ReSharper 182 Build 182.0.20180706.100921-eap02”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap2

Platform\VisualStudio:
    git::refs/heads/182-eap2::9f014d91e51bc72e022f44cb319e1913fc745c28

Data.VsVersion = 15.7.27703.2035
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.Progress.ProgressIndicatorBase.Advance(Double units)
 at JetBrains.Application.Progress.ProgressIndicatorBase.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.SubProgressIndicator.Advance(Double units)
 at JetBrains.Application.Progress.ProgressIndicatorBase.Stop()
 at JetBrains.Application.Progress.ProgressIndicatorBase.Dispose()
 at JetBrains.Symbols.Downloader.HttpDownloader.DelegatingIndicator.Dispose()
 at JetBrains.Symbols.Downloader.HttpDownloader.DownloadThread(IProgressIndicator indicator, String taskName)
 at JetBrains.Symbols.Downloader.HttpDownloader.SafeDownloadThread(IProgressIndicator indicator, String taskName)
 at JetBrains.Symbols.Downloader.HttpDownloader.<>c__DisplayClass3_1.<Execute>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Symbols.Downloader.HttpDownloader.<>c__DisplayClass3_1.<Execute>b__0()
 at System.Threading.ThreadHelper.ThreadStart_Context(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 System.Threading.ThreadHelper.ThreadStart()

RSRP-471595: Not initialized

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Sep 20, 2018 6:00:31 PM
Updated Oct 11, 2018 5:05:12 PM
Subsystem Platform - Project Model
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion VS10 (2010)
ReSharperPlatformVs10 Wave 183 Hive ProjectModel — JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180918.154710-eap01d

JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180918.160255-eap01d

Not initialized

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Not initialized”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.RdCore
StackTraceString = “
 at JetBrains.Platform.RdFramework.Util.Maybe`1.OrElseThrow(Func`1 func)
 at JetBrains.Platform.RdFramework.Util.Maybe`1.OrElseThrow(Func`1 func)
 at JetBrains.Platform.RdFramework.Util.RProperty`1.get_Value()
 at JetBrains.Platform.RdFramework.Impl.RdProperty`1.get_Value()
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.Common.NuGetApi.get_IsNuGetAvailable()
 at JetBrains.PsiFeatures.VisualStudio.SinceVs10.NuGet.ReferenceAnnotations.ReferenceAnnotationsPackageProvider.<GetActions>d__2.MoveNext()
 at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
 at JetBrains.ReSharper.Feature.Services.QuickFixes.QuickFixTable.CreateCustomWarningActions(IHighlighting highlighting, ISolution solution, DocumentRange highlightingRange)
 at JetBrains.ReSharper.Intentions.Bulbs.QuickFixesProvider.CollectQuickFixesUnderCaret(BulbItemsCache bulbItemsCache, IntentionsBulbItems intentionsBulbItems, ITextControl textControl, HighlightingsData highlightingsData)
 at JetBrains.ReSharper.Intentions.Bulbs.QuickFixesProvider.CollectActions(IntentionsBulbItems intentionsBulbItems, BulbItemsCache bulbItemsCache, ITextControl textControl, Lifetime caretPositionLifetime, IPsiSourceFile psiSourceFile, Object precalculatedData)
 at JetBrains.ReSharper.Intentions.Bulbs.BulbItems.<>c__DisplayClass21_0.<BuildAvailableActionsList>b__1()
 at JetBrains.Application.Threading.InterruptableReadActivityThe.Work()
 at JetBrains.Application.Threading.InterruptableReadActivity.DoWork()
 at JetBrains.Application.Threading.InterruptableReadActivity.WorkerThreadProc()
 at JetBrains.Util.Logging.Logger.Catch(Action action)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Not initialized”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(S) #6”
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180918.154710-eap01d”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180918.160255-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183-deferred-projects::f881e303bc575e4fd458361426a27fbf97c94603


Platform\VisualStudio:
    git::refs/heads/183-deferred-projects

Data.VsVersion = 10.0.40219.1
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.Application.Threading.Tasks.TaskHostEx.<>c__DisplayClass2_0.<RunSafe>b__0()
 at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass33_0.<Create>b__1(Object state)
 at System.Threading.Tasks.Task.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()
 at System.Threading.Tasks.Task.ExecutionContextCallback(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.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
 at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
 at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
at ANNOTATED: JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread #5.JetPool(S) #6(Action )
 at JetBrains.Util.Reflection.CallStackAnnotation.InvokeAnnotated(String classNameOfNewFrame, String methodNameOfNewFrame, Action actionToAnnotate)
 at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.<Start>b__20_0()
 at System.Threading.ThreadHelper.ThreadStart_Context(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 System.Threading.ThreadHelper.ThreadStart()

RSRP-18332: Context action to swarp (or move up/down) if-branches in multi-if

$
0
0
Reporter Andrey Simanovsky (ands) Andrey Simanovsky (ands)
Created Aug 6, 2006 12:40:35 AM
Updated Oct 11, 2018 5:09:54 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I have a "multi-if":
if (cond1)
{
//...
}
else if (cond2)
{
//...
}
...
else if (condN)
{
//...
}
else
{
}

Needed: A way to effectively swarp (or move up/down) one of multi-if branches.
Maybe the same for switch statement.
Viewing all 106942 articles
Browse latest View live