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

RSRP-469225: "?" leads to incorrect pages in some dialogs.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 11, 2018 5:43:42 PM
Updated Apr 13, 2018 5:35:39 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Submitted
Type Bug
Fix version 2018.2
Affected versions 2018.2, 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

JetBrains ReSharper Ultimate 182.0.20180410.111135-eap00d.

Extract Members To Partial: https://www.jetbrains.com/help/resharper/2018.1/Refactorings__Index.html
Make Method Non-Static: https://www.jetbrains.com/error404.jsp


RSRP-249657: The ReSharper QuickFix breaks the build

$
0
0
Reporter Artem Votincev (Artem.Votincev) Artem Votincev (Artem.Votincev)
Created Apr 7, 2011 1:06:01 PM
Updated Apr 13, 2018 5:39:44 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.1, 5.1.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Please see attached Program.cs file

In this file please check the following lines:
//// Resharper suggest to remove 2nd parameter
productService.Setup(a => a.FailMethod(true, false));
//// Compilation faild on this method
productService.Setup(a => a.FailMethod(true));

FailMethod is a method with not required parameter with default value = false.

Error in compilation log:
An expression tree may not contain a call or invocation that uses optional arguments

RSRP-270316: QF Create field is missing inside lambda

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Jun 2, 2011 6:01:03 PM
Updated Apr 13, 2018 5:44:08 PM
Resolved Apr 13, 2018 5:44:08 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Unspecified
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
over mySetProjectFileProperties
    protected sealed class TestSolutionConfiguration
{
private readonly TestProjectConfiguration[] myProjectsConfigurations;
private readonly string mySolutionFileName;

public TestSolutionConfiguration(string solutionFileName, params TestProjectConfiguration[] projectConfigurations)
{
mySolutionFileName = solutionFileName;
myProjectsConfigurations = projectConfigurations;
}

public ISolution CreateSolution(ISolutionManager solutionManager)
{
var solutionFilePath = new FileSystemPath(mySolutionFileName); // Don't pass in illegal paths
var testSolution = (SolutionImpl)solutionManager.OpenNewSolution(solutionFilePath);
try
{
using (new ProjectModelBatchChangeCookie(solutionManager, testSolution, SimpleTaskExecutor.Instance))
{
var nameToProject = myProjectsConfigurations
.Select(projectConfig => projectConfig.CreateProject(solutionManager, testSolution, mySetProjectFileProperties))
.ToDictionary(project => project.Name);
foreach (var projectConfig in myProjectsConfigurations)
{
var project = nameToProject[projectConfig.ProjectName];
foreach (var projectName in projectConfig.ProjectNamesToRefer)
{
if (!nameToProject.ContainsKey(projectName))
{
Assert.Fail("Could not find project '{0}'", projectName);
}
((ProjectImpl)project).DoAddReference(new SimpleProjectToProjectReference(project, nameToProject[projectName]));
}
}
}
}
catch
{
solutionManager.CloseSolution(testSolution);
throw;
}

return testSolution;
}

public string SolutionFilePath
{
get { return mySolutionFileName; }
}

public TestProjectConfiguration[] ProjectsConfigurations
{
get { return myProjectsConfigurations; }
}

public bool MatchesSolution(ISolution solution)
{
if (solution.SolutionFilePath != new FileSystemPath(mySolutionFileName))
return false;

if (solution.GetAllProjects().Count != myProjectsConfigurations.Length + 2 /* Misc & SolutionProject */)
return false;

foreach (var projectConfiguration in myProjectsConfigurations)
{
var project = solution.GetProject(projectConfiguration.ProjectName);
if (project == null)
return false;

if (!projectConfiguration.MatchesProject(project))
return false;
}
return true;
}

public void RefillSolution(ISolutionManager solutionManager, ISolution solution)
{
foreach (var projectConfiguration in myProjectsConfigurations)
{
var project = solution.GetProject(projectConfiguration.ProjectName);
Assert.IsNotNull(project, "project == null");

projectConfiguration.RefillProject(solutionManager, solution, project);
}
}
}

RSRP-272715: "Create Set Accessor" quick fix is inferior to "Add Another Accessor" quick fix and should be replaced

$
0
0
Reporter William Dean (willdean) William Dean (willdean)
Created Jun 17, 2011 10:56:09 PM
Updated Apr 13, 2018 5:48:10 PM
Resolved Apr 13, 2018 5:48:10 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Usability Problem
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

There are two quickfixes that can add a set accessor to a read-only property.

One you get to with 'alt-enter' on the property definition within the class. That's a good quick fix, which intelligently completes the 'set' clause, including some very clever stuff if you have to get to a secondary object (_field.Value). This is 'Add another accessor'

The other qf is when you assign something to a read-only property and then do 'alt-enter' on the red-squiggled property name. This is 'Create set accessor'. It's lame, and just creates a 'throw new NotImplementedException()' placeholder.

Given that R# has two ways of generating a set accessor, a clever one and a stupid one, it should always use the clever one.

RSRP-273215: Wrong "Type argument specification is redundant" with named parameters

$
0
0
Reporter Svyatoslav Danyliv (sdanyliv) Svyatoslav Danyliv (sdanyliv)
Created Jun 24, 2011 7:16:04 PM
Updated Apr 13, 2018 5:54:55 PM
Resolved Apr 13, 2018 5:54:55 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version Backlog
Affected versions 6.0 EAP
Fixed In Version ReSharper Undefined
VsVersion All Versions
There is sample code that reproduces problem

using System;

namespace ConsoleApplication1
{
internal class Program
{
private static void Main(string[] args)
{
var data = new GridData<SomeRow>();
data.AddColumn("name", getter: v => v.Name); // Incorrect for Compiler
data.AddColumn<SomeRow, string>("name", getter: v => v.Name); // Correct
}
}

public class SomeRow
{
public string Name { get; set; }
}

public interface IGridData<TRow>
{
}

internal class GridData<TRow> : IGridData<TRow>
{
}

public static class Builder
{
public static void AddColumn<TRow, TColumnValue>(this IGridData<TRow> source, string name, string title = null,
Func<TRow, TColumnValue> getter = null) where TRow : class
{
}
}
}
ReSharper proposes to remove redundant types specification by Quick Fix and code becomes not compilable.

RSRP-273372: Auto-determine the type of missing variable by its name

$
0
0
Reporter Yuri Astrakhan (yurik) Yuri Astrakhan (yurik)
Created Jun 28, 2011 12:56:25 AM
Updated Apr 13, 2018 5:59:48 PM
Resolved Apr 13, 2018 5:59:48 PM
Subsystem Quick Fixes - Create From Usage
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Usability Problem
Fix version Backlog
Affected versions 6.0 EAP
Fixed In Version ReSharper Undefined
VsVersion All Versions

Alt+Enter should select the most appropriate type depending on the name, not the first in the list. In the code below, if I alt+enter on _blah, the current selection should be set to "create field", not "create local variable". Same applies to the property-looking names.

class Foo
{
public void Do()
{
_blah = 0;
blah = 1;
Blah = 1;
}
}

RSRP-465850: MsTest TestCategories attribute is not always recognized

$
0
0
Reporter Alexander Kurakin (Alexander.Kurakin) Alexander Kurakin (Alexander.Kurakin)
Created Aug 14, 2017 2:30:05 PM
Updated Apr 13, 2018 6:10:21 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version 2018.2
Affected versions 2017.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
I have a solution written in VB.NET, including 2 test projects with over 3000 tests. The solution was migrated over from VS10 to VS12 to VS15 for now. I wanted to start with one test project to switch from "the old" MSTest (Microsoft.VisualStudio.QualityTools.UnitTestFramework) to MSTest V2 (Microsoft.VisualStudio.TestPlatform.TestFramework) to be able to use Row Tests and the ability to place the TestCategory attribute at class or assembly level.

By changing one project to target MSTest V2 I saw the followng things:
  • the attributes I placed at class level are not discoverd by Resharper TestExplorer, though they are by VS TestExplorer (grouping in both by categories.)

  • after the rebuild all tests are discovered as uncategorized
  • openeing a file that is categorized at class level and changing the grouping to Project and Namespaces and back to Categories updates the test explorer and displays the, but only the opened file(s) as correctly categorized
  • when openeing a file where the category is placed at the method definition I do not have to change the grouping in test explorer. The tests in that file are immediately corretly displayed in test explorer, but also only when opened

(- reference to another issue that also occurs during this actions
-> after rebuild it happens frequently, that not all tests are discovered by resharper as mentioned here (RSRP-462731 Test runner not recognizing MSTest tests), but the refresh button is a workarouond for that most of the times)


I created a little sample solution with two test projects. One targeting MSTestV1, the other MSTestV2. The solution was created in VS 2015. I used the "Add new item" dialog and added the Unit test Project template from that. For the MSTestV2 Project, I removed the reference to the TestFramework V1, added the V2 and the Testadapter with Nuget and last added the proper references to the project.
The V2 project includes two TestClasses in separate files, one with the TestCategory-attribute (named "IntegrationTest") at class level, the othe has none.
If you now "rebuild all" the first time Resharper TestExplorer Shows everything correct.
Now remove the Attribute,
rebuild,
R# test explorer does not update.
Change "Group by:" to anything else and back,
everything is fine.

RSRP-467879: Resharper doesn't skip tests any more.

$
0
0
Reporter Matthias Zeleny (matthiaszelenyandrena) Matthias Zeleny (matthiaszelenyandrena)
Created Jan 10, 2018 2:29:30 PM
Updated Apr 13, 2018 6:10:21 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Reopened
Type Bug
Fix version 2018.2
Affected versions 2017.3.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

Since 17.3.1, we have a problem of Reshaper ingoring the "Skip tests from categories:" entries.
It just runs all of them anyway.
2017.2.2 does not have this problem.

For example [TestMethod, Nightly] does get tested, even if written into the options to be skipped.
On the other side, [TestMethod, TestCategory("Nightly")] seems to work just fine.


RSRP-467900: Custom MSTest Category Attributes are ignored

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Jan 11, 2018 2:26:53 PM
Updated Apr 13, 2018 6:10:21 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Reopened
Type Bug
Fix version 2018.2
Affected versions 2017.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Our custom MS Test category attributes are completely ignored in the new version (so everything appears under <Uncategorized>). Below is our custom attribute class, and a sample usage that previously correctly appeared in the category 'IntegrationTest'.


Imports Microsoft.VisualStudio.TestTools.UnitTesting
Public Class IntegrationTestAttribute
Inherits TestCategoryBaseAttribute
Public Overrides ReadOnly Property TestCategories() As IList(Of String)
Get
Return New List(Of String)(New String() {"IntegrationTest"})
End Get
End Property
End Class

<TestClass()>
Public Class AccessPointEntryDetailsTests
Inherits TestBase
<TestInitialize()>
Sub Setup()
End Sub
<TestCleanup()>
Sub CleanUp()
End Sub

<TestMethod()>
<IntegrationTest()>
Public Sub GetById_ShouldPopulateFields()
End Sub
End Class

RSRP-273615: Space between lines

$
0
0
Reporter Roman Akopov (Roman.Akopov) Roman Akopov (Roman.Akopov)
Created Jul 4, 2011 10:32:39 PM
Updated Apr 13, 2018 6:11:39 PM
Resolved Apr 13, 2018 6:11:39 PM
Subsystem UI
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Obsolete
Type Bug
Fix version Backlog
Affected versions 6.0
Fixed In Version ReSharper Undefined
VsVersion All Versions
Hello,

New ReSharper breaks "Background color Fix" addin
http://visualstudiogallery.msdn.microsoft.com/f3dc031f-3d33-4701-81fb-ac5e54cb0a81

Disabling ReSharper fixes issue.

Wrong behavior is shown in attachment.

RSRP-273974: ReSharper 'move types to files' refactoring annihilates one type completely.

$
0
0
Reporter Dmitri Nesteruk (dnesteruk) Dmitri Nesteruk (dnesteruk)
Created Jul 14, 2011 2:49:37 PM
Updated Apr 13, 2018 6:17:41 PM
Resolved Apr 13, 2018 6:17:41 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Obsolete
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
I just had ReSharper wipe out a whole type (with no Undo)
To replicate:

1. Open up the Resharper PowerToys project (available at http://resharperpowertoys.codeplex.com)
2. Apply the refactoring to the GenerateDispose project
3. Watch the craziness

Basically, what I ended up having is two tabs with GenerateDisposeAction.cs in it. Only problem is that both tabs showed an empty file, i.e. the contents of the GenerateDisposeAction type have evaporated.

In addition, this action appears to have distabilized the system to the point where I could no longer debug, the text control wouldn't respond to mouse clicks and, eventually, I had a debug session crash in a way which required me to restart VS.

RSRP-58804: Word completion

$
0
0
Reporter Andrew Serebryansky (marcus23) Andrew Serebryansky (marcus23)
Created Feb 20, 2008 7:25:43 PM
Updated Apr 13, 2018 6:19:50 PM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
I don't really like Eclipse, but there is one feature (stolen from VI(m)) that is missing from Visual Studio all versions.
It's easy for you to implement in Resharper. This is Word Complete (comes from VI Control+N as far as i know)

Description of feature: This is not smart, not type-aware not intelligent word completion. It's raw text based stuff.
Mechanism:

1) First take all opened buffers (opened documents) and parse all the words from them (simple regex i guess)
2) Complete word at caret.
3) If i call action again go to next match and so on, cycle(wrap around) through results!! Check eclipse ALT+/ for a good implementation.

Why is it so cool ? It's lightning fast! No background compilation. No smart nothing, just text based completion. And what is very important is that the order of suggestions depend on how far the suggested word is from the word at caret.

example:
apple
apples
app<ACTION!> apples will be suggested first, then apple then apples again.

RSRP-59104: Warn on/suggest fix for apparent change to instance

$
0
0
Reporter Clinton Sheppard (clinton) Clinton Sheppard (clinton)
Created Feb 22, 2008 10:01:08 PM
Updated Apr 13, 2018 6:28:40 PM
Resolved Apr 13, 2018 6:28:40 PM
Subsystem Code Analysis
Assignee Ilya Ryzhenkov (orangy)
Priority Normal
State Fixed
Type Feature
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
// incorrect
public DateTime GetAdjustedDate(int months)
{
DateTime result = DateTime.Now;
result.AddMonths(-months); // modified value not stored to a variable, this line has no apparent value
return result;
}

// correct
public DateTime GetAdjustedDate(int months)
{
DateTime now = DateTime.Now;
result = now.AddMonths(-months);
return result;
}


Resharper could detect the case were results to instance methods that do not change the instance are not captured in a variable.

Similar methods are not hard to find:

string foo = "bar";
foo.ToUpper(); // modified value not stored to a variable, this line has no apparent value
return foo;

RSRP-469260: remove unused dependencies removes development dependencies

$
0
0
Reporter Rachel Davids (RachelD) Rachel Davids (RachelD)
Created Apr 13, 2018 5:09:52 PM
Updated Apr 13, 2018 6:39:31 PM
Subsystem Platform - Project Model
Assignee Alexander Ulitin (alexander.ulitin)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
I use several build time packages which the "Remove Unused Dependencies" dialog (and the "Optimize References" window) suggest can be removed.

Whilst I do have the option to mark them as used at runtime - they are NOT runtime dependencies.

Perhaps the analysis should exclude packages marked as developmentDependency="true" ?

RSRP-275041: Refactoring "convert method to property" changes escapes XML comments

$
0
0
Reporter michael.ketting (michael_k) michael.ketting (michael_k)
Created Aug 24, 2011 3:25:50 PM
Updated Apr 13, 2018 6:41:18 PM
Resolved Apr 13, 2018 6:41:18 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Bug
Fix version Backlog
Affected versions 5.1.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
When I use the R# refactoring "convert method to property" or "convert property to method" R# also changes the XML comment from "returns" to "value" and vice versa. If the changed XML doc fragment contains angle brackets as part of the markup, i.e. a cref, those angle brackets get XML escaped, breaking the documentation. The only workaround is to change the XML documentation manually to already include a "value" element instead of the "return" element.

RSRP-469245: Downloaded latest version Resharper and In Visual Studio 2010 getting System Version 2.0.0.0 should be rereferned warning

$
0
0
Reporter Bob Mossanen (bobmoss14@gmail.com) Bob Mossanen (bobmoss14@gmail.com)
Created Apr 12, 2018 9:49:14 PM
Updated Apr 13, 2018 7:08:52 PM
Subsystem Platform - Project Model
Assignee Slava Tutushkin (slava.tutushkin)
Priority Show-stopper
State Open
Type Bug
Fix version 2018.1.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

latest version Resharper in Visual Studio 2010 Win form getting System Version 2.0.0.0 should be referenced warning message every were
Currently have C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll, from where do i get version 2.0.0.0

RSRP-469133: Code Cleanup: "Use auto-property if possible" with "Accessors with block body" in Code Style results in uncompilable code.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 6, 2018 3:36:32 PM
Updated Apr 13, 2018 7:44:02 PM
Subsystem Code Style - Cleanup
Assignee Andrew Karpov (andrew.karpov)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 7 D 12.0.20180406.060450-eap07.

        private bool _isLoading2;

        public bool IsLoading
        {
            get => _isLoading2;
            set { _isLoading2 = value; }
        }
  1. In ReSharper -> Options -> Code Editing -> C# -> Code Style set "Accessors with block body" for Code Body -> Properties, indexers and events.
  2. In ReSharper -> Options -> Code Cleanup -> C# check "Apply code body style" and check "Use auto-property if possible".

Actual result:
Uncompilable code.

ublic bool IsLoading
        {
            get
            {
            }
            set;
        }

Expected result:
Compilable code.

        public bool IsLoading
        {
            get;
            set;
        }

RSRP-469204: Command Line Tools show warning

$
0
0
Reporter Ben Parks (benparks32) Ben Parks (benparks32)
Created Apr 11, 2018 11:16:03 AM
Updated Apr 13, 2018 8:07:44 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Slava Trenogin (derigel)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3.5
Fixed In Version ReSharper Undefined
VsVersion All Versions

When I run the latest version of the Resharper command line tools I get the following warnings:

Warning: The system cannot find the path specified.
Warning: Unable to load assembly via MetadataLoader.TryLoad by name Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc The system cannot find the path specified.

I'm using the following command:

InspectCode MySolution.sln --output=code-inspection-results.txt --format=Text --profile=my-profile.DotSettings

The version information shown is

JetBrains Inspect Code 2017.3.5
Running in 64-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.2.9200.0

Please can you help resolve this issue?
Thanks,
Ben

RSRP-469174: SourceFile is not valid.

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Apr 9, 2018 4:01:03 PM
Updated Apr 13, 2018 8:08:23 PM
Resolved Apr 13, 2018 8:08:23 PM
Subsystem ASP.NET - Razor
Assignee Slava Trenogin (derigel)
Priority Normal
State Fixed
Type Exception
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
JetBrains JetBrains Rider 2018.1 Build 181.SNAPSHOT Date 2018-04-09T12:58:23.034+0000

— EXCEPTION #1/2 [InvalidOperationException]
Message = “SourceFile is not valid.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.ReSharper.Psi
StackTraceString = “
 at JetBrains.ReSharper.Psi.PsiSourceFileExtensions.AssertIsValid(IPsiSourceFile sourceFile, String messageText)
 at JetBrains.ReSharper.Psi.PsiSourceFileExtensions.AssertIsValid(IPsiSourceFile sourceFile, String messageText)
 at JetBrains.ReSharper.Psi.Razor.CSharp.Template.RazorCSharpTemplateProjectFileLanguageService.GetPsiLanguageType(IPsiSourceFile sourceFile)
 at JetBrains.ReSharper.Psi.Razor.CSharp.Mvc.RazorCSharpMvcProjectFileLanguageService.GetPsiProperties(IProjectFile projectFile, IPsiSourceFile sourceFile, IsCompileService isCompileService)
 at JetBrains.ReSharper.Psi.Razor.CSharp.Template.RazorCSharpTemplateProjectFileLanguageService.GetPsiProperties(IProjectFile projectFile, IPsiSourceFile sourceFile, IsCompileService isCompileService)
 at JetBrains.ReSharper.Psi.StandardPsiSourceFilePropertiesProvider.GetPsiProperties(IPsiSourceFileProperties prevProperties, IProject project, IProjectFile projectFile, IPsiSourceFile sourceFile)
 at JetBrains.ReSharper.Psi.PsiSourceFilePropertiesManager.CalculatePsiSourceFileProperties(IProject project, IProjectFile projectFile, IPsiSourceFile sourceFile)
 at JetBrains.ReSharper.Psi.PsiSourceFilePropertiesManager.GetPsiProperties(IProject project, IProjectFile projectFile, IPsiSourceFile sourceFile)
 at JetBrains.ReSharper.Psi.Modules.DefaultPsiModuleProvider.DefaultProjectPsiModuleHandler.<>c__DisplayClass3_0.<.ctor>b__0(IProjectFile pf, IPsiSourceFile sf)
 at JetBrains.ReSharper.Psi.Impl.PsiProjectFile.get_Properties()
 at JetBrains.ReSharper.Psi.Caches.PsiCaches.ShouldBuildCaches(IPsiSourceFile sourceFile)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “SourceFile is not valid.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
 at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
 at JetBrains.ReSharper.Psi.Caches.PsiCaches.ShouldBuildCaches(IPsiSourceFile sourceFile)
 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
 at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
 at JetBrains.ReSharper.Psi.Caches.PsiCaches.Execute(IChangeMap changeMap)
 at JetBrains.Application.changes.ChangeManagerImpl.<>c__DisplayClass21_0.<InvokeOrderedDependentProviders>b__0(IProgressIndicator pro)
 at JetBrains.Application.Progress.SimpleTaskExecutor.ExecuteTaskTrivial(Action`1 task)
 at JetBrains.Application.Progress.SimpleTaskExecutor.JetBrains.Application.Progress.ITaskExecutor.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task)
 at JetBrains.Application.changes.ChangeManagerImpl.InvokeOrderedDependentProviders(ITaskExecutor executor, IEnumerable`1 dependentProviders, ChangeMap changeMap)
 at JetBrains.Application.changes.ChangeManagerImpl.OnProviderChanged(IChangeProvider changeProvider, Object change, ITaskExecutor executor)
 at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeManager.<>c__DisplayClass8_0.<EndTransaction>b__0()
 at JetBrains.Application.changes.ChangeManagerImpl.ExecuteAfterChange(Action action)
 at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeManager.EndTransaction(ProjectModelBatchChange projectModelBatchChange, ITaskExecutor executor)
 at JetBrains.ProjectModel.Impl.ProjectModelBatchChange.Commit(ITaskExecutor executor)
 at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeCookie.Dispose()
 at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHostSync.AddOrUpdateProjectRecursively(ProjectHostChange change, Boolean initializing)
 at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHostSync.<>c__DisplayClass21_0.<UpdateProjects>b__0()
 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.ExecuteTasks(Boolean background)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerAsync.DispatchTasks(Boolean background)
 at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ResumeWaitTask(SolutionLoadWaitHandle waitHandle, Boolean background)
 at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHostStructureWaiter.<ResumeWaitTask>b__11_0()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Application.Threading.IShellLocksEx.<>c__DisplayClass2_0.<ExecuteOrQueueReadLockEx>b__0()
 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.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.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.Run()
 at JetBrains.ReSharper.Host.Product.ReSharperHostMain.Main(Lifetime lifetime, IReSharperHostSettings settings, ILogger logger, ShellProtocol protocol, RdModelRoot modelRoot, ApplicationShutdownRequests shutdownRequests)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
 at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass0_0.<.ctor>b__0()
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.Application.Threading.IThreadingEx.<>c__DisplayClass13_1.<ExecuteOrQueueWhenNotGuarded>b__2()
 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.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 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
 at JetBrains.Application.Environment.IJetHostEx.<>c__DisplayClass2_0.<RunHostMessageLoop>b__0(Lifetime lifetime)
 at JetBrains.DataFlow.Lifetimes.Using(Action`1 λ)
 at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv)
 at JetBrains.Application.Environment.HostParameters.MessagePumpMainLoopHostMixin.JetBrains.Application.Environment.HostParameters.IRunMainLoopHostMixin.RunMainLoop(ComponentContainer containerEnv)
 at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
 at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
 at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
 at JetBrains.Application.Environment.JetHostItems.CreateAndRun(Full input)
 at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.MainX(Assembly assembly, HostInfo hostInfo, String[] args)
 at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.<>c.<Main>b__0_0(Lifetime lifetime)
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ)
 at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.Main()
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)



last.action =

app.eap = true
app.internal = true
app.build = 181.SNAPSHOT
app.version.major = 2018
app.version.minor = 1
app.build.date = 2018-04-09T12:58:23.034+0000
app.build.date.release = 2017-12-27T00:00:23.034+0000
app.build.date.release = 2017-12-27T00:00:23.034+0000
app.compilation.timestamp = null
app.product.code =

os.name = Windows 10
java.version = 1.8.0_152-release
java.vm.vendor = JetBrains s.r.o

UIUtil.isRetina = false
UIUtil.isAppleRetina = false
JBUI.isHiDPI() = false
ImageScaleFactor = 1

RSRP-466153: Live templates expansion is slow

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Sep 5, 2017 6:44:57 PM
Updated Apr 13, 2018 8:08:40 PM
Subsystem ASP.NET - MVC
Assignee Slava Tutushkin (slava.tutushkin)
Priority Critical
State Reopened
Type Performance Problem
Fix version 2018.1
Affected versions 2017.3.5, 2017.2
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM
100,00% DataFactory • 4 028 ms • JetBrains.ReSharper.Feature.Services.Asp.Caches.MvcCache.DataFactory(IMvcCacheProcessor, IFile, Boolean)
100,00% ProcessDescendants • 4 028 ms • JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants(ITreeNode, IRecursiveElementProcessor, TContext)
100,00% ProcessAfterInterior • 4 028 ms • JetBrains.ReSharper.Feature.Services.Asp.CSharp.Caches.MvcCSharpCacheProcessor.ProcessAfterInterior(ITreeNode, Tuple)
100,00% Accept • 4 028 ms • JetBrains.ReSharper.Psi.CSharp.Impl.Tree.PropertyInitializer.Accept(TreeNodeVisitor, TContext)
100,00% VisitPropertyInitializer • 4 028 ms • JetBrains.ReSharper.Feature.Services.Asp.CSharp.Caches.MvcCSharpCacheProcessor.VisitPropertyInitializer(IPropertyInitializer, Tuple)
100,00% DetectLayoutChanges • 4 028 ms • JetBrains.ReSharper.Feature.Services.Asp.CSharp.Caches.MvcCSharpCacheProcessor.DetectLayoutChanges(IReference, IExpression, Tuple, Boolean)
99,25% Expand • 3 998 ms • JetBrains.ReSharper.Feature.Services.ValueTracking.Model.ValueTrackingFilteredModel.Expand(IList, IProgressIndicator)
93,17% Expand • 3 753 ms • JetBrains.ReSharper.Feature.Services.ValueTracking.Model.ValueTrackingFilteredModel.Expand(IList, IProgressIndicator)
93,17% Expand • 3 753 ms • JetBrains.ReSharper.Feature.Services.ValueTracking.Engine.ValueTrackingEngine.Expand(IList, IProgressIndicator)
93,17% FindUsages • 3 753 ms • JetBrains.ReSharper.Feature.Services.Util.CachingFinder.FindUsages(ICollection, IProgressIndicator)
►86,88% FindReferences • 3 499 ms • JetBrains.ReSharper.Feature.Services.Util.CachingFinder.FindReferences(ICollection, ISearchDomain, IProgressIndicator)
►6,29% UnionSearchDomains • 253 ms • JetBrains.ReSharper.Psi.Search.DeclaredElementSearchExtensions.UnionSearchDomains(IEnumerable)
►6,09% Expand • 245 ms • JetBrains.ReSharper.Feature.Services.ValueTracking.Engine.ValueTrackingEngine.Expand(IList, IProgressIndicator)
►0,75% CheckViewLocationType • 30 ms • JetBrains.ReSharper.Feature.Services.Asp.Caches.MvcCacheProcessorHelper.CheckViewLocationType(IReference, IExpression, Boolean)
Viewing all 106942 articles
Browse latest View live


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