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

RSRP-409578: Code is not auto-formatted after applying "Convert to ?: operator" quick-fix

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Mar 14, 2014 5:35:38 PM
Updated Oct 10, 2018 6:41:02 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 8.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Apply "Convert to ?: operator" for

if (codeCampYear.Equals("-1")) 
{
codeCampYearId = 01;
}
else
{
codeCampYearId = ClassLib.LocalConfig.GetLocalValues(Request.RequestUri.Host, null, codeCampYear).CurrentYear;
}

Result: code is not formatted:
codeCampYearId = codeCampYear.Equals("-1") ? 01 : ClassLib.LocalConfig.GetLocalValues(Request.RequestUri.Host, null, codeCampYear).CurrentYear;

RSRP-80754: OutOfMemoryException

$
0
0
Reporter Ilya Ryzhenkov (orangy) Ilya Ryzhenkov (orangy)
Created Sep 16, 2008 10:30:37 AM
Updated Oct 10, 2018 7:00:53 PM
Subsystem Crash
Assignee Sergey Shkredov (serjic.shkredov)
Priority Critical
State Reopened
Type Exception
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471795: is it possible to always have resharper remove empty files after moving the last type out of it? ie. default the check box "Remove empty ...

$
0
0
Reporter Nielsson Consulting (stigbn) Nielsson Consulting (stigbn)
Created Oct 10, 2018 12:15:03 PM
Updated Oct 10, 2018 7:09:54 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

is it possible to always have resharper remove empty files after moving the last type out of it? ie. default the check box "Remove empty ...

RSRP-471803: Under certain circumstances, dependencies between classes are not noticed by Resharper

$
0
0
Reporter Max Guernsey (maxguernseyiii) Max Guernsey (maxguernseyiii)
Created Oct 10, 2018 7:45:12 PM
Updated Oct 10, 2018 7:45:12 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

The problem is that sometimes some methods which are in fact used are treated as if there are no references to it even though there are several references to it. Practically speaking, this affects everything but its biggest impact on me is that it makes rename and safe delete unsafe operations. It also makes the code render stupidly - graying out public methods that are called by the method right above or below it in the same file.

I'm not going to engage in magical thinking and pretend I know the cause so I'll just dump what I think I know and hope someone with more context can figure out the problem.

Here are the circumstances, some of which probably matter:

  1. The code is in a .NET Standard project.
  2. The project has file references to copies of UnityEngine.dll et al
  3. The code references other .NET standard projects, which are functioning perfectly.
  4. All of the classes where the problem is happening inherit MonoBehaviour.

Here are things that I am pretty sure aren't sole causal factors:

  1. .NET Standard: I have other projects in the same solution and they work just fine.
  2. Just using Unity classes I have several classes which do not inherit MonoBehaviour and Resharper works fine with all of them.
  3. The presence or absence of the Unity plug-in. I can't figure out how that plug-in is supposed to help me but it has absolutely no impact on this problem either way.

I'd be glad to add any more information upon request.

RSRP-471804: Invert if adds redundant linebreak

$
0
0
Reporter Andrey Dyatlov (Andrey.Dyatlov) Andrey Dyatlov (Andrey.Dyatlov)
Created Oct 10, 2018 7:56:25 PM
Updated Oct 10, 2018 7:56:25 PM
Subsystem Context Actions
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471716: Unable to cast object of type 'JetBrains.ProjectModel.References.Impl.ProjectToPackageReferenceImpl' to type 'JetBrains.ProjectModel.IProjectItem'.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Oct 1, 2018 3:29:56 PM
Updated Oct 10, 2018 8:13:25 PM
Subsystem Refactorings
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 1 D Build 183.0.20180930.10038-eap01d

JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20180930.62211-eap01d
JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20180930.130054-eap01d
JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20180930.62209-eap01d
JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180930.62414-eap01d
JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180930.130048-eap01d
JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20180930.130048-eap01d

Unable to cast object of type 'JetBrains.ProjectModel.References.Impl.ProjectToPackageReferenceImpl' to type 'JetBrains.ProjectModel.IProjectItem'.

— EXCEPTION #1/2 [InvalidCastException]
Message = “Unable to cast object of type 'JetBrains.ProjectModel.References.Impl.ProjectToPackageReferenceImpl' to type 'JetBrains.ProjectModel.IProjectItem'.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidCastException
HResult = E_NOINTERFACE=COR_E_INVALIDCAST=80004002
Source = JetBrains.ReSharper.Feature.Services
StackTraceString = “
 at JetBrains.ReSharper.Feature.Services.Occurrences.RdUsageListBase.GetProjectItemId(IOccurrence occurrence, IProjectElement& item)
 at JetBrains.ReSharper.Feature.Services.Occurrences.RdUsageListBase.GetProjectItemId(IOccurrence occurrence, IProjectElement& item)
 at JetBrains.ReSharper.Feature.Services.Occurrences.RdUsageListBase.CreateUsage(Int32 index, IOccurrence occurrence)
 at JetBrains.ReSharper.Feature.Services.Occurrences.RdUsageListBase.DoCreateUsage(Int32 index, IOccurrence occurrence)
 at JetBrains.ReSharper.Feature.Services.Occurrences.RdUsageListBase.AddUsages(IEnumerable`1 occurrences, Int32 count)
 at JetBrains.ReSharper.Feature.Services.Occurrences.RdUsageListBase..ctor(Lifetime lifetime, ISolution solution, IconHostBase iconHost, IMainWindowPopupWindowContext mainWindowPopupWindowContext, IReadOnlyList`1 occurences, IOccurrenceBrowserDescriptor descriptor)
 at JetBrains.ReSharper.Feature.Services.Occurrences.RiderUsageListProviderBase.ConvertOccurrences(Lifetime lifetime, IReadOnlyList`1 occurrences, IOccurrenceBrowserDescriptor descriptor)
 at JetBrains.ReSharper.Features.Inspections.AnalyzeReferences.SafeDeleteReference.SafeDeleteReferencePage.Initialize(IProgressIndicator pi)
 at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper`1.ExecuteAction(IProgressIndicator pi)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Unable to cast object of type 'JetBrains.ProjectModel.References.Impl.ProjectToPackageReferenceImpl' to type 'JetBrains.ProjectModel.IProjectItem'.”
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 1 D Build 183.0.20180930.10038-eap01d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20180930.62211-eap01d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20180930.62209-eap01d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180930.130048-eap01d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20180930.130048-eap01d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180930.62414-eap01d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20180930.130054-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183::2c8d8d28afa52efd73be518ce43c6a3459c97844


Platform\VisualStudio:
    git::refs/heads/183::43130964b1cc1da3c7fe34631df76671277b85c4

Data.VsVersion = 15.8.28010.2036
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper`1.ExecuteAction(IProgressIndicator pi)
 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 MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
 at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
 at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
 at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
 at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
 at System.Windows.Forms.Application.RunDialog(Form form)
 at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
 at System.Windows.Forms.Form.ShowDialog()
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunCore(TaskThreadAffinity taskThreadAffinity, Action`1 FTask, Func`3 FAttachUi, ProgressIndicator progressIndicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState)
 at JetBrains.UI.SrcView.Progress.UITaskExecutorRuns.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task)
 at JetBrains.ReSharper.Feature.Services.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.Refactorings.WorkflowNew.IntroduceWithOccurrencesAction`1.Execute(IDataContext context, IRefactoringWorkflow refactoringWorkflow)
 at JetBrains.ReSharper.Feature.Services.ActionsMenu.ExtensibleAction`3.<>c__DisplayClass7_1.<ExecuteGroup>b__4(Object args)
 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.OnMouseUp(MouseEventArgs e)
 at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
 at System.Windows.Forms.Control.WndProc(Message& m)
 at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
 at JetBrains.UI.SrcView.Controls.JetPopupMenu.Impl.JetPopupMenuMainpartView.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.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.JetPopupMenu.JetPopupMenus.<>c__DisplayClass14_0.<ShowModal>b__0(LifetimeDefinition defMenu, Lifetime lifeMenu)
 at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILog logger)
 at JetBrains.Application.UI.Controls.JetPopupMenu.JetPopupMenus.ShowModal(ShowWhen when, Action`2 FFillMenu)
 at JetBrains.ReSharper.Feature.Services.ActionsMenu.ExtensibleAction`3.ExecuteGroup(IDataContext context, IEnumerable`1 workflows)
 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)

RSRP-471806: Extract method suggests name "Task" which breaks code when applied within the same scope where Task.WhenAll() is used.

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Oct 10, 2018 8:52:05 PM
Updated Oct 10, 2018 8:53:14 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I had a specific situation that I tried to reproduce. Please find attached a simple app with an async method and an await with a "Task.WhenAll". When an "Extract Method" is attempted, the suggested method name is "Task" and this leaves the project in an unbuildable state. Apparently the new method name "Task" collides with existing "Task" symbols which are not renamed. Please have a look at the screenshots for exact steps to reproduce.




RSRP-471807: Choosing project: [Shared MSBuild Project Files] for UWP project makes the execution fail

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Oct 10, 2018 9:00:56 PM
Updated Oct 10, 2018 9:02:19 PM
Subsystem Run Configurations
Assignee Slava Tutushkin (slava.tutushkin)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Create empty Xamarin.Forms project with netstandard2.0 forms-project and UWP project.
Rightclick UWP project in the solution explorer, select "Create run configuration..." and select "[Shared MSBuild Project Files]" in the dialog. The resulting "MySolution.sln.DotSettings.user" will prevent ReSharper from starting the project.



RSRP-471805: Invert if / replace with return CA\QF produce incorrect result for lifted equality operators

$
0
0
Reporter Andrey Dyatlov (Andrey.Dyatlov) Andrey Dyatlov (Andrey.Dyatlov)
Created Oct 10, 2018 8:43:21 PM
Updated Oct 10, 2018 9:06:07 PM
Subsystem Quick Fixes
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
E.g. use replace with return QF in the following code:
    private static bool HasCustomEqualityOperator(IType type)
{
if ((type.GetClassType()?.GetMemberPresenceFlag() & MemberPresenceFlag.EQUALITY_OP) == 0)
{
return false;
}

return true;
}

Actual result:

    private static bool HasCustomEqualityOperator(IType type)
{
return (type.GetClassType()?.GetMemberPresenceFlag() & MemberPresenceFlag.EQUALITY_OP) != 0;
}
which does not behave the same.

The original version returned false on null input since null == 0 is false
The modified version returns true on null input since null != 0 is true

The same problem seems to exist with any CA\QF that tries to invert logical expression e.g. 'invert if' and simplify negative equality expression

RSRP-470611: The method or operation is not implemented.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Jul 16, 2018 3:49:46 PM
Updated Oct 10, 2018 10:09:25 PM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Exception
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _3f3919c0 — JetBrains ReSharper Ultimate 2018.2 EAP 4 D Build 182.0.20180714.125507-eap04d

JetBrains dotCover 182 Build 182.0.20180714.131033-eap04d
JetBrains dotMemory 182 Build 182.0.20180714.130916-eap04d
JetBrains dotTrace 182 Build 182.0.20180714.131048-eap04d
JetBrains ReSharper 182 Build 182.0.20180714.130753-eap04d
JetBrains ReSharper C++ 182 Build 182.0.20180714.130743-eap04d
JetBrains TeamCity Add-in 182 Build 182.0.20180714.130733-eap04d

The method or operation is not implemented.

— EXCEPTION #1/2 [NotImplementedException]
Message = “The method or operation is not implemented.”
ExceptionPath = Root.InnerException
ClassName = System.NotImplementedException
HResult = E_NOTIMPL=80004001
Source = JetBrains.ReSharper.Psi.Web
StackTraceString = “
 at JetBrains.ReSharper.Psi.Html.Parsing.HtmlCompoundLexer`1.get_CurrentPosition()
 at JetBrains.ReSharper.Psi.Html.Parsing.HtmlCompoundLexer`1.get_CurrentPosition()
 at JetBrains.ReSharper.Feature.Services.Lookup.LookupUtil.InsertTokens(ITextControl textControl, TokenNodeType[] tokens, DocumentOffset offset, BracketsBalanceEvaluator balanceEvaluator, ILexer tailLexer)
 at JetBrains.ReSharper.Feature.Services.Lookup.LookupUtil.InsertTailType(ITextControl textControl, DocumentOffset offset, TailType tailType, ISolution solution, Boolean emulateTypingOfSpace, PsiLanguageType language)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.AspectLookupItems.Behaviors.KeywordBehavior.InsertTailType(ITextControl textControl, ISolution solution, DocumentOffset offset, TailType tailType)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.AspectLookupItems.Behaviors.TextualBehavior`1.Accept(ITextControl textControl, DocumentRange nameRange, LookupItemInsertType insertType, Suffix suffix, ISolution solution, Boolean keepCaretStill)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.AspectLookupItems.BaseInfrastructure.LookupItem`1.Accept(ITextControl textControl, DocumentRange nameRange, LookupItemInsertType insertType, Suffix suffix, ISolution solution, Boolean keepCaretStill)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.LookupItems.LookupItemCompletor.CompleteItem(Action executeInsideCommandScope)
 at JetBrains.ReSharper.Feature.Services.CodeCompletion.Lookup.LookupActions.CompleteHandler.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()


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “The method or operation is not implemented.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cshtml
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 4 D Build 182.0.20180714.125507-eap04d”
Data.SubProducts.#0 = “JetBrains dotCover 182 Build 182.0.20180714.131033-eap04d”
Data.SubProducts.#1 = “JetBrains dotTrace 182 Build 182.0.20180714.131048-eap04d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 182 Build 182.0.20180714.130743-eap04d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 182 Build 182.0.20180714.130733-eap04d”
Data.SubProducts.#4 = “JetBrains ReSharper 182 Build 182.0.20180714.130753-eap04d”
Data.SubProducts.#5 = “JetBrains dotMemory 182 Build 182.0.20180714.130916-eap04d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182::2fd1edea4a9601b5c5a45397b2b2594fb633aee1


Platform\VisualStudio:
    git::refs/heads/182::d7f5ae379f802e1f164ec64c8bc6212ce560403e

Data.VsVersion = 15.7.27703.2042
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_1.<PrepareRequirementsAsync>b__0()
 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.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass26_0.<TryDelegateToTypingHandlers_NonTyping>b__0()
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.WithRegisteredDelegateBackToVsHandler(String sCommandName, Action`1 FExecDelegateBackToVs, Action FRun)
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.TryDelegateToTypingHandlers_NonTyping(CommandID commandid, Action`1 FExecDelegateBackToVs)
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.TryDelegateToTypingHandlers(Boolean bIsTyping, CommandID commandid, IntPtr pvaIn, Action`1 FExecDelegateBackToVsClosed)
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass29_0.<Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec>b__0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
 at JetBrains.VsIntegration.TextControl.VsTextControlOleCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CompoundTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)

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 1:23:33 AM
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-471808: Resharper threats not using a variable named "unused" as intentional, but does not warn about actually using it

$
0
0
Reporter Attila Zimler (Attila.Zimler) Attila Zimler (Attila.Zimler)
Created Oct 11, 2018 3:24:07 AM
Updated Oct 11, 2018 3:24:07 AM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Hi,

I found that it's a nice touch to ignore warning about not using a variable named unused. Probably though, it a similar warning should be implemented if the variable is named unused and it is being used?

Example code shows a situation where unused is not warned to be not used:

    [Test]
    public void ThrowExceptionOnAttemptToConvertToClosedIntervalWhenFromIsNullAndAttemptingToAccessIt()
    {
        var timeInterval = new TimeInterval { From = null, To = new DateTime(2018, 10, 11) };
        DateTime unused;

        var ex = Assert.Throws<InvalidOperationException>(() => unused = timeInterval.AsClosedTimeInterval().From.AddDays(1));
        ex.Message.Should().Be("Time interval is open, From has no value");
    }

RSRP-471809: Unexpected Formatting Involving Delegate

$
0
0
Reporter Michael DeMond (Mike-EEE76) Michael DeMond (Mike-EEE76)
Created Oct 11, 2018 7:21:07 AM
Updated Oct 11, 2018 7:21:07 AM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-469033: Some invalid automatic codecompletion strategies that was started before (and should be filtered by AcceptsFile) may prevent valid strategies from starting

$
0
0
Reporter Mikhail Senkov (micha) Mikhail Senkov (micha)
Created Apr 2, 2018 5:16:20 PM
Updated Oct 11, 2018 8:49:03 AM
Subsystem IntelliSense (Code Completion)
Assignee Mikhail Senkov (micha)
Priority Normal
State Fixed In Branch
Type Bug
Fix version 2018.3
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
see AspAutopopupTest

RSRP-470924: Problems with autocompletion after the '.'

$
0
0
Reporter Alexander Petrovsky (apetrov2) Alexander Petrovsky (apetrov2)
Created Aug 3, 2018 10:18:30 PM
Updated Oct 11, 2018 8:49:03 AM
Subsystem IntelliSense (Code Completion)
Assignee Mikhail Senkov (micha)
Priority Critical
State Fixed In Branch
Type Bug
Fix version 2018.3
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
In this case, I get (each case with different frequency):
  • auto-popup with the empty list (see autocompletion_1.png)
  • there is no auto-popup (see autocompletion_2.png)
  • everything good (see autocompletion_3.png)

RSRP-468014: startIndex cannot be larger than length of string. Parameter name: startIndex

$
0
0
Reporter Fedor Buyvol-Kot (Fedor.Buyvol-Kot) Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Created Oct 3, 2017 7:09:25 PM
Updated Oct 11, 2018 9:00:18 AM
Subsystem Stack Trace Explorer
Assignee Arseny Chernyaev (Arseny.Chernyaev)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs14 Wave 11 — JetBrains ReSharper Ultimate 2017.3 EAP 1 PRE Build 111.0.20171002.71102-eap01pre

JetBrains dotCover 2017.3 EAP 1 PRE Build 2017.3.20171002.135724-eap01pre
JetBrains dotMemory 2017.3 EAP 1 PRE Build 2017.3.20171002.135717-eap01pre
JetBrains dotTrace 2017.3 EAP 1 PRE Build 2017.3.20171002.135706-eap01pre
JetBrains ReSharper 2017.3 EAP 1 PRE Build 2017.3.20171002.164125-eap01pre
JetBrains ReSharper C++ 2017.3 EAP 1 PRE Build 2017.3.20171002.72247-eap01pre
JetBrains TeamCity Add-in 2017.3 EAP 1 PRE Build 2017.3.20171002.72303-eap01pre

startIndex cannot be larger than length of string. Parameter name: startIndex

— EXCEPTION #1/2 [ArgumentOutOfRangeException]
Message = “startIndex cannot be larger than length of string.”
ExceptionPath = Root.InnerException
ClassName = System.ArgumentOutOfRangeException
HResult = COR_E_ARGUMENTOUTOFRANGE=80131502
Source = mscorlib
ParamName = startIndex
StackTraceString = “
 at System.String.Substring(Int32 startIndex, Int32 length)
 at System.String.Substring(Int32 startIndex, Int32 length)
 at JetBrains.Text.StringBuffer.GetText(TextRange range)
 at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.Parsers.StackTraceParser.GetNextElement()
 at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.Parsers.StackTraceParser.Parse(Int32 start, Int32 end, StackTraceUpdateTokenCache cache)
 at JetBrains.ReSharper.Feature.Services.StackTraces.StackTrace.StackTraceHighlightTextReadActivity.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 = “
startIndex cannot be larger than length of string.
Parameter name: startIndex

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool (S) Regular thread #7”
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2017.3 EAP 1 PRE Build 111.0.20171002.71102-eap01pre”
Data.SubProducts.#0 = “JetBrains dotCover 2017.3 EAP 1 PRE Build 2017.3.20171002.135724-eap01pre”
Data.SubProducts.#1 = “JetBrains dotTrace 2017.3 EAP 1 PRE Build 2017.3.20171002.135706-eap01pre”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2017.3 EAP 1 PRE Build 2017.3.20171002.72247-eap01pre”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2017.3 EAP 1 PRE Build 2017.3.20171002.72303-eap01pre”
Data.SubProducts.#4 = “JetBrains ReSharper 2017.3 EAP 1 PRE Build 2017.3.20171002.164125-eap01pre”
Data.SubProducts.#5 = “JetBrains dotMemory 2017.3 EAP 1 PRE Build 2017.3.20171002.135717-eap01pre”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave11::a18e9b4e2bb12ba2a195257a38fc485809a24926

Data.VsVersion = 14.0.25431.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.<RunSafe>b__1()
 at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClasse.<Create>b__a(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 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-471576: Type reference could be only for type reference but is used on

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Sep 20, 2018 4:58:04 PM
Updated Oct 11, 2018 9:32:55 AM
Subsystem JavaScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Exception
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 183 Hive _3f3919c0ProjectModel — 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

Type reference could be only for type reference but is used on

— EXCEPTION #1/1 [LoggerException]
Message = “Type reference could be only for type reference but is used on”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(L) #7”
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 = 15.8.28010.2026
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.FailWithSensitiveData(String messageText, Pair`2[] sensitiveData)
 at JetBrains.Util.Logging.Logger.FailWithSensitiveData(String messageText, Pair`2[] sensitiveData)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.PrimitiveTypeExtensions.GetTypeReferenceType(JsPrimitive primitive, String name)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsTypeBase.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsTypeWithSignaturesBase.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsNamedType.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsTypeResolverBase.ProcessDerivedTypes(JsTypeResolveResult type, JsResolveContext context, JsTypeDescriptionOpInfo derivedTypeInfo, StrongTypeMode mode, Boolean expectedType, JsUnresolvedTypeFlags flags, Boolean addStandardTypes, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.<>c.<.cctor>b__58_1(JsResolveContext context1, JsUnresolvedTypeBase me, MyCalculationIdentifier ident)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsResolveContext.CalculateWithCache[T,TCalculationIdentifier,TState](TCalculationIdentifier ident, TState state, ResolveContextKind resolveKind, Func`4 getResult, T defaultValue, Boolean checkForCyclicOrTooDeep, Func`4 getCyclicResult, Func`5 processResult)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ExpandRecursively(JsResolveContext context, Boolean standardTypes, Boolean expectedTypes, JsUnresolvedTypeFlags flags, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.<>c.<.cctor>b__58_1(JsResolveContext context1, JsUnresolvedTypeBase me, MyCalculationIdentifier ident)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsResolveContext.CalculateWithCache[T,TCalculationIdentifier,TState](TCalculationIdentifier ident, TState state, ResolveContextKind resolveKind, Func`4 getResult, T defaultValue, Boolean checkForCyclicOrTooDeep, Func`4 getCyclicResult, Func`5 processResult)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ExpandRecursively(JsResolveContext context, Boolean standardTypes, Boolean expectedTypes, JsUnresolvedTypeFlags flags, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ResolveType(JsResolveContext context, Boolean standardTypes, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.VisitTsReferenceName(ITsReferenceName tsReferenceNameParam, IHighlightingConsumer context)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Tree.TypeScript.TsReferenceName.Accept[TContext](TsTreeNodeVisitor`1 visitor, TContext context)
 at JetBrains.ReSharper.Daemon.JavaScript.Prelude.TypeScript.TsDaemonStageProcessBase.ProcessAfterInterior(ITreeNode element, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.ProcessAfterInterior(ITreeNode element, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants[TContext](ITreeNode root, IRecursiveElementProcessor`1 processor, TContext context)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.<Execute>b__10_0(IJavaScriptFile file, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Daemon.JavaScript.Prelude.TypeScript.TsDaemonStageProcessBase.HighlightInFile(Action`2 fileHighlighter, Action`1 commiter)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.Execute(Action`1 committer)
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.RunStage(IDaemonStage stage, DaemonProcessKind processKind, Action`2 commiter, IContextBoundSettingsStore contextBoundSettingsStore, JetHashSet`1 disabledStages)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass47_1.<DoHighlighting>g__Stage|2(IDaemonStage stage)
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass49_1.<PrepareRunActionForStages>b__0()
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass49_1.<PrepareRunActionForStages>b__0()
 at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass22_1.<EnqueueDependentJobs>b__2()
 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 #D.JetPool(L) #7(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-471765: The given key was not present in the dictionary.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Sep 19, 2018 11:03:06 AM
Updated Oct 11, 2018 9:33:16 AM
Subsystem Build Scripts
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 _3f3919c0 — JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180919.22621-eap01d

JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20180919.24125-eap01d
JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20180919.23937-eap01d
JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20180919.24133-eap01d
JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180919.23820-eap01d
JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180919.23820-eap01d
JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20180919.23833-eap01d

The given key was not present in the dictionary.

— EXCEPTION #1/2 [KeyNotFoundException]
Message = “The given key was not present in the dictionary.”
ExceptionPath = Root.InnerException
ClassName = System.Collections.Generic.KeyNotFoundException
HResult = COR_E_KEYNOTFOUND=80131577
Source = mscorlib
StackTraceString = “
 at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
 at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
 at JetBrains.ReSharper.Psi.BuildScripts.ReferenceManager.GetMappedFile(IEnumerable`1 nodes, IDictionary`2 mapping)
 at JetBrains.ReSharper.Psi.BuildScripts.ReferenceManager.BuildDeclaredElements(BuildScriptGraph graph)
 at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptCache.ForceGraphLoad()
 at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptCache.CheckBuildScriptGraph()
 at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptCache.BuildStateForFile(IPsiSourceFile psiSourceFile, Boolean isStartup)
 at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptCache.Build(IPsiSourceFile sourceFile, Boolean isStartup)
 at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClass14_0.<BuildSourceFile>b__0()


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “The given key was not present in the dictionary.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(S) #5”
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180919.22621-eap01d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.3 EAP 1 D Build 2018.3.20180919.24125-eap01d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.3 EAP 1 D Build 2018.3.20180919.24133-eap01d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.3 EAP 1 D Build 2018.3.20180919.23820-eap01d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.3 EAP 1 D Build 2018.3.20180919.23833-eap01d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180919.23820-eap01d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.3 EAP 1 D Build 2018.3.20180919.23937-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183::5d0d97d12df0d17c8a4183b9ac7f76b286efbc04


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

Data.VsVersion = 15.8.28010.2026
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClass14_0.<BuildSourceFile>b__0()
 at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClass14_0.<BuildSourceFile>b__0()
 at JetBrains.Util.Logging.ILoggerStructuredEx.DoCalculation[T](LoggerWithSeverity logger, String key, String message, Func`1 action, Func`2 report)
 at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.BuildSourceFile(IPsiSourceFile sourceFile, IDocument doc)
 at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClass13_1.<ExecuteUpdate>b__1(IPsiSourceFile file, IDocument doc)
 at JetBrains.ReSharper.Psi.Caches.Jobs.CacheJobService2.<>c__DisplayClass37_0`2.<WrappedJob>b__0()
 at JetBrains.ReSharper.Psi.Caches.Jobs.CacheJobService2.<>c__DisplayClass35_0`2.<ExecuteWithPrerocessAndInterrupt>b__1(T x, TPreprocessResult y)
 at JetBrains.Application.Threading.Tasks.TaskHostEx.<>c__DisplayClass5_1`2.<PreprocessSingleThreadedAndParallelize>b__1()
 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 #3.JetPool(S) #5(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-471810: "var" keyword is not available for autocompletion inside "foreach"

$
0
0
Reporter Ivan Migalev (Ivan.Migalev) Ivan Migalev (Ivan.Migalev)
Created Oct 11, 2018 10:03:29 AM
Updated Oct 11, 2018 10:03:29 AM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

Consider I have this simple .NET Core program:

using System;

namespace ConsoleApp17
{
    class EnvironmentVariable {}
    
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}

Now, I want to enter foreach (var x in "Hello") {} in the Main method. So I type:

Now if I press Space, it will end up completing something unrelated: EnvironmentVariable, VarEnum or something else.

Please add var keyword to the autocomplete list there. Reproduced in both Rider and ReSharper. May be related to RSRP-470960.

JetBrains ReSharper Ultimate 2018.3 EAP 2 D Checked Build 183.0.20181008.115722-eap02d
This pre-release version will expire in 26 days
dotCover 2018.3.20181008.121226-eap02d
dotTrace 2018.3.20181008.121231-eap02d
ReSharper C++ 2018.3.20181008.120854-eap02d
TeamCity Add-in 2018.3.20181008.121021-eap02d
ReSharper 2018.3.20181008.120956-eap02d
dotMemory 2018.3.20181008.121228-eap02d

RSRP-470960: Bad behavior of autocomplete in foreach()

$
0
0
Reporter Olga Rodygina (olgarodygina) Olga Rodygina (olgarodygina)
Created Aug 7, 2018 4:27:56 PM
Updated Oct 11, 2018 10:03:29 AM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.1.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
In unity project (didn't try .net projects) when typing "foreach(var something in" I'm getting list of autocomplete variants which starts NOT from "in" keyword (as expected) but from some method names like "Init" or "Instantiate" when available, then pressing Space inserts the method name instead of keeping "in". That's annoying, i need to press ESC before continue typing. Works fine in vannilla VS (without resharper).

Viewing all 106942 articles
Browse latest View live


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