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

RSRP-463422: Mistaken possible null report

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Mar 6, 2017 3:28:14 PM
Updated Apr 15, 2018 3:41:40 AM
Subsystem Code Analysis - Annotations
Assignee Alexander Shvedov (shvedov)
Priority Major
State Submitted
Type Bug
Fix version 2017.2
Affected versions 2017.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
The code below has ReSharper mistakenly complaining that the results of server.MapPath() can be null, and that therefore File.GetLastWriteTime() is potentially being given a null argument.

If you pass a null to MapPath, ReSharper is (correctly) happy that this result can be passed successfully to GetLastWriteTime() – there is a guaranteed non-null result from GetLastWriteTime(null). If you pass a NON-null argument to MapPath(), ReSharper is also (correctly) happy. It is only if you pass a variable like "file" to the MapPath() method that ReSharper (incorrectly) complains.
private DateTime NullParameterIssue( [NotNull] System.Web.HttpServerUtility server, 
[CanBeNull] string file)
=> System.IO.File.GetLastWriteTime(server.MapPath(file));

RSRP-80754: OutOfMemoryException

$
0
0
Reporter Ilya Ryzhenkov (orangy) Ilya Ryzhenkov (orangy)
Created Sep 16, 2008 10:30:37 AM
Updated Apr 15, 2018 8:51:21 AM
Resolved Feb 8, 2018 12:58:28 PM
Subsystem Crash
Assignee Sergey Shkredov (serjic.shkredov)
Priority Critical
State Obsolete
Type Exception
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-469251: EditorConfig overridden severities are not shown in the options window

$
0
0
Reporter Manuel Pallier (manuel.pallier) Manuel Pallier (manuel.pallier)
Created Apr 13, 2018 10:35:46 AM
Updated Apr 15, 2018 1:15:11 PM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Critical
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

The ReSharper options window doesn't hightligh overridden severity settings from EditorConfig files. It also doesn't show the EditorConfig value in a tooltip.

This applies both to severities from Rolyn settings like "csharp_style_var_for_built_in_types = false:suggestion" and to ReSharpers own settings like "resharper_arrange_static_member_qualifier_highlighting = hint".

Tested with 2018.1 EAP 8

RSRP-469252: Provide EditorConfig properties for TypeScript code style settings

$
0
0
Reporter Manuel Pallier (manuel.pallier) Manuel Pallier (manuel.pallier)
Created Apr 13, 2018 10:49:31 AM
Updated Apr 15, 2018 1:15:38 PM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

According to the documentation there are EdiorConfig properties for JavaScript code style settings - at least for 2 of the 3 that are available in the ReSharper options window. But it seems like none of the additional TypeScript settings are available as EditorConfig properties. There isn't even a page for TypeScript code style EditorConfig properties in the documentation.

Please add those properties.

RSRP-468977: Start() must not be invoked twice.

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Jan 19, 2018 11:01:35 PM
Updated Apr 15, 2018 3:44:17 PM
Resolved Mar 31, 2018 9:53:34 AM
Subsystem Quick Fixes
Assignee Andrew Karpov (andrew.karpov)
Priority Show-stopper
State Fixed
Type Exception
Fix version 2018.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 6
VsVersion VS 2017 RTM
ReSharperPlatformVs15 Wave 12 Hive _321c4cfdPro15 — JetBrains ReSharper Ultimate 2018.1 EAP 1 D Build 112.0.20180109.194344-eap01d

JetBrains ReSharper 2018.1 EAP 1 D Build 2018.1.20180109.194344-eap01d

Start() must not be invoked twice.

— EXCEPTION #1/2 [InvalidOperationException]
Message = “Start() must not be invoked twice.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509

— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Start() must not be invoked twice.”
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.1 EAP 1 D Build 112.0.20180109.194344-eap01d”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.1 EAP 1 D Build 2018.1.20180109.194344-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave12::6cace2f1f6b80db0e46aec3c9a3e474d42fc7678

Data.VsVersion = 15.0.26228.4
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.Progress.ProgressIndicatorBase.Start(Int32 totalWorkUnits) in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\Progress\ProgressIndicatorBase.cs:line 150
 at JetBrains.Application.Progress.ProgressIndicatorBase.Start(Int32 totalWorkUnits) in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\Progress\ProgressIndicatorBase.cs:line 150
 at JetBrains.ReSharper.Feature.Services.Intentions.Scoped.Engine.OffsetBasedProgressReporter..ctor(IProgressIndicator progressIndicator, Int32 startOffset, Int32 endOffset) in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Intentions\Scoped\Engine\OffsetBasedProgressReporter.cs:line 34
 at JetBrains.ReSharper.Feature.Services.Intentions.Scoped.Engine.ScopedIntentionExecutor.<>c__DisplayClass2_0.<ExecuteInPsiScope>b__0() in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Intentions\Scoped\Engine\ScopedIntentionExecutor.cs:line 43
 at JetBrains.ReSharper.Psi.Transactions.PsiTransactions.Execute(String commandName, Action handler) in W:\ReSharper\Psi.Features\Core\Psi\_Core\Src\Transactions\PsiTransactions.cs:line 296
 at JetBrains.ReSharper.Feature.Services.Intentions.Scoped.Engine.ScopedIntentionExecutor.ExecuteInPsiScope(ITreeNode psiScope, IProgressIndicator fileProgress) in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Intentions\Scoped\Engine\ScopedIntentionExecutor.cs:line 37
 at JetBrains.ReSharper.Feature.Services.Intentions.Scoped.Executors.ScopedActionExecutor.Execute(Scope scope, IProgressIndicator progress) in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Intentions\Scoped\Executors\ScopedActionExecutor.cs:line 77
 at JetBrains.ReSharper.Feature.Services.Intentions.Scoped.QuickFixes.ScopedQuickFixBase.JetBrains.ReSharper.Feature.Services.Intentions.Scoped.Actions.IManualScopedAction.ExecuteAction(ISolution solution, Scope scope, IProgressIndicator progress) in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Intentions\Scoped\QuickFixes\ScopedQuickFixBase.cs:line 58
 at JetBrains.ReSharper.Feature.Services.Intentions.Scoped.BulbActions.ManualDecorativeScopedBulbAction.ExecuteAfterPsiTransaction(ISolution solution, IProjectModelTransactionCookie cookie, IProgressIndicator progress) in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Intentions\Scoped\BulbActions\ManualDecorativeScopedBulbAction.cs:line 25
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.<>c__DisplayClass0_3.<Execute>b__0(IProgressIndicator progress) in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Bulbs\BulbActionBase.cs:line 80
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunStartTaskCallTaskAction(IProperty`1 isDone, ProgressIndicator progressIndicator, TaskThreadAffinity taskThreadAffinity, Action`1 FTask, JetDispatcher dispatcherPrimary) in W:\ReSharper\Platform\UIInteractive\Shell\SrcView\Progress\UITaskExecutorRun.cs:line 382
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.<>c__DisplayClass11_0.<RunStartTask>b__0() in W:\ReSharper\Platform\UIInteractive\Shell\SrcView\Progress\UITaskExecutorRun.cs:line 362
 at JetBrains.Threading.JetDispatcher.Closure.Execute() in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\JetDispatcher.cs:line 615
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket) in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 434
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass18_0.<BeginInvokeCore>b__0() in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 249
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
 at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
 at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
 at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
 at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
 at System.Windows.Forms.Application.RunDialog(Form form)
 at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
 at System.Windows.Forms.Form.ShowDialog()
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunCore(TaskThreadAffinity taskThreadAffinity, Action`1 FTask, Func`3 FAttachUi, ProgressIndicator progressIndicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState) in W:\ReSharper\Platform\UIInteractive\Shell\SrcView\Progress\UITaskExecutorRun.cs:line 142
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRuns.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task) in W:\ReSharper\Platform\UIInteractive\Shell\SrcView\Progress\UITaskExecutorRuns.cs:line 213
 at JetBrains.ReSharper.Feature.Services.Bulbs.BulbActionBase.Execute(ISolution solution, ITextControl textControl) in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Bulbs\BulbActionBase.cs:line 92
 at JetBrains.ReSharper.Feature.Services.Intentions.IntentionAction.MyExecutableProxi.Execute() in W:\ReSharper\Psi.Features\Core\Services\_Core\Src\Intentions\IntentionAction.cs:line 78
 at JetBrains.Application.UI.Controls.BulbMenu.Keys.BulbActionKey.Clicked() in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\Controls\BulbMenu\Keys\BulbActionKey.cs:line 83
 at JetBrains.Application.UI.Controls.GotoByName.BulbMenuComponent.<>c__DisplayClass29_0.<InitMenuGeneral>b__0(Object objKey) in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\Controls\GotoByName\BulbMenuComponent.cs:line 278
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload) in W:\ReSharper\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 384
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie) in W:\ReSharper\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 545
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenu.<>c__DisplayClass49_0.<InitViewModel>b__3(JetPopupMenuItem item) in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\Controls\JetPopupMenu\JetPopupMenu.cs:line 363
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload) in W:\ReSharper\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 384
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie) in W:\ReSharper\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 545
 at JetBrains.DataFlow.Signal`1.Fire(TValue value) in W:\ReSharper\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 494
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload) in W:\ReSharper\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 384
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie) in W:\ReSharper\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 545
 at JetBrains.DataFlow.Signal`1.Fire(TValue value) in W:\ReSharper\Platform\Core\Shell\Core\Src\DataFlow\Signal!1.cs:line 494
 at JetBrains.Application.UI.Controls.JetPopupMenu.Detail.JetPopupMenuDoc.ExecuteSelectedItem() in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\Controls\JetPopupMenu\Detail\JetPopupMenuDoc.cs:line 285
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuMainpartView.OnKeyDownLowPriority(KeyEventArgs args) in W:\ReSharper\Platform\UIInteractive\Shell\SrcView\Controls\JetPopupMenu\Impl\JetPopupMenuMainpartView.cs:line 1652
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuView.OnKeyDown(KeyEventArgs args) in W:\ReSharper\Platform\UIInteractive\Shell\SrcView\Controls\JetPopupMenu\Impl\JetPopupMenuView.cs:line 837
 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) in W:\ReSharper\Platform\UIInteractive\Shell\SrcView\Controls\JetPopupMenu\Impl\JetPopupMenuView.cs:line 1034
 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) in W:\ReSharper\Platform\UIInteractive\Shell\Src\Utils\DpiUtil.cs:line 538
 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() in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 646
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run(Func`1 condition, TimeSpan timeout, Boolean bThrowOnTimeout) in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 809
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.JetPopupMenuOverlordView.Show(Boolean isModal) in W:\ReSharper\Platform\UIInteractive\Shell\SrcView\Controls\JetPopupMenu\JetPopupMenuOverlordView.cs:line 99
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenus.ShowCore(JetPopupMenu menu, ShowWhen when, Boolean isModal, LifetimeDefinition lifetimeDefinitionOptional, IJetPopupMenuOverlordView parentView) in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\Controls\JetPopupMenu\JetPopupMenus.cs:line 197
 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) in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\Controls\GotoByName\BulbMenuComponent.cs:line 170
 at JetBrains.ReSharper.Intentions.Bulbs.BulbOnGutterMarginIndicator.ExecuteIndicator(IDataContext context, BulbItemsReadyState readyState) in W:\ReSharper\Psi.Features\src\Intentions\_Core\Src\Bulbs\GutterMargin\BulbOnGutterMarginIndicator.cs:line 181
 at JetBrains.ReSharper.Intentions.Bulbs.IndicatorControllerBase.HandleAction(IDataContext context) in W:\ReSharper\Psi.Features\src\Intentions\_Core\Src\Bulbs\IndicatorControllerBase.cs:line 73
 at JetBrains.ReSharper.Intentions.Bulbs.AltEnterHandlers.HandleAction(IDataContext context) in W:\ReSharper\Psi.Features\src\Intentions\_Core\Src\Bulbs\AltEnterHandlers.cs:line 28
 at JetBrains.ReSharper.Intentions.Bulbs.AltEnterActionHandler.Execute(IDataContext context, DelegateExecute nextExecute) in W:\ReSharper\Psi.Features\src\Intentions\_Core\Src\Bulbs\AltEnterActionHandler.cs:line 41
 at JetBrains.Application.UI.ActionsRevised.Handlers.ExececutableActionEvaluator.Execute(IAction action, List`1 allActions, IDataContext dataContext) in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\ExececutableActionEvaluator.cs:line 50
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<ExecuteWithoutRequirements>b__23_0(Lifetime lt) in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 82
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ) in W:\ReSharper\Platform\Core\Shell\RdCore\Src\Lifetime\Lifetimes.cs:line 278
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.ExecuteWithoutRequirements() in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 75
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_0.<PrepareRequirementsAsync>b__1() in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 52
 at JetBrains.Util.Logging.Logger.Catch(Action action) in W:\ReSharper\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 339
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_0.<PrepareRequirementsAsync>b__0() in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 53
 at JetBrains.Application.UI.ActionSystem.ActionsRevised.Handlers.RequirementsManager.ExecuteActionAsync(IActionRequirement requirement, Action continueWith, Action failWith, Boolean reSharperIsThinking) in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\ActionSystem\ActionsRevised\Handlers\RequirementsManager.cs:line 126
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.PrepareRequirementsAsync(OuterLifetime lifetime, Func`1 executeWhenRequirementsReady, Action`1 failWith) in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 62
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.Execute() in W:\ReSharper\Platform\Core\Shell\Shell\Src\UI\ActionsRevised\Handlers\EvaluatedAction.cs:line 70
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.<>c__DisplayClass15_0.<CommandTargetExec>b__0() in W:\ReSharper\Platform\VisualStudio\Core\Src\Shell\Actions.Revised\VsOleCommandTargetHandler.cs:line 285
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 300
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action) in W:\ReSharper\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 525
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.CommandTargetExec(CommandID commandid, OLECMDEXECOPT cmdExecOpt) in W:\ReSharper\Platform\VisualStudio\Core\Src\Shell\Actions.Revised\VsOleCommandTargetHandler.cs:line 277
 at JetBrains.VsIntegration.Shell.Actions.Revised.VsOleCommandTargetHandler.<.ctor>b__11_1(CommandID commandid, OLECMDEXECOPT opt, IntPtr in, IntPtr out) in W:\ReSharper\Platform\VisualStudio\Core\Src\Shell\Actions.Revised\VsOleCommandTargetHandler.cs:line 89
 at JetBrains.VsIntegration.Shell.Package.VsPackageSdkStub.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& guidGroup, UInt32 nCmdId, UInt32 nCmdExcept, IntPtr vIn, IntPtr vOut) in W:\ReSharper\Platform\VisualStudio\Core\Src\Shell\Package\VsPackageSdkStub.cs:line 230

RSRP-469267: Hovering a method should also provide "returns" information

$
0
0
Reporter Andreas (soulfury) Andreas (soulfury)
Created Apr 15, 2018 4:12:42 PM
Updated Apr 15, 2018 4:12:42 PM
Subsystem Tooltips
Assignee Serge Baltic (baltic)
Priority Normal
State Submitted
Type Improvement
Fix version No Fix versions
Affected versions 2017.3.5
Fixed In Version ReSharper Undefined
VsVersion All Versions

Ideally the tooltip should show the content of the "returns" section.

RSRP-467627: The JetBrains.DataFlow.LifetimeDefinition lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Oct 12, 2017 3:33:21 PM
Updated Apr 15, 2018 5:18:42 PM
Resolved Apr 4, 2018 12:16:58 PM
Subsystem Structured Patterns (SSR)
Assignee Andrew Karpov (andrew.karpov)
Priority Critical
State Fixed
Type Exception
Fix version 2018.1
Affected versions 2017.3.2
Fixed In Version ReSharper 2018.1 EAP 6
VsVersion VS 2017 RTM
ReSharperPlatformVs14 Wave 11 — JetBrains ReSharper Ultimate 2017.3 EAP 1 PRE Build 111.0.20171010.200955-eap01pre

JetBrains ReSharper 2017.3 EAP 1 PRE Build 2017.3.20171010.203159-eap01pre

The JetBrains.DataFlow.LifetimeDefinition lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.

— EXCEPTION #1/3 [InvalidOperationException]
Message = “The JetBrains.DataFlow.LifetimeDefinition lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509

— Outer —

— EXCEPTION #2/3 [FinallyException]
Message = “The JetBrains.DataFlow.LifetimeDefinition lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.”
ExceptionPath = Root.InnerException
ClassName = JetBrains.DataFlow.Disposable+FinallyException
Data.CreationStackTrace = “-=[ Stack trace logging disabled. ]=-”
Data.ObjectId = JetBrains.DataFlow.LifetimeDefinition
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_APPLICATION=80131600
ObjectId = JetBrains.DataFlow.LifetimeDefinition
CreationStackTrace = “-=[ Stack trace logging disabled. ]=-”

— Outer —

— EXCEPTION #3/3 [LoggerException]
Message = “The JetBrains.DataFlow.LifetimeDefinition lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2017.3 EAP 1 PRE Build 111.0.20171010.200955-eap01pre”
Data.SubProducts.#0 = “JetBrains ReSharper 2017.3 EAP 1 PRE Build 2017.3.20171010.203159-eap01pre”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave11::7eec7cc432e9fc2e3a7eb76e9157f7607e05f013


Platform\VisualStudio:
    git::refs/heads/wave11

Data.VsVersion = 14.0.25431.1
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.DataFlow.Disposable.FinallyException.LogMissedDispose(String id, String message, String sOriginatingStackTrace) in c:\Build Agent\work\ee51aa07abc92c2a\Platform\Core\Shell\Core\Src\DataFlow\Lifetime\Disposable.cs:line 348
 at JetBrains.DataFlow.Disposable.FinallyException.LogMissedDispose(String id, String message, String sOriginatingStackTrace) in c:\Build Agent\work\ee51aa07abc92c2a\Platform\Core\Shell\Core\Src\DataFlow\Lifetime\Disposable.cs:line 348
 at JetBrains.DataFlow.Disposable.FinalizableDisposable.Finalize() in c:\Build Agent\work\ee51aa07abc92c2a\Platform\Core\Shell\Core\Src\DataFlow\Lifetime\Disposable.cs:line 254

RSRP-469253: VBCSCompiler.exe high memory usage after installation of Reshaper

$
0
0
Reporter Jude Pang (judep) Jude Pang (judep)
Created Apr 13, 2018 11:14:55 AM
Updated Apr 16, 2018 7:43:04 AM
Subsystem Platform - VS Integration
Assignee Alexandra Kuks (Asia.Rudenko)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3.5
Fixed In Version ReSharper Undefined
VsVersion VS 2017 15.3
Hi there,

I did my C# project in VS 2015 and migrated to VS 2017.

Recently, after copying the C# and ASPX files to my server, i realized that the VBCSCompiler.exe has hit higher CPU usage that can hit almost or 100% CPU usage.

The only thing i could recall is that recently i installed Resharper.

Appreciate any help available.

RSRP-135069: CamelCase should not capitalize letter after digit

$
0
0
Reporter Yuri Astrakhan (yurik) Yuri Astrakhan (yurik)
Created Nov 23, 2009 12:11:55 AM
Updated Apr 16, 2018 9:33:01 AM
Subsystem Code Style - Naming
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
IMHO, R# should not capitalize a letter immediately following a digit. For example, Is64bit looks easier to read then Is64Bit.

RSRP-279508: For member variable, should show 'quick fixes' entry of 'Generate getter' even if nothing writes it yet

$
0
0
Reporter James Manning (James.Manning) James Manning (James.Manning)
Created Nov 9, 2011 8:23:38 PM
Updated Apr 16, 2018 10:55:56 AM
Resolved Apr 16, 2018 10:55:56 AM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Usability Problem
Fix version Backlog
Affected versions 6.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
JetBrains ReSharper 6.1 EAP C# Edition Pre-Release
Build 6.1.0.11493 on 2011-11-04T16:52:08
Visual Studio 10.0.40219.1.

After adding a new member variable to a class that will be written to by methods in the class itself and just read by other classes (the moral equivalent of public property with private setter), I had added just the member variable. The quick fixes available were 'Comment unused field' and 'Initialize field from constructor parameter', but not 'Generate getter'.

After I added something that writes to that member variable (in my case, by using the 'Initialize field from constructor parameter' quick fix, even though I didn't actually want that), then the 'Generate getter' quick fix becomes available.

I'd like that to be available sooner (even if nothing writes to the member variable yet), since I know I'm about to go back to a method that will start writing to this new member variable, but want to add the public getter for it before going back to that method and doing the write logic.

RSRP-284069: extract interface creates with incorrect bracing style (does not respect user selection)

$
0
0
Reporter James Manning (James.Manning) James Manning (James.Manning)
Created Nov 30, 2011 1:55:12 AM
Updated Apr 16, 2018 11:00:30 AM
Resolved Apr 16, 2018 11:00:30 AM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Can't Reproduce
Type Bug
Fix version Backlog
Affected versions 6.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
JetBrains ReSharper 6.1 EAP C# Edition Pre-Release
Build 6.1.8.21 on 2011-11-20T06:34:02
Plugins: none
Visual Studio 10.0.40219.1.

when i let R# create new code (extract interface is one example, but it happens for other cases as well), it uses the K&R bracing style (IIRC, that's the R# default) instead of my own bracing choice set in the R# options (BSD). This means that I then have to reformat the generated file in order to fix the bracing style.

Generated code like 'extract interface' should use the user's choices for formatting. Worst-case, this seems simple to fix by adding a 'format code' call afterwards for the newly generated code, but that's probably not viable in all code generation cases.

RSRP-284375: Apply more refactoring brakes code

$
0
0
Reporter Ivan Shakhov (Ivan.Shakhov) Ivan Shakhov (Ivan.Shakhov)
Created Dec 1, 2011 4:19:08 PM
Updated Apr 16, 2018 11:11:28 AM
Subsystem Refactorings - Inplace
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Open
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Open ReSharper solution
2. Goto BookmarksTest.cs and substitute it with the attached file.
3. Select all code inside BookmarksTestBase and cut-paste it to BookmarksTest
4. Apply more refactoring
As a result code is broken - check the "Resulted BookmarksTest.cs"

RSRP-287374: Move to another type dialog bug

$
0
0
Reporter T (thymin) T (thymin)
Created Dec 24, 2011 3:39:25 PM
Updated Apr 16, 2018 11:30:38 AM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Open
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
One of the many many lost formatting bugs during refactorings is this one:

class Program
{
static void Main(string[] args)
{
var x = uint.MaxValue;
}
}
class T
{

}

Now open the "move to another type" dialog. Type "T" but do not click the autocomplete-item for it. Instead just click next. R# now creates a new file called T.cs. This is a bug.

RSRP-288057: [StringFormatMethod] attribute is not working in constructors

$
0
0
Reporter Yuri Astrakhan (yurik) Yuri Astrakhan (yurik)
Created Jan 29, 2012 12:08:12 AM
Updated Apr 16, 2018 11:58:21 AM
Resolved Apr 16, 2018 11:58:21 AM
Subsystem Matching Elements - String Format
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Bug
Fix version Backlog
Affected versions 6.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

namespace JetBrains.Annotations
{
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class StringFormatMethodAttribute : Attribute
{
public StringFormatMethodAttribute(string formatParameterName)
{
FormatParameterName = formatParameterName;
}

[UsedImplicitly]
public string FormatParameterName { get; private set; }
}
}

namespace MyTest
{
[Serializable]
public class TestException : Exception
{
[StringFormatMethod("message")]
public TestException(string message, params object[] args)
: base(string.Format(message, args))
{
}
}

public class Test
{
public static void Main()
{
throw new TestException("{0} {1}", 100); // <--------------- This should be highlighted as a warning
}
}
}

RSRP-288157: Convert method to property method's makes a mess with methods's doc comments

$
0
0
Reporter vilinski (python) vilinski (python)
Created Feb 3, 2012 9:04:28 PM
Updated Apr 16, 2018 11:59:40 AM
Resolved Apr 16, 2018 11:59:40 AM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version No Fix versions
Affected versions 6.1.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
It was a method like this one:
        /// <summary>
        /// Determines whether this instance has credentials - not empty <see cref="Server"/> and <see cref="User"/> values.
        /// </summary>
        /// <returns>
        /// <c>true</c> if this instance has credentials - not empty <see cref="Server"/> and <see cref="User"/> values; otherwise, <c>false</c>.
        /// </returns>
        public bool HasCredentials()
        {
            return
                !string.IsNullOrWhiteSpace(Server) &&
                !string.IsNullOrWhiteSpace(User);
        }
Context menu "Refactor this"->"Convert method to property"
and there is the property with messed doc comments:
        /// <summary>
        /// Determines whether this instance has credentials - not empty <see cref="Server"/> and <see cref="User"/> values.
        /// </summary>
        /// <value> &lt;c&gt;true&lt;/c&gt; if this instance has credentials - not empty &lt;see cref=&quot;Server&quot;/&gt; and &lt;see cref=&quot;User&quot;/&gt; values; otherwise, &lt;c&gt;false&lt;/c&gt;. </value>
        public bool HasCredentials
        {
            get
            {
                return
                    !string.IsNullOrWhiteSpace(Server) &&
                    !string.IsNullOrWhiteSpace(User);
            }
        }

RSRP-469268: [Xamarin] Activity class is never used warning despite MainLauncher being true

$
0
0
Reporter Michał Kudela (michdem) Michał Kudela (michdem)
Created Apr 16, 2018 12:01:08 PM
Updated Apr 16, 2018 12:01:08 PM
Subsystem Code Analysis - Annotations
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

ReSharper marks classes like following:

[Activity(/...,/ MainLauncher=true, /.../)]
public class SomeAct : Activity
{
//...
}

as 'never used' despite being used as the first launched activity (marked by MainLauncher) in android app.

RSRP-288175: Correct code becomes red when using create method quic fix

$
0
0
Reporter Dmitriy Kostikov (rumatavz) Dmitriy Kostikov (rumatavz)
Created Feb 6, 2012 3:28:18 PM
Updated Apr 16, 2018 12:04:33 PM
Resolved Apr 16, 2018 12:04:33 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version Backlog
Affected versions 6.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
I have following code:

public class ScalesFlowChartState : FlowChartState
{
public void Initialize()
{
var all = new List<FlowChartState>();
List<FlowChartState> drainPosts = GetDrainPosts();
List<FlowChartState> fillingPosts = GetFillingPosts();
List<PipelineTubingFlowChartState> pipelineTubings = GetPipelineTubings();
List<FlowChartState> pipelineRoutes = GetPipelineRoutes(pipelineTubings);
List<FlowChartState> sclaes = GetScales();
List<FlowChartState> tanks = GetTanks();
}
}

When I'm trying to create methods (GetDrainPosts, GetFillingPosts and so on) using quic fix methods created correctly, but method usages becomes red.
After creation of first method I don't press ESC or ENTER but just select next method using mouse and press ALT+ENTER again.

In version 6.0 resharper behaves correctly.

Version information:

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel


JetBrains ReSharper 6.1 Full Edition build 6.1.37.86 on 2011-12-20T17:15:24
JetBrains ReSharper 6.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2012 JetBrains, Inc.

RSRP-289858: "Move to another file to match type name" duplicates code in new file

$
0
0
Reporter Mark Rendle (markrendle) Mark Rendle (markrendle)
Created Mar 12, 2012 5:00:07 PM
Updated Apr 16, 2018 12:33:42 PM
Resolved Apr 16, 2018 12:33:41 PM
Subsystem Refactorings
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
Using the ReSharper 7 for VS11 Beta EAP build 7.0.0.325.

When I use the "Move to another file to match type name" refactoring from Alt+Enter, the class code is duplicated in the new file that is created.

System info:
VS11 Beta running on Windows 7 Ultimate N x64 edition in Parallels v7.
Also have VsVim plug-in installed.

RSRP-293239: Adding a parameter should invoke Change Signature refactoring

$
0
0
Reporter Brian (oliwa) Brian (oliwa)
Created Apr 7, 2012 7:24:22 PM
Updated Apr 16, 2018 12:41:20 PM
Resolved Apr 16, 2018 12:41:20 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Usability Problem
Fix version Backlog
Affected versions 6.1.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
When I add a parameter to a method that already has a parameter and hit ALT+ENTER the only option I have is to create an overload without the parameter but what I really want is to add the new parameter.

If I try this on a method without parameters it works as desired.

RSRP-294159: Using Context Action menu causes document to become uneditable when there are multiple choices

$
0
0
Reporter Christopher Currens (Christopher.Currens) Christopher Currens (Christopher.Currens)
Created Apr 13, 2012 1:12:37 AM
Updated Apr 16, 2018 12:45:25 PM
Resolved Apr 16, 2018 12:45:25 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
If you bring up and use the context action menu on an undocked window (that is not attached to the main IDE window), using Alt+Enter you will no longer be able to edit the document, until the window loses focus to another visual studio window. This will only happen if there are multiple choices in the context action menu that appears. The document will be read-only regardless if you select one of the choices in the menu.

Steps to reproduce:

Create a new project with two .cs files. In one, put the following code:

namespace Thing1
{
public class Thing
{
}
}

namespace Thing2
{
public class Thing
{
}
}

Open the other .cs file (it should be blank), and undock it from the main IDE window. You can leave it minimized, or you can maximize it on another monitor. Put the following code in the window:


namespace Test
{
class Program
{
static void Main(string[] args)
{
Thing
}
}
}

Press Alt+Enter to bring up the context menu over "Thing". If you select one of the choices or just click away, you cannot edit the document. If you bring focus to the main IDE and back to the attached window, you can edit it again. Notice the window will also append "[Read Only]" to the title.
Viewing all 106942 articles
Browse latest View live


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