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

RSRP-469140: containing type should not be null when parent part is TypePart

$
0
0
Reporter Sergey Kuks (coox) Sergey Kuks (coox)
Created Apr 6, 2018 4:28:19 PM
Updated Apr 9, 2018 1:18:17 PM
Subsystem Psi - Caches
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Fixed In Branch
Type Exception
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
ReSharperPlatformVs15 Wave 12 Hive _2e4ec319ReSharper — JetBrains ReSharper Ultimate 2018.1 EAP 7 Build 112.0.20180401.0-eap07

JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180401.0-eap07
JetBrains TeamCity Add-in 2018.1 EAP 7 Build 2018.1.20180401.0-eap07

SubProducts.0 = JetBrains TeamCity Add-in 2018.1 EAP 7 Build 2018.1.20180401.0-eap07
SubProducts.1 = JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180401.0-eap07

containing type should not be null when parent part is TypePart

— EXCEPTION #1/2 [AssertionException]
Message = “containing type should not be null when parent part is TypePart”
ExceptionPath = Root.InnerException
ClassName = JetBrains.Util.Assertion+AssertionException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.RdCore
StackTraceString = “
 at JetBrains.Util.Assertion.Fail(String message)
 at JetBrains.Util.Assertion.Fail(String message)
 at JetBrains.Util.Assertion.NotNull[T](T value, String message)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdderBase.CheckTypeParameters(TypePart part, TypeElement typeElement)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdderBase.FindMergable(IEnumerable`1 types, TypePart part)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdderBase.CreateAndAddTypeElement(ITrieView node, TypePart part)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdder.ProcessTypePart(ITrieView view, TypePart part)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdderBase.Process(Part part)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdderBase.Process(Part part)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdderBase.Process(Part part)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdderBase.Process(Part part)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.TrieAdderBase.Process(PartsTree partsTree)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.SymbolCache.UpdateTrie(CacheTrieNode root, PsiLanguageType languageType, IPsiModule psiModule, PartsTree oldTree, PartsTree newTree)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.SymbolCache.CommitPartsTree(IPsiSourceFile sourceFile, IList`1 newPartsTrees, IList`1 languagesToRemove, Boolean isRollback, Boolean underTransaction, Boolean fireEvent)
 at JetBrains.ReSharper.Psi.Caches.SymbolCache.SymbolCache.Merge(IPsiSourceFile sourceFile, Object builtPart)
 at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.MergeProjectFile(IPsiSourceFile sourceFile, Int64 timestamp, IList`1 part)
 at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClass13_0.<ExecuteUpdate>b__2(KeyValuePair`2 pair)
 at JetBrains.ReSharper.Psi.Caches.Jobs.CacheJobService2.<>c__DisplayClass36_0`1.<ExecuteSplittedWriteActivity>b__2()
 at JetBrains.Util.Logging.Logger.Catch(Action action)


— Outer —

— EXCEPTION #2/2 [LoggerException]
Message = “containing type should not be null when parent part is TypePart”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 7 Build 112.0.20180401.0-eap07”
Data.SubProducts.#0 = “JetBrains TeamCity Add-in 2018.1 EAP 7 Build 2018.1.20180401.0-eap07”
Data.SubProducts.#1 = “JetBrains ReSharper 2018.1 EAP 7 Build 2018.1.20180401.0-eap07”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave12-qx-22-nuget-files::3220d628fd9660df3b2c2d7e1e24ccdbb39bb4d8

Data.VsVersion = 15.6.27428.2027
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
 at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex)
 at JetBrains.Util.LoggerBase.Log(LoggingLevel level, String message, Exception ex)
 at JetBrains.Util.Logging.LogEx.Error(ILog this, Exception ex, String message)
 at JetBrains.Util.Logging.Logger.LogException(Exception ex)
 at JetBrains.Util.Logging.Logger.Catch(Action action)
 at JetBrains.ReSharper.Psi.Caches.Jobs.CacheJobService2.<>c__DisplayClass36_0`1.<ExecuteSplittedWriteActivity>b__1()
 at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher[T](Func`1 action)
 at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass34_0`1.<Create>b__1(Object state)
 at System.Threading.Tasks.Task`1.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.ReentrancyGuardTaskScheduler.ExecuteInternal(Task task)
 at JetBrains.Application.Threading.Tasks.ReentrancyGuardTaskScheduler.<>c__DisplayClass9_0.<QueueTask>b__1()
 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-469164: Rider doesn't recognize Startup.cs and Controller's methods as used in a minimal ASP.NET Core application

$
0
0
Reporter Nikita Tsukanov (kekekeks) Nikita Tsukanov (kekekeks)
Created Apr 8, 2018 4:16:11 PM
Updated Apr 9, 2018 1:32:46 PM
Subsystem Code Analysis - C#
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

App is perfectly operational, but Rider shows "Method is never used" warnings, see attached image.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.0.0" />
    <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.0.2" />
  </ItemGroup>
</Project>
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;

namespace AspCoreTestApp
{
    class Program
    {
        static void Main(string[] args)
        { 
            new WebHostBuilder()
                .UseKestrel()
                .UseStartup<Startup>()
                .Build().Run();
        }
    }

    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvcCore();
        }

        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {            
            app.UseMvc();
        }
    }
    
    [Route("")]
    public class MyController : ControllerBase
    {
        [HttpGet("")]
        public object Test()
        {
            return new ContentResult
            {
                Content = "Hello world",
                ContentType = "text/plain"

            };
        }
    }
}

RSRP-469105: "Fix floating point comparison" not working with != operator

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

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

RSRP-469119: Resharper underscores awaitable IDisposable as error

$
0
0
Reporter zhukovskiy (Pzixel) zhukovskiy (Pzixel)
Created Apr 5, 2018 5:57:18 PM
Updated Apr 9, 2018 1:33:58 PM
Resolved Apr 9, 2018 1:33:58 PM
Subsystem Psi - C#
Assignee Andrew Karpov (andrew.karpov)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 RTM
VsVersion All Versions

I'm working on an application that uses EasyMQ to interop with RabbitMQ queue.

This api has asyns and returns an IDisposable.
Here what I have

private async Task<IDisposable> ConsumeBus<T>(IAdvancedBus bus, string queueName, Func<ILogger, T, Task> messageConsumptionTask) where T : class
{
	var queue = await bus.QueueDeclareAsync(queueName).ConfigureAwait(false);
	return bus.Consume(
		queue,
		(body, properties, info) => WrapMessageInQueue(logger => ProcessMessageAsync(logger, body, messageConsumptionTask)));
}

Now I want to use it:

using (await ConsumeBus<Tender>(bus, "procedure_data", ProcessTender).ConfigureAwait(false))

It compiles fine, however, resharper is not able to recognize this code:

But if I introduce new variable it gray it out as unused.

Need more behaviour, because R# considers both options to be bad.

RSRP-468251: Xamarin intests hanging up

$
0
0
Reporter Evgeny Ulanov (evgeny.ulanov) Evgeny Ulanov (evgeny.ulanov)
Created Feb 5, 2018 11:30:47 PM
Updated Apr 9, 2018 1:47:15 PM
Resolved Apr 9, 2018 1:47:15 PM
Subsystem Internals
Assignee Evgeny Ulanov (evgeny.ulanov)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.2
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-469165: Support `private protected` access level of C# 7.2

$
0
0
Reporter JasonMing (JasonMing) JasonMing (JasonMing)
Created Apr 7, 2018 9:36:41 AM
Updated Apr 9, 2018 1:58:05 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2017.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

Version: RD-173.3994.2442
Timezone: Asia/Shanghai
Evaluation: false
Environment: RD-173.3994.2442, JRE 1.8.0_152-release-1024-b10x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.3 unknown, screens 1440x900; Retina

According to C# 7.2 specification, private protected is used to limit the member can only be accessed from the derived classes in the same assembly, i.e., protected AND internal.

But now, rider reports it as syntax error.

RSRP-448507: Member imported through "using static" is incorrectly identified as a namespace name

$
0
0
Reporter Andrey Shchekin (ashmind) Andrey Shchekin (ashmind)
Created Sep 24, 2015 9:15:43 AM
Updated Apr 9, 2018 2:01:05 PM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 9.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Example:
namespace X {}
enum E { X }

namespace Y {
using static E;

public class C {
private E e = X; // R# Error: Namespace name is not valid at this point
}
}

RSRP-464801: Refactor Make Static needs mnemonic

$
0
0
Reporter Sam Rueby (Sam.Rueby) Sam Rueby (Sam.Rueby)
Created May 16, 2017 9:26:47 PM
Updated Apr 9, 2018 2:20:28 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed In Branch
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions


It's very difficult to select "Introduce parameters from the following expressions" without touching the mouse and it's killing my refactoring vibe :)

RSRP-457952: 'Show Only' doesn't work for loaded issues report

$
0
0
Reporter Maltseva Ekaterina (Maltseva.Ekaterina) Maltseva Ekaterina (Maltseva.Ekaterina)
Created Apr 12, 2016 4:28:23 PM
Updated Apr 9, 2018 2:39:33 PM
Resolved Apr 9, 2018 2:39:14 PM
Subsystem Code Analysis - Find Code Issues
Assignee Maltseva Ekaterina (Maltseva.Ekaterina)
Priority Critical
State Verified
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Find issues for any solution - the tab Inspection Results is opened
2. Export the report to XML
3. Select ReSharper > Inspect > Load Saved Issues Report and load the previously saved report
4. Select in 'Group by' type 'Issue Type and File', select one of the type -> right click an 'Show Only...' - nothing happens

RSRP-469131: folder == null

$
0
0
Reporter Mikhail Filippov (Mikhail.Filippov) Mikhail Filippov (Mikhail.Filippov)
Created Apr 6, 2018 3:10:24 PM
Updated Apr 9, 2018 3:08:21 PM
Subsystem JavaScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Exception
Fix version 2018.1.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
JetBrains JetBrains Rider 2018.1 Build RD-181.4379.725 Date 2018-04-06T06:55:22.523+0000
--- EXCEPTION #1/2 [AssertionException]
Message = “folder == null”
ExceptionPath = Root.InnerException
ClassName = JetBrains.Util.Assertion+AssertionException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.RdCore
StackTraceString = “
at JetBrains.Util.Assertion.Fail (System.String message) [0x00006] in <a4879ceeec054d46b47b42f0257d9858>:0
at JetBrains.Util.Assertion.AssertNotNull (System.Object condition, System.String message) [0x00003] in <a4879ceeec054d46b47b42f0257d9858>:0
at JetBrains.ProjectModel.ProjectUtil.GetPersistentID (JetBrains.ProjectModel.IProjectItem projectItem) [0x001b9] in <c46976f6d9c34efabbee1d6d297b1a60>:0
at JetBrains.ProjectModel.ProjectItemBase+<>c.<.cctor>b__54_0 (JetBrains.ProjectModel.ProjectItemBase item) [0x00000] in <c46976f6d9c34efabbee1d6d297b1a60>:0
at JetBrains.ProjectModel.ProjectItemBase.GetPersistentID () [0x00008] in <c46976f6d9c34efabbee1d6d297b1a60>:0
at JetBrains.ReSharper.Psi.Modules.ExternalFileModules.ExternalFilesSet+<>c.<Save>b__16_2 (System.Linq.IGrouping`2[TKey,TElement] g) [0x0000e] in <89b4f82a34cb4e9ebdf5d10555f70ca9>:0
at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].ToList () [0x0001b] in <b52a32dea95a44fbb3d21b4a1d04868f>:0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <b52a32dea95a44fbb3d21b4a1d04868f>:0
at JetBrains.Util.CollectionUtil.AsList[T] (System.Collections.Generic.IEnumerable`1[T] enumerable) [0x00018] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.ReSharper.Psi.Modules.ExternalFileModules.ExternalFilesSet.<Save>b__16_0 (System.IO.BinaryWriter writer) [0x000a2] in <89b4f82a34cb4e9ebdf5d10555f70ca9>:0
at JetBrains.Util.FileSystemPathOpenEx.WriteBinaryStreamDenyWrite (JetBrains.Util.FileSystemPath path, System.Action`1[T] λWrite) [0x00030] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Util.FilePersistence.SafeFileThrowAwayAccess+<>c__DisplayClass5_0.<Save>b__0 () [0x00000] in <384c7c00a8ff4db3ac07c63ba1b6886d>:0
at JetBrains.Util.FilePersistence.SafeFileThrowAwayAccess.SafeSafe (System.Action write) [0x0003e] in <384c7c00a8ff4db3ac07c63ba1b6886d>:0
at JetBrains.Util.FilePersistence.SafeFileThrowAwayAccess.Save (System.Action`1[T] write) [0x00014] in <384c7c00a8ff4db3ac07c63ba1b6886d>:0
at JetBrains.ReSharper.Psi.Modules.ExternalFileModules.ExternalFilesSet.Save (JetBrains.Util.FilePersistence.SafeFileThrowAwayAccess filesAccess) [0x00000] in <89b4f82a34cb4e9ebdf5d10555f70ca9>:0
at JetBrains.ReSharper.Psi.Modules.ExternalFileModules.DependentFilesModuleFactory.FlushChanges (System.Boolean fireChange) [0x00042] in <89b4f82a34cb4e9ebdf5d10555f70ca9>:0
at JetBrains.ReSharper.Psi.Modules.ExternalFileModules.DependentFilesModuleFactory.JetBrains.Application.changes.IChangeProvider.Execute (JetBrains.Application.changes.IChangeMap changeMap) [0x0003e] in <89b4f82a34cb4e9ebdf5d10555f70ca9>:0
at JetBrains.Application.changes.ChangeManagerImpl+<>c__DisplayClass21_0.<InvokeOrderedDependentProviders>b__0 (JetBrains.Application.Progress.IProgressIndicator pro) [0x00017] in <ce0f5542458b4308b4535ddb2cadac4e>:0


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “folder == null”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.LoggerBase.Log (JetBrains.Util.LoggingLevel level, System.String message, System.Exception ex) [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Util.Logging.LogEx.Error (JetBrains.Util.Logging.ILog this, System.Exception ex, System.String message) [0x00000] in <a4879ceeec054d46b47b42f0257d9858>:0
at JetBrains.Util.Logging.Logger.LogException (System.Exception ex) [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Application.changes.ChangeManagerImpl+<>c__DisplayClass21_0.<InvokeOrderedDependentProviders>b__0 (JetBrains.Application.Progress.IProgressIndicator pro) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.Progress.SimpleTaskExecutor.ExecuteTaskTrivial (System.Action`1[T] task) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.Progress.SimpleTaskExecutor.JetBrains.Application.Progress.ITaskExecutor.ExecuteTask (System.String name, JetBrains.Application.Progress.TaskCancelable cancelable, System.Action`1[T] task) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.changes.ChangeManagerImpl.InvokeOrderedDependentProviders (JetBrains.Application.Progress.ITaskExecutor executor, System.Collections.Generic.IEnumerable`1[T] dependentProviders, JetBrains.Application.changes.ChangeMap changeMap) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.changes.ChangeManagerImpl.OnProviderChanged (JetBrains.Application.changes.IChangeProvider changeProvider, System.Object change, JetBrains.Application.Progress.ITaskExecutor executor) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeManager+<>c__DisplayClass8_0.<EndTransaction>b__0 () [0x00000] in <c46976f6d9c34efabbee1d6d297b1a60>:0
at JetBrains.Application.changes.ChangeManagerImpl.ExecuteAfterChange (System.Action action) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeManager.EndTransaction (JetBrains.ProjectModel.Impl.ProjectModelBatchChange projectModelBatchChange, JetBrains.Application.Progress.ITaskExecutor executor) [0x00000] in <c46976f6d9c34efabbee1d6d297b1a60>:0
at JetBrains.ProjectModel.Impl.ProjectModelBatchChange.Commit (JetBrains.Application.Progress.ITaskExecutor executor) [0x00000] in <c46976f6d9c34efabbee1d6d297b1a60>:0
at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeCookie.Dispose () [0x00000] in <c46976f6d9c34efabbee1d6d297b1a60>:0
at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHostSync.AddOrUpdateProjectRecursively (JetBrains.ProjectModel.ProjectsHost.Impl.ProjectHostChange change, System.Boolean initializing) [0x00000] in <3d9f66023e234524a4b127679f3a3aa2>:0
at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHostSync.UpdateProjects (JetBrains.ProjectModel.ProjectsHost.Impl.ProjectStructureChange changes) [0x00000] in <3d9f66023e234524a4b127679f3a3aa2>:0
at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHost.<LoadAndSync>b__28_4 (JetBrains.ProjectModel.ProjectsHost.Impl.ProjectStructureChange change) [0x00000] in <3d9f66023e234524a4b127679f3a3aa2>:0
at JetBrains.ReSharper.Host.Features.ProjectModel.RiderProjectHostExecutor+<>c__DisplayClass5_1.<Execute>b__1 () [0x00000] in <48cf077d13a04826bf4c00a0ff07e6a7>:0
at JetBrains.Threading.ReentrancyGuardEx+<>c__DisplayClass0_0.<Queue>b__3 () [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Threading.ReentrancyGuard.Execute (System.String name, System.Action action) [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions () [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Threading.JetDispatcher+Closure.Execute () [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Util.Concurrency.UnixJetDispatcher+UnixJetDispatcherStaticMethods.Run () [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Threading.JetDispatcher.Run () [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.ReSharper.Host.Product.ReSharperHostMain.Main (JetBrains.DataFlow.Lifetime lifetime, JetBrains.ReSharper.Host.Features.Settings.IReSharperHostSettings settings, JetBrains.Util.ILogger logger, JetBrains.ReSharper.Host.Features.Components.ShellProtocol protocol, JetBrains.Rider.Model.RdModelRoot modelRoot, JetBrains.Application.Environment.ApplicationShutdownRequests shutdownRequests) [0x00000] in <48cf077d13a04826bf4c00a0ff07e6a7>:0
at System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception& ) [0x00000] in <4343323a00204b0b9f5e7ca3dfd716be>:0
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <4343323a00204b0b9f5e7ca3dfd716be>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <4343323a00204b0b9f5e7ca3dfd716be>:0
at JetBrains.Application.Environment.RunsPublicStaticIntMain+<>c__DisplayClass0_0.<.ctor>b__0 () [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Util.Logging.Logger.Catch (System.Action action) [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Application.Threading.IThreadingEx+<>c__DisplayClass13_1.<ExecuteOrQueueWhenNotGuarded>b__2 () [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Threading.JetDispatcher+Closure.Execute () [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Util.Concurrency.UnixJetDispatcher+UnixJetDispatcherStaticMethods.Run (System.Func`1[TResult] condition, System.TimeSpan timeout, System.Boolean bThrowOnTimeout) [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Threading.JetDispatcher.Run (System.Func`1[TResult] condition, System.TimeSpan timeout, System.Boolean bThrowOnTimeout) [0x00000] in <a96701baf635451f927f6ea91b284a48>:0
at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop (JetBrains.Application.Components.IComponentContainer containerEnv) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.Environment.HostParameters.MessagePumpMainLoopHostMixin.JetBrains.Application.Environment.HostParameters.IRunMainLoopHostMixin.RunMainLoop (JetBrains.Application.Components.ComponentContainer containerEnv) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop (JetBrains.Application.Components.ComponentContainer containerEnv) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.Environment.JetEnvironment.InternalRun (JetBrains.Application.Environment.HostParameters.JetHostParametersCaller host, JetBrains.Application.Components.ComponentContainer containerEnv) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.Environment.JetEnvironment.CreateAndRun (JetBrains.Application.Environment.JetHostItems+Full hostparams) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.Application.Environment.JetHostItems.CreateAndRun (JetBrains.Application.Environment.JetHostItems+Full input) [0x00000] in <ce0f5542458b4308b4535ddb2cadac4e>:0
at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.MainX (System.Reflection.Assembly assembly, JetBrains.Application.BuildScript.Application.HostInfo hostInfo, System.String[] args) [0x00000] in <48cf077d13a04826bf4c00a0ff07e6a7>:0
at JetBrains.ReSharper.Host.Product.ReSharperHostProgram+<>c.<Main>b__0_0 (JetBrains.DataFlow.Lifetime lifetime) [0x00000] in <48cf077d13a04826bf4c00a0ff07e6a7>:0
at JetBrains.DataFlow.Lifetimes.Using[TRetVal] (System.Func`2[T,TResult] λ) [0x00000] in <a4879ceeec054d46b47b42f0257d9858>:0
at JetBrains.ReSharper.Host.Product.ReSharperHostProgram.Main () [0x00000] in <48cf077d13a04826bf4c00a0ff07e6a7>:0


last.action = EditorEscape

app.eap = true
app.internal = true
app.build = RD-181.4379.725
app.version.major = 2018
app.version.minor = 1
app.build.date = 2018-04-06T06:55:22.523+0000
app.build.date.release = 2017-12-27T00:00:22.523+0000
app.build.date.release = 2017-12-27T00:00:22.523+0000
app.compilation.timestamp = null
app.product.code = RD

os.name = Mac OS X
java.version = 1.8.0_152-release
java.vm.vendor = JetBrains s.r.o

UIUtil.isRetina = true
UIUtil.isAppleRetina = false
JBUI.isHiDPI() = false
ImageScaleFactor = 2

RSRP-468881: JS properties renaming bug

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Mar 26, 2018 6:30:43 PM
Updated Apr 9, 2018 3:09:40 PM
Subsystem JavaScript
Assignee Nikolay Glushakov (Nikolay.Glushakov)
Priority Normal
State Submitted
Type Bug
Fix version 2018.1.1
Affected versions 2017.3.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I have an issue when trying to rename the properties of JS objects.
I place the cursor on the property i need to rename, hit F2 and fill the new name into the dialog input. The renaming process starts but changes the name only in the place of the cursor. Other places in the scope remain unrenamed. Please review the attached video and the code file.

RSRP-468051: TypeScript: false positives on 'Cannot resolve symbol' in ReactJS application

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Jan 22, 2018 8:34:10 PM
Updated Apr 9, 2018 3:11:16 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Critical
State Submitted
Type Bug
Fix version 2018.2
Affected versions 2017.3.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Open attached solution

Result: plenty of 'Cannot resolve symbol' errors:

RSRP-469102: What's new in ReSharper 2018.1: Step 36.3 (Unit tests filter) no space between "/u" and "pd" mentioned.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 5, 2018 11:54:00 AM
Updated Apr 9, 2018 3:24:19 PM
Subsystem Tutorials
Assignee Alexey Totin (Alexey.Totin)
Priority Normal
State Submitted
Type Bug
Fix version 2018.1.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 7 D 12.0.20180405.062054-eap07

  1. Inspect Step 36.3 (Unit tests filter).

Actual result:
No word about space between "/u" and "pd". It could lead to confusion and "/upd" string as result.

Expected result:
Space is mentioned.

RSRP-469100: What's new in ReSharper 2018.1: Step 8 (Non-trailing arguments) "add missing argument name" not disabled when follow instructions.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 5, 2018 11:24:12 AM
Updated Apr 9, 2018 3:24:34 PM
Subsystem Tutorials
Assignee Alexey Totin (Alexey.Totin)
Priority Show-stopper
State Submitted
Type Bug
Fix version 2018.1.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 7 D 12.0.20180405.062054-eap07.

  1. Follow the instructions from Step 8 (Non-trailing arguments) to disable "add missing argument name" behavior.
  2. Press Ctrl+Alt+S.

Actual result:
"Add missing argument name" behavior is not disabled - all argument's names are added to code.

Expected result:
Code is not changed - argument's names are not added.

NOTE:
Code Editing | [language] | Code Style seems more appropriate for that purpose.

RSRP-462680: Harmonize styles in formatter settings UI

$
0
0
Reporter Dmitry Osinovsky (Dmitry.Osinovsky) Dmitry Osinovsky (Dmitry.Osinovsky)
Created Jan 23, 2017 9:02:23 PM
Updated Apr 9, 2018 3:25:36 PM
Resolved Apr 6, 2018 6:01:57 PM
Subsystem UI
Assignee Daniel Degtyarev (daniel.degtyarev)
Priority Critical
State Fixed
Type Cosmetics
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
Currently we have the following problems:
1. There are four comboboxes, each in its own style: EnumValueEditorView, FlaggedEnumValueEditorView (uses JetBrains.UI.Controls.Common.ComboBox), SeverityComboBox (used from CodeStylePageView), OrderedItemCollectionEditorView
2. There is also a NumericValueEditorView, which also has arrows (up and down), and ideally those arrows should have common style with combo boxes.
3. All controls (mentioned above + BoolValueEditorView, SimpleStringValueEditorView) ideally should modify (or do not modify) background color on disabling in the same way. Currently some comboboxes set Opacity to 0.65 on disable, which modifies background color. Other controls do not modify background color on disabling. To reproduce the issue, create a simple .editorconfig (for example, take one which lives in the root folder of R#/dotnet solution) and go to C# Tabs and indents page and try to turn on/off the checkbox called "Use indent style and size from VS".

RSRP-467119: Exception while typing in validated JSON

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

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

and the following schema:

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

Stacktrace:

Index was outside the bounds of the array.

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


--- Outer ---

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

Data.VsVersion = 15.4.27004.2009
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass10.<>c__DisplayClass13.<DoHighlighting>b__b(IDaemonStage stage)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass10.<>c__DisplayClass1d.<DoHighlighting>b__e()
at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass14.<>c__DisplayClass16.<EnqueueDependentJobs>b__12()
at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClasse.<Create>b__a(Object state)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued)
at System.Threading.Tasks.TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued)
at System.Threading.Tasks.Task.WrappedTryRunInline()
at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at JetBrains.Application.Threading.Tasks.TaskBarrier.DisposeUnmanagedResources()
at JetBrains.Util.SafeDisposable.DisposeInternal()
at JetBrains.Util.SafeDisposable.Dispose()
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass10.<DoHighlighting>b__9()
at JetBrains.Application.Notifications.PerformanceUserNotifications.<>c__DisplayClass7.<WithPerformanceNotification>b__6(Lifetime lifetime)
at JetBrains.DataFlow.Lifetimes.Using(Lifetime parent, Action`1 λ)
at JetBrains.Application.Notifications.PerformanceUserNotifications.WithPerformanceNotification(TimeSpan performanceThreshold, String title, String body, Action action)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.DoHighlighting(DaemonProcessKind processKind, Action`1 commiter)
at JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.DoHighlighting(Boolean globalAnalysisStages)
at JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.<>c__DisplayClassb.<EnqueueHighlightingJob>b__a()
at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClasse.<Create>b__a(Object state)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
at JetBrains.Application.Threading.Tasks.SingleThreadExecutorView.InternalExecute(Task task)
at JetBrains.Application.Threading.Tasks.SingleThreadExecutorView.ThreadProc()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

See also DEXP-307235

RSRP-466133: Incorrect handling of weak types

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

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

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

interface ITestB extends ITestA {
optionalField?: string;
}

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

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

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

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

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

RSRP-398760: JavaScript InconsistentNaming warning on Prototype pattern

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


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

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

return Foo;
})();

RSRP-469092: What's new in ReSharper 2018.1: MSTest.TestFramework package is not restored. File path is too long.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 4, 2018 6:47:11 PM
Updated Apr 9, 2018 3:27:05 PM
Resolved Apr 5, 2018 1:51:07 PM
Subsystem Tutorials
Assignee Alexey Totin (Alexey.Totin)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.2
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 7 D 12.0.20180404.035655-eap07d.

  1. Run "What's new in ReSharper 2018.1" tutorial.

Actual result:
For users with long names the restoration of nuget packages fails ("The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters").
Path to tutorial: "C:\Users{UserName}\AppData\Local\JetBrains\Transient\ReSharperPlatformVs15\v12_3f3919c0\ReSharperTutorials\Tutorials\T7"

Expected result:
Nuget packages restored.

NOTE:
Maybe path could be simplified.
Relates to NuGet and long file name support: https://github.com/NuGet/Home/issues/3324.

Viewing all 106942 articles
Browse latest View live


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