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

RSRP-200117: "Add method body" quick-fix handles destructors incorrectly

$
0
0
Reporter Jura Gorohovsky (gorohoroh) Jura Gorohovsky (gorohoroh)
Created Dec 10, 2010 10:41:16 PM
Updated Oct 4, 2018 6:42:59 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
In this scenario:
~MyClass

ReSharper provides a quick-fix to add method body since destructors must have bodies.

Applying the quick-fix modifies the code as follows:
~MyClass
    {
    throw new NotImplementedException();
    }
Note that while ReSharper does insert the body, it doesn't insert parentheses. Formally it shouldn't but it would be great if it does because otherwise, the caret is positioned in the end of the body and the closing brace is highlighted as "unexpected symbol", which is kind of obscure.

RSRP-469921: UI input lag after saving file

$
0
0
Reporter Thomas Harrison (rolls) Thomas Harrison (rolls)
Created May 30, 2018 9:23:00 AM
Updated Oct 4, 2018 8:20:56 PM
Subsystem Psi - Caches
Assignee Dmitry Ivanov (daivanov)
Priority Critical
State Open
Type Performance Problem
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
https://resharper-support.jetbrains.com/hc/en-us/requests/1340628?page=1

I get bad UI input lag (typing) after saving a file. This also occurs randomly when I haven't saved a file. Sometimes the intellisense look alike (eg the auto complete) completely fails and I have to disable resharper.

I took some performance profiles but your bug tracker doesn't upload. The performance profiler crashes and fails to attach. After spending several hours restarting processes I managed to get it to attach whilst the slowdown was occuring, then the bug tracker app uploaded at 3kb/s and timed out after several hours despite having a 100 megabit connection.

I managed to grab the performance profiles out of my temp folder before the bug reporter crashed again (crashes 9/10 times I managed to attach a bug report taking visual studio with it!).

Anyway ignoring the fact the profiler won't attach and the bug reporter is buggy and impossible to upload I've attached via sharepoint a performance profile.
https://pcmtec-my.sharepoint.com/:u:/p/roland/EaxrTT-am2hLnBpPqii5VsEBfdKPqHuoeHbK0ovda2ZG8w?e=9AIbmA

Basically this happens whenever I press ctrl+s then start typing, the UI lags badly for 15 seconds afterwards. Startup is horrendously slow as well lagging the entire UI and showing "not responding" whilst it is "processing assemblies".

I moved my cache folder to a different drive (SSD in raid) and it was no worse than my NVME PCIE SSD with 3gb/s transfer rates.

I keep seeing these files being accessed in resource monitor (ignore the path, this was before I moved the folder) when the IDE is idling away doing nothing.

Why is the UI completely locked whilst "processing assemblies"? Why does it need to process them every time I start the application?

Why does the UI lock up badly after saving? I have disabled code lense, intelli trace and everything else in the performance guide but resharper still runs like a complete dog. I was hoping spending $2k on a new 12 core, 32gb ram and NVME SSD would make things faster, but it is barely an improvement.

RSRP-471757: False message: using directive is unnecessary

$
0
0
Reporter Greg Harshman (gregalhaig.1) Greg Harshman (gregalhaig.1)
Created Oct 4, 2018 9:06:37 PM
Updated Oct 4, 2018 9:06:37 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

This just started happening Monday. Every other solution I open in a new instance, ReSharper gives a false message about using directive unnecessary. Soultion will compile, no errors show up. But whole page is lit up with red errors. This only happens to every other instance of VS Studio. If I have five solutions open at once, this will occur on the second and fourth instances.
I disabled ReSharper and the problem disappears
JB01 shows the errors on the pages. JB02 is different instance of VS, same code.
Using VS Studio 2017.
JetBrains ReSharper Ultimate 2017.1.3 Build 108.0.20170613.154143
ReSharper 2017.1.20170613.155418

RSRP-469591: Some instances of xUnit Theory-tests can be missed by ReSharper unit testing

$
0
0
Reporter Ekaterina Solovova (Ekaterina.Solovova) Ekaterina Solovova (Ekaterina.Solovova)
Created May 10, 2018 10:30:47 PM
Updated Oct 5, 2018 1:10:19 AM
Resolved Oct 5, 2018 1:10:18 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Fixed
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
If a Theory-test has several instances with the same string presentation of parameters values, only the first discovered test instance will be shown in the unit tests tree.

Example1: generic test with Enum parameter.

[Theory]
[InlineData(EnumType1.MyValue, "My Value")]
[InlineData(EnumType2.MyValue, "My Value")]
public void GenericTest<T>(T expected, string testData) where T : struct
{
}


String presentation of parameters values for both inline-tests is: "(expected: MyValue, testData: "My Value")". ReSharper shows only one test instance, VS Test Explorer shows both test instances correctly. ReSharper doesn't allow to run the second test instance.

Example2: dynamic test with custom parameter string presentation.

public class Data
{
public int I { get; }
public Data(int i) { I = i; }
public override string ToString() { return "Custom"; }
}

public class DataSource : IEnumerable<object[]>
{
IEnumerator<object[]> IEnumerable<object[]>.GetEnumerator()
{
yield return new object[] {new Data(1)};
yield return new object[] {new Data(2)};
}

public IEnumerator GetEnumerator() { throw new NotImplementedException(); }
}

[Theory, ClassData(typeof(DataSource))]
public void Test(Data d)
{
Assert.True(d.I > 1);
}


String presentation of parameters values for both test instances is: "(d: Custom)". ReSharper shows only one test instance, but when you run it starts both instances. The result looks as a mix of both tests - it's green but with an exception in the output:


VS Test Explorer shows only parent Theory-test, doesn't allow to run test instances separately, but correctly shows two test results:

RSRP-462134: Nunit TestCaseSource category not working

$
0
0
Reporter Anonymous (anon-ajcK8DA7) Anonymous (anon-ajcK8DA7)
Created Dec 8, 2016 1:49:19 AM
Updated Oct 5, 2018 1:10:38 AM
Resolved Oct 5, 2018 1:10:38 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.3
Affected versions 2017.3.2, 2017.1, 2016.2.2, 2016.3.1, 2016.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Nunit 3.5, 2016.3 EAP 11, 2016.3 RC, VS2015
When using TestCaseSource and setup category name it's not working and still showing as "uncategorized" when tests were group by "Categories"
Even if i filter out "Huge" category in Resharper option, these tests still run, it's really annoying.

using NUnit.Framework;

namespace TestNUnit
{
    class Program
    {
        public int Foo(int a)
        {
            return a;
        }

        static void Main(string[] args)
        {
        }
    }

    [TestFixture]
    class ProgramTests
    {
        [Category("Huge")] //correct
        [TestCase(4, ExpectedResult = 4)]
        public int TestFoo(int a)
        {
            var program=new Program();
            return program.Foo(a);
        }


        [TestCase(4, ExpectedResult = 4, Category = "Huge")] //correct
        public int TestFoo2(int a)
        {
            var program = new Program();
            return program.Foo(a);
        }

        [TestCaseSource(nameof(_testCases), Category = "Huge")] //incorrect
        public int TestFoo3(int a)
        {
            var program = new Program();
            return program.Foo(a);
        }

        private static TestCaseData[] _testCases =
        {
            new TestCaseData(4) {ExpectedResult = 4}
        };
    }
}
Upd:
I did many times reset of resharper cache and with 50% got one of two cases
case 1: http://screencast.com/t/P1tEva9xnWJh
case 2: http://screencast.com/t/VvQRhUmTNAR

In real project after branch changing i got always case1, seems problem in cache.

upd2:
rare case3: http://screencast.com/t/vjUjARlXYA after VS start with enabled continuous testing (it will show wrong categories after own first test) but after mine manual start it fix them but got crash - https://youtrack.jetbrains.com/issue/DEXP-154439

RSRP-470260: DynamicData in MsTest v2

$
0
0
Reporter Erik Andersson (erandersson) Erik Andersson (erandersson)
Created Jun 21, 2018 11:21:10 AM
Updated Oct 5, 2018 1:10:59 AM
Resolved Oct 5, 2018 1:10:59 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Fixed
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

There's an incorrect behavior in the unit test runner, causing it to report success when the visual studio testrunner (correctly) fails the test.

Reproduced using the following class, targeting Microsoft.VisualStudio.TestPlatform.TestFramework v1.3.2, added from NuGet

using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TestProject
{
    [TestClass]
    public class TestTest
    {
        [DataTestMethod]
        [DynamicData(nameof(GetData))]
        public void TestMethod1(bool whatever, int[] expected, int[] actual)
        {
            Assert.IsTrue(whatever);
            CollectionAssert.AreEqual(actual, expected);
        }

        public static IEnumerable<object[]> GetData =>
            new[]
            {
                new object[] {true, new[] {1, 2, 3}, new[] {1, 2, 3}},
                new object[] {true, new[] {1, 2, 3}, new[] {0, 0, 0}},
                new object[] {true, new[] {1, 2, 3}, new[] {1, 2, 3}},
            };
    }
}

Using the code above the resharper test runner will report success and visual studio test runner will report fail. The latter being correct because of the second test case in GetData

RSRP-469598: Can't run NUnit test "Element doesn't exist in session" for Generic Method with Parameterized TestFixture

$
0
0
Reporter Suguz Suguz (supersuguz) Suguz Suguz (supersuguz)
Created May 11, 2018 12:26:48 PM
Updated Oct 5, 2018 1:11:17 AM
Resolved Oct 5, 2018 1:11:17 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.3
Affected versions 2018.1.1, 2018.1, 2017.3.5, 2017.3.2, 2017.3.3, 2017.3.1, 2017.3, 2017.2, 2017.1, 2017.2.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

I need to create unit test (nUnit) using parameterized TestFixture.
But have a problem when executing Generic Method tests.
Please check sample code and error message (attached)

Note: All unit tests runs OK with Visual Studio Test Explorer

using NUnit.Framework;
using System;

namespace NUnitTests
{
    [TestFixture(Library.LIBRARY_A)]
    [TestFixture(Library.LIBRARY_B)]
    public class Class1
    {
        public enum Library
        {
            LIBRARY_A,
            LIBRARY_B
        }

        private Library _libraryUsed;

        public Class1(Library enumUsed)
        {
            _libraryUsed = enumUsed;
        }

        [TestCase("A")]
        [TestCase("B")]
        public void MyTest(string letter)
        {
            Console.WriteLine($"Library :{_libraryUsed} letter:{letter}");
        }

        // Here comes the problem
        [TestCase("Sample")]
        [TestCase(100.1d)]
        public void MyGenericTest<T>(T value)
        {
            Console.WriteLine($"Library :{_libraryUsed} value:{value.ToString()}");
        }
    }
}

RSRP-470357: Test pane shows wrong names for TestCases in NUnit

$
0
0
Reporter Vasili Galka (vgalka) Vasili Galka (vgalka)
Created Jun 27, 2018 4:34:53 PM
Updated Oct 5, 2018 1:11:31 AM
Resolved Oct 5, 2018 1:11:31 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Fixed
Type Bug
Fix version 2018.3
Affected versions 2018.1.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

NUnit code example:

namespace Abc.DotNet.Tests.BS.Input
{
    [TestFixture]
    public class MyTests
    {
        ...

        [TestCase("AccessPublic", "public System.Void()")]
        [TestCase("AccessPrivate", "private System.Void()")]
        public void OnMethodWithModifier_AddsExpectedToBuildMapping(string a, string b)
        {
        }

        ...
    }
}

The test pane shows wrong names (see attached screenshot).


RSRP-462900: Unit tests are not run

$
0
0
Reporter Dan Vasilov (dan_vasilov) Dan Vasilov (dan_vasilov)
Created Feb 3, 2017 1:00:52 PM
Updated Oct 5, 2018 1:13:12 AM
Resolved Oct 5, 2018 1:13:12 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Fixed
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
I've organized some unit tests using inner classes (as a possible proposal for the entire team). These tests are not run.
A simple code sample follows.

class NewTaskStartDateCalculatorFacts
{
public class TheGetMethod
{
public class WhenNoTasksExists
{
[Theory, AutoData]
public void ReturnedValueDatePartEqualsToday(DateTime today)
{
var builder = new NewTaskStartDateCalculator.Builder();
var calculator = builder
.WithToday(today)
.Build();

var startDate = calculator.Get();

Assert.Equal(today.Date, startDate.Date);
}
}
}
}

The ReturnedValue ... test will not be run by Resharper. Is this by design?

RSRP-470012: An obvious way to control Unit Test Session Options

$
0
0
Reporter Andrey Akinshin (Andrey.Akinshin) Andrey Akinshin (Andrey.Akinshin)
Created Jun 4, 2018 3:20:59 PM
Updated Oct 5, 2018 1:13:28 AM
Resolved Oct 5, 2018 1:13:28 AM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Fixed
Type Usability Problem
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
We have different Unit Test Session settings like platform architecture or .NET Framework version. We have these settings on the options page and in the session options popup. It's not obvious how these values are related, current behavior looks very confusing (e.g., see RIDER-8003).
I suggest to use the following logic:
1. We keep the existed values on the options page (e.g., Automatic, x86, x64)
2. We add new value to the session option popup: Default which means "Get value from the settings"
In this case, changes on the options page affect all the session which weren't edited manually.

RSRP-471758: Running an xUnit from xUnit.net Test icon (as opposed to xUnit.net Test Class icon) always ends up Inconclusive

$
0
0
Reporter Jacob Mojiwat (jmojiwat) Jacob Mojiwat (jmojiwat)
Created Oct 5, 2018 3:42:34 AM
Updated Oct 5, 2018 3:42:34 AM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Clicking the class level icon runner will run the tests, but clicking on the method level icon runner will return inconclusive.

Error returned by Resharper:

2018.10.05 08:34:05.678 ERROR JetBrains.Util.InternalErrorException: Unexpected: Unable to find any matching test cases
at JetBrains.ReSharper.UnitTestRunner.Xunit.TestRunner.Run(XunitTestAssemblyTask assemblyTask)

2018.10.05 08:34:05.698 WARN Element Testing was left pending after its run completion.
2018.10.05 08:34:05.698 WARN Element Test1 was left pending after its run completion.

Source code to reproduce the error:

public class Testing
{
    [Theory, TestAutoData]
    public void Test1(Multiplier sut)
    {
        var x = sut.Execute(1);
        x.Should().Be(2);
    }

    [Theory, TestAutoData]
    public void Test2(Multiplier sut)
    {
        var x = sut.Execute(1);
        x.Should().Be(2);
    }

    public class Multiplier
    {
        public int Execute(int i)
        {
            return i * 2;
        }
    }

    private class TestAutoDataAttribute : AutoDataAttribute
    {
        public TestAutoDataAttribute() : base(() => 
            new Fixture().Customize(new CompositeCustomization(new Customization(), new AutoNSubstituteCustomization())))
        {}
    }

    private class Customization : ICustomization
    {
        public void Customize(IFixture fixture)
        {
            fixture.Register(() => new Multiplier());
        }
    }
}

Using
Resharper 2018.2.3
Visual Studio 15.8.6

Compiling against .Net 4.7.2

RSRP-471395: OnRemoved: file without persistent index

$
0
0
Reporter ReSharper anonymous (resharper) ReSharper anonymous (resharper)
Created Aug 23, 2018 10:14:51 AM
Updated Oct 5, 2018 9:08:41 AM
Subsystem No Subsystem
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
JetBrains Rider 2018.2 Build RD-182.4231.206 Date 2018-08-22T04:58:14.060+0000

— EXCEPTION #1/1 [LoggerException]
Message = “OnRemoved: file without persistent index”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.ReSharper.Psi.Caches.Persistence.PersistentIndexManager.IsBadFile(IPsiSourceFile sf, String methodName) in C:\Build Agent\work\6893420d5335620b\Psi.Features\Core\Psi\_Core\Src\Caches\Persistence\PersistentIndexManager.cs:line 224
 at JetBrains.ReSharper.Psi.Caches.Persistence.PersistentIndexManager.IsBadFile(IPsiSourceFile sf, String methodName) in C:\Build Agent\work\6893420d5335620b\Psi.Features\Core\Psi\_Core\Src\Caches\Persistence\PersistentIndexManager.cs:line 224
 at JetBrains.ReSharper.Psi.Caches.Persistence.PersistentIndexManager.OnRemoved(IPsiSourceFile sf) in C:\Build Agent\work\6893420d5335620b\Psi.Features\Core\Psi\_Core\Src\Caches\Persistence\PersistentIndexManager.cs:line 238
 at JetBrains.ReSharper.Psi.Caches.Persistence.PersistentIndexManager.Execute(IChangeMap changeMap) in C:\Build Agent\work\6893420d5335620b\Psi.Features\Core\Psi\_Core\Src\Caches\Persistence\PersistentIndexManager.cs:line 120
 at JetBrains.Application.changes.ChangeManagerImpl.<>c__DisplayClass21_0.<InvokeOrderedDependentProviders>b__0(IProgressIndicator pro) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\changes\ChangeManagerImpl.cs:line 270
 at JetBrains.Application.Progress.SimpleTaskExecutor.ExecuteTaskTrivial(Action`1 task) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\Progress\SimpleTaskExecutor.cs:line 90
 at JetBrains.Application.changes.ChangeManagerImpl.OnProviderChanged(IChangeProvider changeProvider, Object change, ITaskExecutor executor) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\changes\ChangeManagerImpl.cs:line 224
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithWriteLock(IShellLocks thіs, Action F, CallerInfo caller) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\Threading\IShellLocksEx.cs:line 384
 at JetBrains.ReSharper.Feature.Services.ExternalSources.Core.Impl.ExternalSourcesServiceImpl.<>c__DisplayClass13_0.<FlushBuilder>b__1() in C:\Build Agent\work\6893420d5335620b\Psi.Features\Core\Services\ExternalSources\_Core\Src\Core\Impl\ExternalSourcesServiceImpl.cs:line 121
 at JetBrains.Threading.ReentrancyGuardEx.<>c__DisplayClass0_1.<Queue>b__3() in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuardEx.cs:line 46
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 300
 at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions() in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\ReentrancyGuard.cs:line 664
 at JetBrains.Threading.JetDispatcher.Closure.Execute() in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\JetDispatcher.cs:line 626
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 440
 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() in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 693
 at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run() in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 888
 at JetBrains.ReSharper.Host.Product.ReSharperHostMain.Main(Lifetime lifetime, IReSharperHostSettings settings, ILogger logger, ShellProtocol protocol, RdShellModel shellModel, ApplicationShutdownRequests shutdownRequests) in C:\Build Agent\work\b8207f29c58fdb68\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Product\ReSharperHostMain.cs:line 38
 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 JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass0_0.<.ctor>b__0() in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\RunsPublicStaticIntMain.cs:line 80
 at JetBrains.Util.Logging.Logger.Catch(Action action) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Logging\Logger.cs:line 339
 at JetBrains.Threading.JetDispatcher.Closure.Execute() in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\JetDispatcher.cs:line 626
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Core\Src\Concurrency\Dispatcher\WinJetDispatcher.cs:line 440
 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.DataFlow.Lifetimes.Using(Action`1 λ) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\RdCore\Src\Lifetime\Lifetimes.cs:line 234
 at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\IJetHostEx.cs:line 95
 at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\HostParameters\Interface\JetHostParametersCaller.cs:line 181
 at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\JetEnvironment.cs:line 251
 at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\Shell\Src\Application\Environment\Infra\JetEnvironment.cs:line 137
 at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.MainX(Assembly assembly, HostInfo hostInfo, String[] args) in C:\Build Agent\work\b8207f29c58fdb68\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Product\ReSharperHostProgram.cs:line 50
 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ) in C:\Build Agent\work\a916b5002baa11c7\Platform\Core\Shell\RdCore\Src\Lifetime\Lifetimes.cs:line 281
 at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.Main() in C:\Build Agent\work\b8207f29c58fdb68\ReSharperAutomationTools\src\ReSharperHost\ReSharperHost\Product\ReSharperHostProgram.cs:line 21
 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 = FindDependantCodeAction

app.eap = true
app.internal = false
app.build = RD-182.4231.206
app.version.major = 2018
app.version.minor = 2
app.build.date = 2018-08-22T04:58:14.060+0000
app.build.date.release = 2018-08-24T00:00:14.060+0000
app.build.date.release = 2018-08-24T00:00:14.060+0000
app.compilation.timestamp = null
app.product.code = RD

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

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

RSRP-463819: ReSharper CLT InspectCode.exe variance

$
0
0
Reporter Josh Pharis (jrpharis) Josh Pharis (jrpharis)
Created Mar 20, 2017 6:59:11 PM
Updated Oct 5, 2018 9:37:17 AM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Slava Trenogin (derigel)
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 am having issues using InspectCode.exe as a MSBuild build step to fail a build when errors and warnings against the ReSharper code inspection rules occur. If I run ReSharper -> Inspect -> Code Issues in Solution, I get no errors (using default rules). When I run inspectcode.exe (either from the command line or as a build step), I get numerous errors with the message "Cannot resolve symbol '<type>'".

I have tried this with the inspectcode.exe executable that is downloaded with the JetBrains.ReSharper.CommandLineTools (v2016.3.20170126.124346) Nuget package and with the download from the JetBrains website. I confirmed I am able to build my solution with MsBuild.exe with no parameters.

RSRP-470106: ReSharper code inspection check fails

$
0
0
Reporter Дмитрий Захарченко (zahdimar) Дмитрий Захарченко (zahdimar)
Created Jun 7, 2018 3:27:45 PM
Updated Oct 5, 2018 9:39:55 AM
Resolved Sep 1, 2018 5:59:09 PM
Subsystem ReSharper Automation Tools (Command Line)
Assignee Slava Trenogin (derigel)
Priority Normal
State Fixed
Type Exception
Fix version 2018.2.2
Affected versions 2018.1.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

Hello
We're getting the following exceptions with the latest resharper-clt 2018.1.2
Seems like that 2018.1 is affected as well.

JetBrains Inspect Code 2018.1.2
Running in 64-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.1.7601 Service Pack 1

Object reference not set to an instance of an object.
 
 --- EXCEPTION #1/2 [NullReferenceException]
 Message = "Object reference not set to an instance of an object."
 ExceptionPath = Root.InnerException
 ClassName = System.NullReferenceException
 HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
 Source = JetBrains.ReSharper.SolutionAnalysis
 StackTraceString = "
   at JetBrains.ReSharper.Daemon.SolutionAnalysis.IssueClasses.BuildIssues(IEnumerable`1 highlightings, IPsiSourceFile psiSourceFile)
      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeDaemon.DoHighlighting(DaemonProcessKind daemonProcessKind, Action`1 issueConsumer)
      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.<>c__DisplayClass22_0.<RunInspections>b__1()
      at JetBrains.Util.Logging.Logger.CatchButOperationCanceledException(Action action)
 
 --- Outer ---
 
 --- EXCEPTION #2/2 [LoggerException]
 Message = "Object reference not set to an instance of an object."
 ExceptionPath = Root
 ClassName = JetBrains.Util.LoggerException
 InnerException = "Exception #1 at Root.InnerException"
 HResult = COR_E_APPLICATION=80131600
 StackTraceString = "
   at JetBrains.Util.Logging.Logger.LogException(Exception ex)
      at JetBrains.Util.Logging.Logger.CatchButOperationCanceledException(Action action)
      at JetBrains.Application.Progress.ProgressIndicatorExtensions.StartStop(IProgressIndicator progress, Int32 totalWorkUnits, String taskName, Action action)
      at JetBrains.Util.Logging.Logger.CatchButOperationCanceledException(Action action)
      at JetBrains.Application.Progress.ProgressIndicatorExtensions.StartStop(IProgressIndicator progress, Int32 totalWorkUnits, String taskName, Action action)
      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.RunInspectionsUnderProgress(ICollection`1 projectFiles, IProgressIndicator progress, Action`1 issueConsumer)
      at JetBrains.CommandLine.Common.Console.BatchTool.Progress.ToolTaskExecutor.ExecuteTask(String taskName, TaskCancelable cancelable, Action`1 task)
      at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.<>c__DisplayClass18_0.<RunInspectionsInSeparateThread>b__0()
      at JetBrains.Threading.JetDispatcher.Closure.Execute()
      at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
      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.<>c__DisplayClass19_1.<CreateDispatcherThread>b__0()
      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
      at System.Threading.ThreadHelper.ThreadStart()

RSRP-470872: The “Assembly:Muellerchur.Xamos.Portable.BusinessObjects, Version=1.21.3.621, Culture=neutral, PublicKeyToken=null” lifetime has never been terminated

$
0
0
Reporter Thomas Stocker (thomas.stocker) Thomas Stocker (thomas.stocker)
Created Jul 4, 2018 9:38:46 AM
Updated Oct 5, 2018 10:31:53 AM
Resolved Aug 1, 2018 7:40:30 AM
Subsystem Platform - Project Model
Assignee Slava Tutushkin (slava.tutushkin)
Priority Show-stopper
State Duplicate
Type Exception
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _cb16f37c — JetBrains ReSharper Ultimate 2018.2 EAP 1 Build 182.0.20180628.124316-eap01

JetBrains dotTrace 182 Build 182.0.20180628.132215-eap01
JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01

The “Assembly:Muellerchur.Xamos.Portable.BusinessObjects, Version=1.21.3.621, Culture=neutral, PublicKeyToken=null” lifetime has never been terminated. Some resources might have leaked.

— EXCEPTION #1/3 [InvalidOperationException]
Message = “The “Assembly:Muellerchur.Xamos.Portable.BusinessObjects, Version=1.21.3.621, Culture=neutral, PublicKeyToken=null” lifetime has never been terminated. Some resources might have leaked.”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509

— Outer —

— EXCEPTION #2/3 [FinallyException]
Message = “The “Assembly:Muellerchur.Xamos.Portable.BusinessObjects, Version=1.21.3.621, Culture=neutral, PublicKeyToken=null” lifetime has never been terminated. Some resources might have leaked.”
ExceptionPath = Root.InnerException
ClassName = JetBrains.DataFlow.Disposable+FinallyException
Data.CreationStackTrace = “-=[ Stack trace logging disabled. ]=-”
Data.ObjectId = “Assembly:Muellerchur.Xamos.Portable.BusinessObjects, Version=1.21.3.621, Culture=neutral, PublicKeyToken=null”
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_APPLICATION=80131600
ObjectId = “Assembly:Muellerchur.Xamos.Portable.BusinessObjects, Version=1.21.3.621, Culture=neutral, PublicKeyToken=null”
CreationStackTrace = “-=[ Stack trace logging disabled. ]=-”

— Outer —

— EXCEPTION #3/3 [LoggerException]
Message = “The “Assembly:Muellerchur.Xamos.Portable.BusinessObjects, Version=1.21.3.621, Culture=neutral, PublicKeyToken=null” lifetime has never been terminated. Some resources might have leaked.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 1 Build 182.0.20180628.124316-eap01”
Data.SubProducts.#0 = “JetBrains dotTrace 182 Build 182.0.20180628.132215-eap01”
Data.SubProducts.#1 = “JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap1::389b2b0a5d2b33c46224f8f1850bc61276990d1e


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

Data.VsVersion = 15.8.27825.0
Data.VsPreview = True
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.DataFlow.Disposable.FinallyException.LogMissedDispose(String id, String message, String sOriginatingStackTrace)
 at JetBrains.DataFlow.Disposable.FinallyException.LogMissedDispose(String id, String message, String sOriginatingStackTrace)
 at JetBrains.DataFlow.Disposable.FinalizableDisposable.Finalize()

RSRP-471576: Type reference could be only for type reference but is used on

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Sep 20, 2018 4:58:04 PM
Updated Oct 5, 2018 10:36:12 AM
Subsystem JavaScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Exception
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 183 Hive _3f3919c0ProjectModel — JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180918.154710-eap01d

JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180918.160255-eap01d

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

— EXCEPTION #1/1 [LoggerException]
Message = “Type reference could be only for type reference but is used on”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(L) #7”
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180918.154710-eap01d”
Data.SubProducts.#0 = “JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180918.160255-eap01d”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/183-deferred-projects::f881e303bc575e4fd458361426a27fbf97c94603


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

Data.VsVersion = 15.8.28010.2026
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.Logging.Logger.FailWithSensitiveData(String messageText, Pair`2[] sensitiveData)
 at JetBrains.Util.Logging.Logger.FailWithSensitiveData(String messageText, Pair`2[] sensitiveData)
 at JetBrains.ReSharper.Psi.JavaScript.Resolve.PrimitiveTypeExtensions.GetTypeReferenceType(JsPrimitive primitive, String name)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsTypeBase.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsTypeWithSignaturesBase.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.TypeScript.TsNamedType.ProcessDerivedTypes(JsResolveContext context, JsTypeDescriptionOpInfo& derivedTypeInfo, JsUnresolvedTypeFlags flags, IList`1 sourcePrimitives, JsTypeExpandingContext derivedPrimitives, ResolveErrorType resolveStatus, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsTypeResolverBase.ProcessDerivedTypes(JsTypeResolveResult type, JsResolveContext context, JsTypeDescriptionOpInfo derivedTypeInfo, StrongTypeMode mode, Boolean expectedType, JsUnresolvedTypeFlags flags, Boolean addStandardTypes, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.<>c.<.cctor>b__58_1(JsResolveContext context1, JsUnresolvedTypeBase me, MyCalculationIdentifier ident)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsResolveContext.CalculateWithCache[T,TCalculationIdentifier,TState](TCalculationIdentifier ident, TState state, ResolveContextKind resolveKind, Func`4 getResult, T defaultValue, Boolean checkForCyclicOrTooDeep, Func`4 getCyclicResult, Func`5 processResult)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ExpandRecursively(JsResolveContext context, Boolean standardTypes, Boolean expectedTypes, JsUnresolvedTypeFlags flags, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.<>c.<.cctor>b__58_1(JsResolveContext context1, JsUnresolvedTypeBase me, MyCalculationIdentifier ident)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsResolveContext.CalculateWithCache[T,TCalculationIdentifier,TState](TCalculationIdentifier ident, TState state, ResolveContextKind resolveKind, Func`4 getResult, T defaultValue, Boolean checkForCyclicOrTooDeep, Func`4 getCyclicResult, Func`5 processResult)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ExpandRecursively(JsResolveContext context, Boolean standardTypes, Boolean expectedTypes, JsUnresolvedTypeFlags flags, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Resolve.JsUnresolvedTypeBase.ResolveType(JsResolveContext context, Boolean standardTypes, StrongTypeMode strongTyped, JsTypeResolveResult contextualType)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.VisitTsReferenceName(ITsReferenceName tsReferenceNameParam, IHighlightingConsumer context)
 at JetBrains.ReSharper.Psi.JavaScript.Impl.Tree.TypeScript.TsReferenceName.Accept[TContext](TsTreeNodeVisitor`1 visitor, TContext context)
 at JetBrains.ReSharper.Daemon.JavaScript.Prelude.TypeScript.TsDaemonStageProcessBase.ProcessAfterInterior(ITreeNode element, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.ProcessAfterInterior(ITreeNode element, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants[TContext](ITreeNode root, IRecursiveElementProcessor`1 processor, TContext context)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.<Execute>b__10_0(IJavaScriptFile file, IHighlightingConsumer consumer)
 at JetBrains.ReSharper.Daemon.JavaScript.Prelude.TypeScript.TsDaemonStageProcessBase.HighlightInFile(Action`2 fileHighlighter, Action`1 commiter)
 at JetBrains.ReSharper.Daemon.JavaScript.Stages.TypeScript.Syntax.TypeScriptOwnInspectionsProcess.Execute(Action`1 committer)
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.RunStage(IDaemonStage stage, DaemonProcessKind processKind, Action`2 commiter, IContextBoundSettingsStore contextBoundSettingsStore, JetHashSet`1 disabledStages)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass47_1.<DoHighlighting>g__Stage|2(IDaemonStage stage)
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass49_1.<PrepareRunActionForStages>b__0()
 at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass49_1.<PrepareRunActionForStages>b__0()
 at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass22_1.<EnqueueDependentJobs>b__2()
 at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass33_0.<Create>b__1(Object state)
 at System.Threading.Tasks.Task.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()
 at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
 at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
 at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
at ANNOTATED: JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread #D.JetPool(L) #7(Action )
 at JetBrains.Util.Reflection.CallStackAnnotation.InvokeAnnotated(String classNameOfNewFrame, String methodNameOfNewFrame, Action actionToAnnotate)
 at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate)
 at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.<Start>b__20_0()
 at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Threading.ThreadHelper.ThreadStart()

RSRP-471759: Solution-wide analysis doesn't catch CS0853 "An expression tree may not contain a named argument specification"

$
0
0
Reporter Matthew Thomas (Matthew.Thomas) Matthew Thomas (Matthew.Thomas)
Created Oct 4, 2018 4:49:57 PM
Updated Oct 5, 2018 11:11:34 AM
Subsystem Solution Wide Error Analysis (SWEA)
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Version: RD-182.4231.496
Timezone: America/New_York
Evaluation: false
Environment: RD-182.4231.496, JRE 1.8.0_152-release-1248-b8x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1200, 1080x1920
Logs: https://dotnet-ea.services.jetbrains.com/files/so-attachments/901bf53d-cc33-434e-a244-c910dd61e5e0/rider-logs-attachment.tar.xz

RSRP-470930: Object reference not set to an instance of an object.

$
0
0
Reporter Thomas Stocker (thomas.stocker) Thomas Stocker (thomas.stocker)
Created Jul 3, 2018 11:52:47 AM
Updated Oct 5, 2018 11:19:45 AM
Resolved Aug 31, 2018 10:42:26 AM
Subsystem Debugger features
Assignee Alexander Ulitin (alexander.ulitin)
Priority Critical
State Fixed
Type Exception
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 182 Hive _cb16f37c — JetBrains ReSharper Ultimate 2018.2 EAP 1 Build 182.0.20180628.124316-eap01

JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01

SubProducts.0 = JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01

Object reference not set to an instance of an object.

— EXCEPTION #1/2 [NullReferenceException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root.InnerException
ClassName = System.NullReferenceException
HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
Source = JetBrains.PsiFeatures.VisualStudio.Debugger
StackTraceString = “
 at JetBrains.PsiFeatures.VisualStudio.Debugger.DebugProperty2.CreateFromProperty(IDebugProperty2 property, String overrideName, EvaluationExpressionInfo expression)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.DebugProperty2.CreateFromProperty(IDebugProperty2 property, String overrideName, EvaluationExpressionInfo expression)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<CalculateExpressionsInRegion>d__26.MoveNext()
 at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
 at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.CalculateAdornments(Lifetime lifetime, ITextControl editor, FramePosition frame, IEnumerable`1 accumulatedReturnValues, IPsiSourceFile psiSourceFile)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass23_1.<ShowEditorAdornments>b__0()
 at JetBrains.DataFlow.ISignalEx.<>c__DisplayClass0_0`1.<Advise>b__0(TValue value)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.2 EAP 1 Build 182.0.20180628.124316-eap01”
Data.SubProducts.#0 = “JetBrains ReSharper 182 Build 182.0.20180628.125556-eap01”
Data.SccRevisionEnv = “
Platform\Core\Shell:
    git::refs/heads/182-eap1::389b2b0a5d2b33c46224f8f1850bc61276990d1e


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

Data.VsVersion = 15.8.27825.0
Data.VsPreview = True
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
 at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.ShowEditorAdornments(Lifetime editorLifetime, ITextControl editor, IProjectFile projectItem, FramePosition frame, IEnumerable`1 accumulatedReturnValues)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass19_2.<OnStackFrameChanged>b__7()
 at JetBrains.ReSharper.Psi.Files.PsiFiles.CommitAllDocumentsAsync(Action success, Action interrupted)
 at JetBrains.PsiFeatures.VisualStudio.Debugger.VsDebugVisualizerComponent.<>c__DisplayClass19_2.<OnStackFrameChanged>b__5()
 at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
 at JetBrains.Application.Threading.IShellLocksEx.<>c__DisplayClass5_0.<ExecuteOrQueueReadLock>b__0()
 at JetBrains.Threading.ReentrancyGuardEx.<>c__DisplayClass0_1.<Queue>b__3()
 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
 at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions()
 at JetBrains.Threading.JetDispatcher.Closure.Execute()
 at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
 at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass18_0.<BeginInvokeCore>b__0()
 at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
 at System.Windows.Threading.DispatcherOperation.InvokeImpl()
 at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
 at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Windows.Threading.DispatcherOperation.Invoke()
 at System.Windows.Threading.Dispatcher.ProcessQueue()
 at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

RSRP-191398: Quick fix "Replace > with

$
0
0
Reporter Philip Lee (philiplee) Philip Lee (philiplee)
Created Sep 23, 2010 9:09:03 PM
Updated Oct 5, 2018 11:54:06 AM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 5.1.1, 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
using NUnit.Framework;

namespace ClassLibrary1
{
public class Class1
{
public int? Value { get; set; }

public bool IsMoreThan1A
{
get { return Value > 1; }
}

public bool IsMoreThan1B
{
// Quick fix produces this
get { return !(Value <= 1); }
}

public bool IsMoreThan1C
{
// Should produce this
get { return Value.HasValue && !(Value <= 1); }
}
}

[TestFixture]
public class Test
{
[Test]
public void Test1A()
{
// Success
var c = new Class1 {Value = null};

Assert.IsFalse(c.IsMoreThan1A);
}

[Test]
public void Test1B()
{
// Fail
var c = new Class1 {Value = null};

Assert.IsFalse(c.IsMoreThan1B);
}

[Test]
public void Test1C()
{
// Success
var c = new Class1 {Value = null};

Assert.IsFalse(c.IsMoreThan1C);
}
}
}

RSRP-471594: Wrong "Invalid Possible InvalidOperatiorException"

$
0
0
Reporter Viacheslav Ivanov (_FRED_) Viacheslav Ivanov (_FRED_)
Created Sep 21, 2018 3:18:50 PM
Updated Oct 5, 2018 11:54:31 AM
Subsystem Code Analysis - Control Flow
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Fixed In Branch
Type Bug
Fix version 2018.3
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Code:
using System.Data.SqlTypes;


private static DateTime? M(DateTime? value)
=> value != null && value.Value < SqlDateTime.MinValue ? default(DateTime?) : value;
// ^~~~~~~~~~^ Possible InvalidOperationException

When I use DateTime instead of SqlDateTime all is OK
Viewing all 106942 articles
Browse latest View live


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