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

RSRP-469035: Transition failed: Transition from state on event . Cause: System.ServiceModel.EndpointNotFoundException: There

$
0
0
Reporter David Stacey-Gee (mikeg@gee-soft.co.uk) David Stacey-Gee (mikeg@gee-soft.co.uk)
Created Mar 20, 2018 1:24:45 PM
Updated Apr 9, 2018 6:51:53 PM
Resolved Apr 4, 2018 9:00:12 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Duplicate
Type Exception
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _188944d0 — JetBrains ReSharper Ultimate 2018.1 EAP 3 Build 112.0.20180317.133322-eap03

JetBrains dotCover 2018.1 EAP 3 Build 2018.1.20180317.134708-eap03
JetBrains dotMemory 2018.1 EAP 3 Build 2018.1.20180317.134710-eap03
JetBrains dotTrace 2018.1 EAP 3 Build 2018.1.20180317.134715-eap03
JetBrains ReSharper 2018.1 EAP 3 Build 2018.1.20180317.134525-eap03
JetBrains ReSharper C++ 2018.1 EAP 3 Build 2018.1.20180317.134526-eap03
JetBrains TeamCity Add-in 2018.1 EAP 3 Build 2018.1.20180317.134527-eap03

Transition failed: Transition from state <RunnerStarting> on event <local::RunnerStarted>. Cause: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.pipe://mikestacey-b4a7/vstest.discoveryengine/21084 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. —> System.IO.PipeException: The pipe endpoint 'net.pipe://mikestacey-b4a7/vstest.discoveryengine/21084' could not be found on your local machine. — End of inner exception stack trace — Server stack trace: at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri, IPipeTransportFactorySettings transportFactorySettings) at System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress address, Uri via) at System.ServiceModel.Channels.CommunicationPool2.TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, TKey& key) at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout) at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade) at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.VisualStudio.TestPlatform.Core.ITestRunnerService.InitializeConnection(IEnumerable1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.TestRunnerServiceProxy.InitializeConnection(IEnumerable1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.<>c__DisplayClass23_0.<OpenClient>b__1(ITestRunnerService x) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.ResurrectableProxy1.WithTimeout(Action1 action) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.OpenClient() at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument) at Appccelerate.StateMachine.Machine.States.State2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext2 context)

--- EXCEPTION #1/1 [LoggerException]
Message = “
Transition failed: Transition from state <RunnerStarting> on event <local::RunnerStarted>.
Cause: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.pipe://mikestacey-b4a7/vstest.discoveryengine/21084 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.IO.PipeException: The pipe endpoint 'net.pipe://mikestacey-b4a7/vstest.discoveryengine/21084' could not be found on your local machine.
--- End of inner exception stack trace ---

Server stack trace:
at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri, IPipeTransportFactorySettings transportFactorySettings)
at System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress address, Uri via)
at System.ServiceModel.Channels.CommunicationPool
2.TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, TKey& key)
 at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
 at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
 at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
 at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
 at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
 at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
 at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
 at Microsoft.VisualStudio.TestPlatform.Core.ITestRunnerService.InitializeConnection(IEnumerable`1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.TestRunnerServiceProxy.InitializeConnection(IEnumerable`1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.<>c__DisplayClass23_0.<OpenClient>b__1(ITestRunnerService x)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.ResurrectableProxy`1.WithTimeout(Action`1 action)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.OpenClient()
 at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument)
 at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = vb
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 3 Build 112.0.20180317.133322-eap03”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 3 Build 2018.1.20180317.134708-eap03”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 3 Build 2018.1.20180317.134715-eap03”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 3 Build 2018.1.20180317.134526-eap03”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.1 EAP 3 Build 2018.1.20180317.134527-eap03”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.1 EAP 3 Build 2018.1.20180317.134525-eap03”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.1 EAP 3 Build 2018.1.20180317.134710-eap03”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12-eap3-take2

Platform\VisualStudio:
    git::refs/heads/wave12-eap3-take2::52fab4436e0faa19489e3510ea47c7a0f301d5b4

Data.VsVersion = 15.7.27512.0
Data.VsPreview = True
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.<.ctor>b__17_16(Object sender, TransitionExceptionEventArgs`2 args)
 at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.<.ctor>b__17_16(Object sender, TransitionExceptionEventArgs`2 args)
 at Appccelerate.StateMachine.Machine.StateMachine`2.RaiseEvent[T](EventHandler`1 eventHandler, T arguments, ITransitionContext`2 context, Boolean raiseEventOnException)
 at Appccelerate.StateMachine.Machine.StateMachine`2.OnExceptionThrown(ITransitionContext`2 context, Exception exception)
 at Appccelerate.StateMachine.Machine.Contexts.TransitionContext`2.OnExceptionThrown(Exception exception)
 at Appccelerate.StateMachine.Machine.States.State`2.HandleException(Exception exception, ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.States.State`2.HandleEntryActionException(ITransitionContext`2 context, Exception exception)
 at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryActions(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.States.State`2.Entry(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(IState`2 source, IState`2 target, ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.States.State`2.Fire(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.StateMachine`2.Fire(TEvent eventId, Object eventArgument)
 at Appccelerate.StateMachine.ActiveStateMachine`2.ProcessEventQueue(CancellationToken cancellationToken)
 at Appccelerate.StateMachine.ActiveStateMachine`2.<Start>b__32_0()
 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.ThreadPoolTaskScheduler.LongRunningThreadWork(Object obj)
 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(Object obj)

RSRP-469146: Sytem.Attribute ambiguity

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 6, 2018 5:29:30 PM
Updated Apr 9, 2018 6:56:44 PM
Subsystem Platform - Project Model
Assignee Sergey Kuks (coox)
Priority Show-stopper
State Submitted
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
  • Roslyn solution from https://github.com/dotnet/roslyn
  • run Build.cmd from command line
  • open in VS
  • E:\temp.Snapshots\roslyn-master\src\Compilers\CSharp\Test\Symbol\Symbols\Source\ExternAliasTests.cs: WorkItem is not an attribute

RSRP-126841: Strg+E Strag+V as default shortcut for silent codecleanup

$
0
0
Reporter Steve Wagner (lanwin) Steve Wagner (lanwin)
Created Oct 26, 2009 5:16:19 PM
Updated Apr 9, 2018 6:59:03 PM
Resolved Apr 9, 2018 6:59:03 PM
Subsystem No Subsystem
Assignee Ilya Ryzhenkov (orangy)
Priority Normal
State Declined
Type Cosmetics
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Since this is near to the selective CodeCleanup so its easy to keep in mind.

RSRP-126550: Highlight Usages: color-code collection mutators

$
0
0
Reporter Joe White (joewhite) Joe White (joewhite)
Created Oct 23, 2009 7:21:46 PM
Updated Apr 9, 2018 7:04:22 PM
Subsystem Code Analysis
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
"Highlight Usages in File" (in the ReSharper > Search menu) highlights "read" usages in blue, and "write" usages in pink. This is useful for value-type fields. But I do a lot of Highlight Usages on collection-type fields, and usually what I'm looking for is usages that are modifying the collection contents. The current color-coding doesn't help me with that – if the code calls the Add method, it's only reading the collection variable, so the color-coding is the same as read usages, even though in my mind, it's more akin to a write usage.

So, it would be great if this could be enhanced to have another color for collection mutator usages. For example, if I'm highlighting usages of a field (or property) called MyList:

MyList = new List<Foo>(); // MyList highlights as a "write" usage
var x = MyList.Count; // MyList highlights as a "read" usage
MyList.Add(new Foo()); // New: MyList would highlight as a "modify" usage

My specific pain point is collections, so I'm limiting this feature request to the mutator methods on List<T> and IList<T>. Obviously, there's temptation to make a general system for tagging any method as a mutator method, but that would require a lot more design and implementation work. But even a simple, limited-to-collections implementation would still address a need, and have a lot of value (and could probably make it into a much earlier release than a general system).

RSRP-468407: High memory usage

$
0
0
Reporter Jeff Chen (thinkriver@gmail.com) Jeff Chen (thinkriver@gmail.com)
Created Feb 16, 2018 3:48:24 AM
Updated Apr 9, 2018 7:06:27 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Waiting for Info
Type Performance Problem
Fix version No Fix versions
Affected versions 2017.3.2
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM, VS 2015 RTM
ReSharper will eat 1.2GB memory from Visual Studio IDE. As we know that VS2017 is 32bit exe which means only have up to 4GB memory. ReSharper use 1.2GB of it. This make VS IDE very unresponsive. Please find attached screenshot after I build my solution that contains 173 project.

Normally, when I start VS2017, ReSharper will use around 600MB memory, then this memory usage rise up to around 1.2GB. Especially, when I build solution, ReShaper will do a 'Processing assemblies...' thing every time after build complete. This process make VS2017 IDE very slow and unresponsive.

1. Will you move ReSharper out of VS2017 IDE process. Make ReSharper run in its own process ?
2. Or will you be able to move 'Processing assemblies' out of VS2017 IDE process ?
3. Will you be able to reduce ReSharper memory usage ?

My memory snapshot is more than 400MB which exceed upload limitation of YouTrack.

Thanks.

RSRP-469052: Search highlighting in Inspection Severity brocken

$
0
0
Reporter Daniel Degtyarev (daniel.degtyarev) Daniel Degtyarev (daniel.degtyarev)
Created Apr 3, 2018 1:36:16 PM
Updated Apr 9, 2018 7:10:56 PM
Resolved Apr 6, 2018 6:01:43 PM
Subsystem UI
Assignee Daniel Degtyarev (daniel.degtyarev)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

RSRP-469171: ValueTuple and await : Unexpected error message "Cannot resolve symbol 'await'"

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Apr 9, 2018 7:12:07 PM
Updated Apr 9, 2018 7:12:17 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Critical
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3.5, 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
A wrong error message is displayed when using an await keyword with a task variable inside a value tuple. Please find below a code to repro the issue.


public class Program 
{
public static async Task Main(string[] args)
{
// This is working fine
var (result1, result2) = (await ComputeResult(), await ComputeResult());

// This display an error: "Cannot resolve symbol 'await'" while it should not
Task<bool> computeResultTask1 = ComputeResult();
var (result3, result4) = (await computeResultTask1, await ComputeResult());
}

private static Task<bool> ComputeResult()
{
return Task.FromResult(true);
}
}

RSRP-466697: MvcUtil.IsPossibleViewsFolder is very slow in completion

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Oct 18, 2017 6:02:44 PM
Updated Apr 9, 2018 7:21:43 PM
Subsystem Live Templates
Assignee Slava Tutushkin (slava.tutushkin)
Priority Show-stopper
State Reopened
Type Performance Problem
Fix version 2017.3
Affected versions 2017.2.2
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM
100,00% Work • 30 403 ms • JetBrains.ReSharper.Features.Intellisense.CodeCompletion.Sessions.AutomaticCodeCompletionSession+AsyncCompletionExecutor.Work
100,00% GetCompletionResult • 30 403 ms • JetBrains.ReSharper.Feature.Services.CodeCompletion.IntellisenseManager.GetCompletionResult(CodeCompletionParameters, ITextControl)
98,53% GetCompletionResult • 29 956 ms • JetBrains.ReSharper.Feature.Services.CodeCompletion.IntellisenseManager.GetCompletionResult(CodeCompletionParameters, ITextControl, IReadOnlyList, IReadOnlyList)
90,09% CatchIgnoreException • 27 390 ms • JetBrains.Util.Logging.Logger.CatchIgnoreException(Func, TValue)
89,75% <GetCompletionResult>b__28 • 27 287 ms • JetBrains.ReSharper.Feature.Services.CodeCompletion.IntellisenseManager+<>c__DisplayClass5a.<GetCompletionResult>b__28
89,75% AddLookupItems • 27 287 ms • JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure.ItemsProviderOfSpecificContext1.AddLookupItems(ISpecificCodeCompletionContext, IItemsCollector, Object)
89,68% AddLookupItems • 27 267 ms • JetBrains.ReSharper.Feature.Services.CodeCompletion.IncludeTemplatesRule.AddLookupItems(ISpecificCodeCompletionContext, IItemsCollector)
89,68% GetLookupItems • 27 267 ms • JetBrains.ReSharper.Feature.Services.LiveTemplates.Util.TemplateActionsUtil.GetLookupItems(ITextControl, ISolution, Boolean, Boolean, TemplateApplicability, ISpecificCodeCompletionContext)
89,58% MoveNext • 27 236 ms • JetBrains.ReSharper.Feature.Services.LiveTemplates.LiveTemplates.LiveTemplatesManager+<GetTemplatesInternal>d__e.MoveNext
88,18% List
1..ctor • 26 810 ms • System.Collections.Generic.List`1..ctor(IEnumerable)
87,51% MoveNext • 26 606 ms • JetBrains.ReSharper.Feature.Services.Razor.CSharp.LiveTemplates.RazorCSharpProjectScopeProvider+<ProvideScopePoints>d__d.MoveNext
87,51% IsPossibleViewsFolder • 26 606 ms • JetBrains.ReSharper.Feature.Services.Asp.CustomReferences.MvcUtil.IsPossibleViewsFolder(MvcCache, IPsiModule, IProjectFolder)
87,51% Any • 26 606 ms • System.Linq.Enumerable.Any(IEnumerable)
87,51% MoveNext • 26 606 ms • JetBrains.ReSharper.Feature.Services.Asp.CustomReferences.MvcUtil+<GetMvcViewNames>d__54.MoveNext
87,51% MoveNext • 26 606 ms • JetBrains.ReSharper.Feature.Services.Asp.CustomReferences.MvcCacheEx+<GetLocations>d__0.MoveNext
87,51% MoveNext • 26 606 ms • JetBrains.ReSharper.Feature.Services.Asp.Caches.MvcCache+<GetLocationsInternal>d__20.MoveNext
►87,39% MoveNext • 26 569 ms • JetBrains.ReSharper.Feature.Services.Asp.Caches.MvcCache+<GetData>d__17.MoveNext
►0,12% MoveNext • 37 ms • JetBrains.ReSharper.Feature.Services.Asp.Caches.MvcCache+<GetSuspiciousFiles>d__43.MoveNext
►0,28% <EnumerateRealScopePoints>b__0 • 84 ms • JetBrains.ReSharper.Feature.Services.LiveTemplates.Scope.TemplateScopeManager+<>c__DisplayClass2.<EnumerateRealScopePoints>b__0(IScopeProvider)
►0,15% MoveNext • 46 ms • JetBrains.ReSharper.LiveTemplates.CSharp.Scope.CSharpScopeProvider+<ProvideScopePoints>d__f.MoveNext
►1,18% GetCachedTemplates • 359 ms • JetBrains.ReSharper.Feature.Services.LiveTemplates.LiveTemplates.LiveTemplatesManager.GetCachedTemplates(TemplateApplicability, Func)
0,16% EnumerateMatchedRealScopePoints • 48 ms • JetBrains.ReSharper.Feature.Services.LiveTemplates.Scope.TemplateScopeManager.EnumerateMatchedRealScopePoints(IEnumerable, IEnumerable, Boolean)
►0,06% GetSourceTokenAtOffset • 18 ms • JetBrains.ReSharper.Feature.Services.Util.TextControlToPsi.GetSourceTokenAtOffset(ISolution, DocumentOffset)
►0,10% GetComponent • 31 ms • JetBrains.Application.Components.ComponentContainerEx.GetComponent(IComponentContainer)
►0,34% <GetCompletionResult>b__20 • 104 ms • JetBrains.ReSharper.Feature.Services.CodeCompletion.IntellisenseManager+<>c__DisplayClass51.<GetCompletionResult>b__20
►6,39% Using • 1 944 ms • JetBrains.DataFlow.Lifetimes.Using(Action)
►1,56% CatchIgnoreException • 475 ms • JetBrains.Util.Logging.Logger.CatchIgnoreException(Action)
►0,11% ToList • 34 ms • System.Linq.Enumerable.ToList(IEnumerable)
0,08% CheckAndThrow • 24 ms • JetBrains.Application.InterruptableActivityCookie.CheckAndThrow(IProgressIndicator)
0,07% [Garbage collection] • 21 ms
►1,47% SpecificCodeCompletionContexts • 447 ms • JetBrains.ReSharper.Feature.Services.CodeCompletion.IntellisenseManager.SpecificCodeCompletionContexts(CodeCompletionParameters, ITextControl)

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 9, 2018 7:26:00 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-80754: OutOfMemoryException

$
0
0
Reporter Ilya Ryzhenkov (orangy) Ilya Ryzhenkov (orangy)
Created Sep 16, 2008 10:30:37 AM
Updated Apr 9, 2018 7:29:54 PM
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-469105: "Fix floating point comparison" not working with != operator

$
0
0
Reporter Tobias Brohl (tobrohl) Tobias Brohl (tobrohl)
Created Apr 4, 2018 11:00:44 PM
Updated Apr 9, 2018 7:36:53 PM
Resolved Apr 9, 2018 1:29:35 PM
Subsystem Quick Fixes
Assignee Andrew Karpov (andrew.karpov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 RTM
VsVersion All Versions

When you type
float f = (float) new Random().NextDouble();
if (f!=float.NaN) {
Console.WriteLine("Valid random");
}
, Rider will suggest to "Fix floating point comparison" when you try to run that refactoring it will throw the following: "Unable to cast object of type 'JetBrains.ReSharper.Psi.CSharp.Impl.Tree.UnaryOperatorExpression' to type 'JetBrains.ReSharper.Psi.CSharp.Tree.IInvocationExpression'." And tells you "Unable to perform this action, most likely because of errors in the code". Log Attached (Private).

RSRP-469163: Slow caches build process on Roslyn solution

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 9, 2018 1:14:26 PM
Updated Apr 9, 2018 7:39:03 PM
Subsystem Psi - Caches
Assignee Dmitry Ivanov (daivanov)
Priority Show-stopper
State Open
Type Performance Problem
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
  99,86%   BuildPrimary  •  41 446 ms  •  JetBrains.ReSharper.Psi.Files.PsiFilesCommit.BuildPrimary(PreparedSourceFile)
    99,86%   CachedPsiFile..ctor  •  41 446 ms  •  JetBrains.ReSharper.Psi.Files.CachedPsiFile..ctor(IPsiSourceFile, PsiLanguageType, ReferenceProviderFactory, ILexerFactory, IShellLocks)
      50,05%   Create  •  20 775 ms  •  JetBrains.ReSharper.Psi.Files.ReferenceProviderFactory.Create(IPsiSourceFile, IFile)
        49,98%   CreateFactory  •  20 745 ms  •  JetBrains.ReSharper.Psi.Resolve.StatelessReferenceProviderFactoryBase.CreateFactory(IPsiSourceFile, IFile, IWordIndex)
          34,29%   CheckWords  •  14 234 ms  •  JetBrains.ReSharper.Psi.JavaScript.Html.CustomReferences.HtmlEventJavaScriptReferenceFactory.CheckWords(IWordIndex, IPsiSourceFile)
            34,29%   CanContainAllSubwords  •  14 234 ms  •  JetBrains.ReSharper.Feature.Services.Text.SourcesTrigramIndex.CanContainAllSubwords(IPsiSourceFile, String)
              33,99%   ProcessDirty  •  14 108 ms  •  JetBrains.ReSharper.Psi.Caches.SimpleICache`1.ProcessDirty
                32,63%   Build  •  13 543 ms  •  JetBrains.ReSharper.Feature.Services.Text.TrigramIndex.Build(IPsiSourceFile, Boolean)
                  ►18,03%   MoveNext  •  7 482 ms  •  JetBrains.ReSharper.Feature.Services.Text.Trigrams.BufferTrigramTokenStream.MoveNext
                  ►6,25%   get_Document  •  2 595 ms  •  JetBrains.ReSharper.Psi.Impl.PsiProjectFile.get_Document
                  ►5,17%   Add  •  2 144 ms  •  JetBrains.ReSharper.Feature.Services.Text.TrigramIndexEntryBuilder.Add(TrigramToken)
                  ►1,44%   Build  •  597 ms  •  JetBrains.ReSharper.Feature.Services.Text.TrigramIndexEntryBuilder.Build
                   0,36%   [Garbage collection]  •  148 ms
                  ►0,35%   TryGetCachedPsiFilesOrEmpty  •  144 ms  •  JetBrains.ReSharper.Psi.Files.PsiFilesCache2.TryGetCachedPsiFilesOrEmpty(IPsiSourceFile)
                   0,17%   get_Current  •  71 ms  •  JetBrains.ReSharper.Feature.Services.Text.Trigrams.BufferTrigramTokenStream.get_Current
                   0,03%   ToIntArray  •  14 ms  •  JetBrains.Util.PersistentMap.UnsafeIntArray.ToIntArray
                ►1,30%   Merge  •  539 ms  •  JetBrains.ReSharper.Psi.Caches.SimpleICache`1.Merge(IPsiSourceFile, Object)
                ►0,06%   Dispose  •  26 ms  •  JetBrains.ReSharper.Psi.CompilationContextCookie.Dispose
               0,16%   ToTokensArray  •  65 ms  •  JetBrains.ReSharper.Feature.Services.Text.Trigrams.StringToTrigrams.ToTokensArray(String)
              ►0,15%   GetEnumerator  •  61 ms  •  JetBrains.Application.PersistentMap.OptimizedPersistentSortedMap`2.GetEnumerator(Boolean, TKey)
          ►15,40%   CheckWords  •  6 391 ms  •  JetBrains.ReSharper.Psi.Css.CSharp.CustomReferences.CssClassReferenceInsideAnonymousMemberReferenceProvider.CheckWords(IWordIndex, IPsiSourceFile)
          ►0,29%   CheckWords  •  121 ms  •  JetBrains.ReSharper.Psi.Asp.CSharp.References.HtmlTagIdReferenceInsideAnonymousMemberReferenceProvider.CheckWords(IWordIndex, IPsiSourceFile)
        ►0,07%   CreateFactory  •  30 ms  •  JetBrains.ReSharper.I18n.Services.CSharp.CustomReferences.DisplayNameAttributePropertyNameReferenceFactory+Factory.CreateFactory(IPsiSourceFile, IFile, IWordIndex)
      ►38,10%   GetFullPsiFile  •  15 814 ms  •  JetBrains.ReSharper.Psi.Caches.StubTreeNodeCache.StubTreeNodeCache.GetFullPsiFile(IPsiSourceFile, PsiLanguageType)
      ►10,54%   ParseFile  •  4 375 ms  •  JetBrains.ReSharper.Psi.LanguageService.ParseFile(ILexer, IPsiSourceFile)
      ►1,01%   CreateCachingLexer  •  418 ms  •  JetBrains.ReSharper.Psi.Parsing.LexerFactoryEx.CreateCachingLexer(ILexerFactory, IBuffer)
       0,16%   [Garbage collection]  •  65 ms

RSRP-398760: JavaScript InconsistentNaming warning on Prototype pattern

$
0
0
Reporter Erik Berg (Erik_Berg) Erik Berg (Erik_Berg)
Created Dec 6, 2013 8:33:21 AM
Updated Apr 9, 2018 8:13:32 PM
Resolved Apr 9, 2018 8:13:32 PM
Subsystem JavaScript
Assignee Nikita Popov (poksh)
Priority Normal
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
Resharper flags the ctor as being an InconsistentNaming on the Prototype pattern


var Foo = (function() {
'use strict';
// ctor
// ReSharper disable InconsistentNaming
function Foo(param) { // <— Resharper InconsistentNaming
// ReSharper restore InconsistentNaming
}

Foo.prototype.something1 = function() {};
Foo.prototype.something2 = function() {};

return Foo;
})();

RSRP-465302: Type and Array overload is not handled properly

$
0
0
Reporter NN __ (NN) NN __ (NN)
Created Jul 2, 2017 1:10:42 PM
Updated Apr 9, 2018 8:13:57 PM
Resolved Apr 9, 2018 8:13:57 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Critical
State Fixed
Type Bug
Fix version 2018.1
Affected versions 2017.3, 2017.2
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
Valid TypeScript: Sample

export function clone<T extends object>(obj: T[]): T[];
export function clone<T extends object>(obj: T): T; // Overload signature is not compatible with function definition
export function clone<T extends object>(obj: (T | T[])): (T | T[]) {
    return obj;
}

RSRP-466133: Incorrect handling of weak types

$
0
0
Reporter Andrew Mayorov (xorets.1) Andrew Mayorov (xorets.1)
Created Sep 4, 2017 4:04:07 PM
Updated Apr 9, 2018 8:14:09 PM
Resolved Apr 9, 2018 8:14:09 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Critical
State Fixed
Type Bug
Fix version 2018.1
Affected versions 2017.2
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
If I have a weak type (only optional fields) that also has a "wildcard" indexer (no matter if it is inherited or declared on the type itself), then I can't cast an object to the weak type, unless the object has any of optional fields declared in the weak type. It conflicts with the behavior of TS compiler, which allows such casts if we have "wildcard" indexer declared.

interface ITestA {
[name: string]: any; // This "wildcard" indexer is necessary for the cast to be legal
}

var a: ITestA = { a: "a", b: 3 }; // OK

interface ITestB extends ITestA {
optionalField?: string;
}

var b: ITestB = { a: "a", b: 3 }; // Error: has no properties in common
var b2: ITestB = { a: "a", b: 3, optionalField: null }; // OK

This behavior appeared recently in version 2017.2. I guess after adding the support for TS 2.4. This is quite major, because now a lot of valid code gets rendered as invalid.

RSRP-467119: Exception while typing in validated JSON

$
0
0
Reporter Matt Ellis (citizenmatt) Matt Ellis (citizenmatt)
Created Nov 20, 2017 7:54:18 PM
Updated Apr 9, 2018 8:14:22 PM
Resolved Apr 9, 2018 8:14:22 PM
Subsystem JavaScript
Assignee Nikita Popov (poksh)
Priority Critical
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
An "Index was outside of bounds of array" exception is thrown when typing anywhere in a JSON file with the following contents:

{
"name": "Thing",
"references": ["Thing", "Thing"],
"includePlatforms": [ "Android", "Android" ],
"excludePlatforms": ["iOS"]
}

and the following schema:

{
"schema": "http://json-schema.org/draft-06/schema#",
"title": "Unity Assembly Definition",
"description": "Defines an assembly in the Unity compilation pipeline",
"type": "object",
"properties": {
"name": {
"description": "The name of the assembly being defined",
"type": "string",
"minLength": 1
},
"references": {
"description": "A list of names of assemblies to reference",
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"uniqueItems": true
},
"includePlatforms": {
"description": "Platforms to target",
"$ref": "#/definitions/platformValues",
"uniqueItems": true
},
"excludePlatforms": {
"description": "Platforms that are explicitly not targeted",
"$ref": "#/definitions/platformValues",
"uniqueItems": true
}
},
"definitions": {
"platformValues": {
"type": "array",
"uniqueItems": true,
"items": {
"enum": [
"StandaloneOSX",
"StandaloneWindows",
"iOS",
"Android",
"StandaloneLinux",
"StandaloneWindows64",
"WebGL",
"WSAPlayer",
"StandaloneLinux64",
"StandaloneLinuxUniversal",
"Tizen",
"PSP2",
"PS4",
"XboxOne",
"N3DS",
"WiiU",
"tvOS",
"Switch"
]
}
}
},
"required": ["name"],
"anyOf": [
{
"properties": {
"includePlatforms": {
"minItems": 1
},
"excludePlatforms": {
"maxItems": 0
}
}
},
{
"properties": {
"includePlatforms": {
"maxItems": 0
},
"excludePlatforms": {
"minItems": 1
}
}
},
{
"properties": {
"includePlatforms": {
"maxItems": 0
},
"excludePlatforms": {
"maxItems": 0
}
}
}
]
}

Stacktrace:

Index was outside the bounds of the array.

--- EXCEPTION #1/2 [IndexOutOfRangeException]
Message = “Index was outside the bounds of the array.”
ExceptionPath = Root.InnerException
ClassName = System.IndexOutOfRangeException
HResult = COR_E_INDEXOUTOFRANGE=80131508
Source = JetBrains.ReSharper.Psi.Web
StackTraceString = “
at JetBrains.ReSharper.Psi.JavaScript.Impl.Services.Json.Schema.ArrayConstraint.Assert(IJavaScriptTreeNode node, ValidationOptions options)
at JetBrains.ReSharper.Psi.JavaScript.Impl.Services.Json.Schema.ObjectConstraint.Assert(IJavaScriptTreeNode node, ValidationOptions options)
at JetBrains.ReSharper.Psi.JavaScript.Impl.Services.Json.Schema.AnyOfConstraint.Assert(IJavaScriptTreeNode node, ValidationOptions options)
at JetBrains.ReSharper.Psi.JavaScript.Impl.Services.Json.Schema.AllOfConstraint.Assert(IJavaScriptTreeNode node, ValidationOptions options)
at JetBrains.ReSharper.Psi.JavaScript.Impl.Services.Json.Schema.JsonSchema.Validate(IJavaScriptExpression node, ValidationOptions options)
at JetBrains.ReSharper.Daemon.JavaScript.Stages.JSon.JsonInspectionsProcess.ValidateSchema(IJavaScriptFile file, IHighlightingConsumer consumer)
at JetBrains.ReSharper.Daemon.JavaScript.JavaScriptDaemonStageProcessBase.HighlightInFile(Action`2 fileHighlighter, Action`1 commiter)
at JetBrains.ReSharper.Daemon.JavaScript.Stages.JSon.JsonInspectionsProcess.Execute(Action`1 committer)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass10.<>c__DisplayClass13.<DoHighlighting>b__b(IDaemonStage stage)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Index was outside the bounds of the array.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = DaemonThread
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2017.3 EAP 3 Build 111.0.20171027.81346-eap03”
Data.SubProducts.#0 = “JetBrains dotCover 2017.3 EAP 3 Build 2017.3.20171027.123459-eap03”
Data.SubProducts.#1 = “JetBrains dotTrace 2017.3 EAP 3 Build 2017.3.20171027.123513-eap03”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2017.3 EAP 3 Build 2017.3.20171027.120858-eap03”
Data.SubProducts.#3 = “JetBrains ReSharper 2017.3 EAP 3 Build 2017.3.20171027.120858-eap03”
Data.SubProducts.#4 = “JetBrains dotMemory 2017.3 EAP 3 Build 2017.3.20171027.123539-eap03”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave11-eap3::55848a9a87b0f68073fa59a27771b10802fb077e

Data.VsVersion = 15.4.27004.2009
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass10.<>c__DisplayClass13.<DoHighlighting>b__b(IDaemonStage stage)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass10.<>c__DisplayClass1d.<DoHighlighting>b__e()
at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass14.<>c__DisplayClass16.<EnqueueDependentJobs>b__12()
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.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued)
at System.Threading.Tasks.TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued)
at System.Threading.Tasks.Task.WrappedTryRunInline()
at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at JetBrains.Application.Threading.Tasks.TaskBarrier.DisposeUnmanagedResources()
at JetBrains.Util.SafeDisposable.DisposeInternal()
at JetBrains.Util.SafeDisposable.Dispose()
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass10.<DoHighlighting>b__9()
at JetBrains.Application.Notifications.PerformanceUserNotifications.<>c__DisplayClass7.<WithPerformanceNotification>b__6(Lifetime lifetime)
at JetBrains.DataFlow.Lifetimes.Using(Lifetime parent, Action`1 λ)
at JetBrains.Application.Notifications.PerformanceUserNotifications.WithPerformanceNotification(TimeSpan performanceThreshold, String title, String body, Action action)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.DoHighlighting(DaemonProcessKind processKind, Action`1 commiter)
at JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.DoHighlighting(Boolean globalAnalysisStages)
at JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.<>c__DisplayClassb.<EnqueueHighlightingJob>b__a()
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.SingleThreadExecutorView.InternalExecute(Task task)
at JetBrains.Application.Threading.Tasks.SingleThreadExecutorView.ThreadProc()
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()

See also DEXP-307235

RSRP-469166: Cannot resolve symbol in `asp-for` tag helper

$
0
0
Reporter Brett Stime (steamer25) Brett Stime (steamer25)
Created Apr 6, 2018 7:16:27 PM
Updated Apr 9, 2018 8:14:42 PM
Subsystem ASP.NET - Razor
Assignee Slava Trenogin (derigel)
Priority Show-stopper
State Fixed In Branch
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Given code like the following:

<label asp-for="@Model.Name"></label>

Rider is marking the @Model property and saying "Cannot resolve symbol 'Model'". The example code is taken from https://docs.microsoft.com/en-us/aspnet/core/mvc/views/working-with-forms so it should be valid markup. It also seems to be a regression because Rider 2017.3 didn't have problems with it (although it's hard to tell for sure because 2017.3 would mark lots of Razor/.cshtml files with errors until you editted them and it reparsed).

I'm having other problems related to Roslyn in the 2018.1 EAP as well so I'm not sure if this issue is predicated on the other one or if it's independent.

I generally use @Html.EditorFor() syntax but some colleagues use the asp-for attribute and I'd prefer not to have to change their working code to appease Rider. A warning would be fine. Auto-fix to/from the static types would be pretty cool but low priority.

Thanks.

Version: 181.4379.538
Timezone: America/Chicago
Evaluation: true
Environment: RD-181.4379.538, JRE 1.8.0_152-release-1136-b23x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.3 unknown, screens 1440x900, 1920x1200

RSRP-469172: Replace comparison (< with >=) does not work on floats, only ints

$
0
0
Reporter Sampsa Lehtonen (snlehton) Sampsa Lehtonen (snlehton)
Created Apr 3, 2018 11:21:17 AM
Updated Apr 9, 2018 8:27:55 PM
Resolved Apr 9, 2018 8:27:55 PM
Subsystem Context Actions
Assignee Andrew Karpov (andrew.karpov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

Using "Replace '<' with '>='" refactoring at < works on this:

int a = 0; int b = 1; bool test = !(a < b);

->

int a = 0; int b = 0; bool test = a >= b;

But same refactoring on this:

float a = 0; float b = 1; bool test = !(a < b);

Does nothing. If floating point precision is the problem, I'd rather either not see the refactoring at all, or let me make a conscious decision to perform potentially unsafe refactoring.

Version: RD-173.3994.2442
Timezone: Europe/Helsinki
Evaluation: false
Environment: RD-173.3994.2442, JRE 1.8.0_152-release-1024-b10x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1080

RSRP-469173: 300+ MB taken by DotNetVsTestCaseMap

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 9, 2018 8:30:57 PM
Updated Apr 9, 2018 8:38:14 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Open
Type Performance Problem
Fix version 2018.1.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-469168: This operation requires a writer lock. Use 'using (WriteLockCookie.Create()) { ... }'.

$
0
0
Reporter Maltseva Ekaterina (Maltseva.Ekaterina) Maltseva Ekaterina (Maltseva.Ekaterina)
Created Apr 9, 2018 4:34:04 PM
Updated Apr 9, 2018 8:50:19 PM
Subsystem Platform - VS Integration
Assignee Denis Korneev (Denis.Korneev)
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 12 Hive _8ca9bb57 — JetBrains ReSharper Ultimate 2018.1 EAP 7 Build 112.0.20180409.50106-eap07

JetBrains dotCover 2018.1 EAP 7 Build 2018.1.20180409.51533-eap07
JetBrains dotMemory 2018.1 EAP 7 Build 2018.1.20180409.51338-eap07
JetBrains dotTrace 2018.1 EAP 7 Build 2018.1.20180409.51340-eap07
JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180409.51204-eap07
JetBrains ReSharper C++ 2018.1 EAP 7 Build 2018.1.20180409.51211-eap07

SubProducts.0 = JetBrains dotCover 2018.1 EAP 7 Build 2018.1.20180409.51533-eap07
SubProducts.1 = JetBrains dotTrace 2018.1 EAP 7 Build 2018.1.20180409.51340-eap07
SubProducts.2 = JetBrains ReSharper C++ 2018.1 EAP 7 Build 2018.1.20180409.51211-eap07
SubProducts.3 = JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180409.51204-eap07
SubProducts.4 = JetBrains dotMemory 2018.1 EAP 7 Build 2018.1.20180409.51338-eap07

This operation requires a writer lock. Use 'using (WriteLockCookie.Create()) { ... }'.

— EXCEPTION #1/1 [LoggerException]
Message = “This operation requires a writer lock. Use 'using (WriteLockCookie.Create()) { ... }'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 7 Build 112.0.20180409.50106-eap07”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 7 Build 2018.1.20180409.51533-eap07”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 7 Build 2018.1.20180409.51340-eap07”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 7 Build 2018.1.20180409.51211-eap07”
Data.SubProducts.#3 = “JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180409.51204-eap07”
Data.SubProducts.#4 = “JetBrains dotMemory 2018.1 EAP 7 Build 2018.1.20180409.51338-eap07”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/wave12::455a3a94c6ad5f3fd57cbd4afc4f7014fcc05f1e


Platform\VisualStudio:
    git::refs/heads/wave12::f8c1fc28b41a09a81995918e62f6092de057bead

Data.VsVersion = 15.6.27428.2027
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.Fail(String messageText)
 at JetBrains.Util.Logging.Logger.Fail(String messageText)
 at JetBrains.Application.Threading.IShellLocksEx.AssertWriteAccessAllowed(IShellLocks thіs)
 at JetBrains.DocumentManagers.impl.DocumentOperationsImpl.SynchronizeDocumentContentsWithFile_Standalone(IDocument document, FileSystemPath documentPath)
 at JetBrains.VsIntegration.IDE.Documents.VsDocumentWhidbey.SynchronizeDocument(Boolean reconcile)
 at JetBrains.VsIntegration.IDE.Documents.Whidbey.VsDocumentManagerWhidbey.SynchronizeBufferIfDirty(VsTextBufferData textBufferData)
 at JetBrains.VsIntegration.IDE.Documents.Whidbey.VsDocumentManagerWhidbey.<>c__DisplayClass13_0.<.ctor>b__0()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.VsIntegration.IDE.Documents.Whidbey.VsDocumentManagerWhidbey..ctor(Lifetime lifetime, IShellLocks locks, ProjectModelSynchronizer projectModelSynchronizer, SpecialFilesManager specialFilesManager, DocumentManager documentManager, VsDocumentManagerSynchronization vsDocumentManagerSynchronization, MapVsCookieToProjectFile mapVsCookieToProjectFile, DocumentToProjectFileMappingStorage documentToProjectFileMappingStorage, VsRunningDocumentTableEvents vsRunningDocumentTableEvents, VsTextManagerEvents vsTextManagerEvents, IRunningDocumentTable rdt, IVsFileChangeEx vsFileChangeEx, VsCommandProcessor vsCommandProcessor, IFileSystemTracker fileSystemTracker, ChangeManager changeManager, ISolution solution)
 at JetBrains.Platform.VisualStudio.SinceVs12.IDE.VsDocumentManagerWhidbey12..ctor(Lifetime lifetime, IShellLocks locks, ProjectModelSynchronizer projectModelSynchronizer, SpecialFilesManager specialFilesManager, DocumentManager documentManager, VsDocumentManagerSynchronization vsDocumentManagerSynchronization, MapVsCookieToProjectFile mapVsCookieToProjectFile, DocumentToProjectFileMappingStorage documentToProjectFileMappingStorage, VsRunningDocumentTableEvents vsRunningDocumentTableEvents, VsTextManagerEvents vsTextManagerEvents, VsRunningDocumentTable rdt, IVsFileChangeEx vsFileChangeEx, VsCommandProcessor vsCommandProcessor, IFileSystemTracker fileSystemTracker, ChangeManager changeManager, ISolution solution, DocumentTransactionManager documentTransactionManager, IViewable`1 trackVsTextViewDataForTextControlChanges, RespawnTextControlOnDocumentTextBufferChanged respawnTextControlOnDocumentTextBufferChanged)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstanceOf(Type type, IValueResolveContext context)
 at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
 at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
 at JetBrains.Application.Components.SingletonDescriptor.GetValue()
 at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, ICollection`1 dscs)
 at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
 at JetBrains.Application.Components.ComponentStorage.Compose()
 at JetBrains.ProjectModel.SolutionInstance.OpenSolution(ISolutionOwner solutionOwner)
 at JetBrains.ProjectModel.SolutionManagerBase.<>c__DisplayClass19_0.<CreateSolutionInstance>b__2()
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.<>c__DisplayClass24_0.<ExecuteOneTask>b__1()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteOneTask(SolutionLoadTask task)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerAsync.ExecuteTask()
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerAsync.DispatchTasks(Boolean background)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ResumeWaitTask(SolutionLoadWaitHandle waitHandle, Boolean background)
 at JetBrains.VsIntegration.ProjectDocuments.Projects.Builder.ProjectModelSynchronizer.<>c__DisplayClass35_4.<ScheduleUpdateProjectReferences>b__2()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.VsIntegration.ProjectDocuments.Projects.Builder.ProjectModelSynchronizer.<>c__DisplayClass35_4.<ScheduleUpdateProjectReferences>b__1()
 at JetBrains.Util.Concurrency.GroupingEventHostEx.<>c__DisplayClass0_1.<QueueAtShort>b__1()
 at JetBrains.Threading.GroupingEvent.Execute()
 at JetBrains.Threading.GroupingEventHost.ExecuteExpiredEvents()
 at JetBrains.Threading.GroupingEventHost.<OnClockTimerTick>b__22_0()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action, TaskPriority priority)
 at JetBrains.Threading.GroupingEventHost.OnClockTimerTick()
 at JetBrains.Threading.GroupingEventHost.ClockTimer.OnTimerTick(Object sender, EventArgs e)
 at System.Windows.Forms.Timer.OnTick(EventArgs e)
 at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Viewing all 106942 articles
Browse latest View live


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