Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The formatting doesn't appear to work with the resharper CLI. #20

Open
liazy opened this issue Apr 23, 2019 · 0 comments
Open

The formatting doesn't appear to work with the resharper CLI. #20

liazy opened this issue Apr 23, 2019 · 0 comments

Comments

@liazy
Copy link

liazy commented Apr 23, 2019

I have done the following:

At first I got a file not found error regarding JetBrains.Platform.VisualStudio.Core.dll so I also copied in the package JetBrains.Platform.VisualStudio.183.0.20190304.43214.

Then I got this:


--- 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.Psi.CSharp
StackTraceString = "
  at JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ArrayCreationExpression.SetArrayType(IArrayType arrayType)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapArrayCreationToBuiltInType(IArrayCreationExpression arrayCreationExpression)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.SwapToBuiltInTypeAlias(ITreeNode node)
     at StyleCop.ReSharper.CodeCleanup.Rules.ReadabilityRules.ExecuteAll(ICSharpFile file, Settings settings)
     at StyleCop.ReSharper.CodeCleanup.StyleCopCodeCleanupModule.<>c__DisplayClass11_0.<InternalProcess>b__0(Lifetime lifetime)
     at JetBrains.DataFlow.Lifetimes.Using(Action`1 ?)
     at JetBrains.ReSharper.Psi.Transactions.PsiTransactions.Execute(String commandName, Action handler)
"

--- 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.ReSharper.Psi.Transactions.PsiTransactions.Execute(String commandName, Action handler)
     at StyleCop.ReSharper.CodeCleanup.StyleCopCodeCleanupModule.Process(IPsiSourceFile projectFile, IRangeMarker rangeMarker, CodeCleanupProfile profile, IProgressIndicator progressIndicator)
     at JetBrains.ReSharper.Feature.Services.CodeCleanup.CodeCleanup.Run(IPsiSourceFile sourceFile, DocumentRange range, Int32& caret, CodeCleanupProfile profile, IProgressIndicator progressIndicator)
     at JetBrains.ReSharper.Features.Altering.CodeCleanup.CodeCleanupRunner.CleanupFilesWithProgress(ISolution solution, IList`1 files, CodeCleanupProfile cleanupProfile, IProgressIndicator progressIndicator)
     at JetBrains.ReSharperAutomationTools.CommandLine.Common.Console.BatchTool.Progress.ToolTaskExecutor.ExecuteTask(String taskName, TaskCancelable cancelable, Action`1 task)
     at JetBrains.ReSharper.Features.Altering.CodeCleanup.CodeCleanupRunner.CleanupFiles(ICodeCleanupFilesProvider cleanupFilesCollector, CodeCleanupProfile cleanupProfile)
     at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks th?s, Action F)
     at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
     at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
     at JetBrains.Threading.ReentrancyGuardEx.ExecuteOrQueue(ReentrancyGuard th?s, Lifetime lifetime, String name, Action F, TaskPriority priority)
     at JetBrains.CommandLine.CleanupCode.Unattended.CodeEditing.CleanupCodeLauncher.Run()
     at JetBrains.CommandLine.CleanupCode.Unattended.ConsoleCodeEditing.CleanupCodeProductMain.Main(Lifetime lifetime, IThreading invocator, IComponentContainer container, IShellLocks shellLocks, ILogger logger, ICleanupCodeSettings settings, IProductCommandLineArguments argumentsRaw)
     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()
     at JetBrains.Util.Logging.Logger.Catch(Action action)
     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 MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
     at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
     at System.Windows.Threading.DispatcherOperation.Invoke()
     at System.Windows.Threading.Dispatcher.ProcessQueue()
     at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
     at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
     at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
     at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
     at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at 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 ?)
     at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv)
     at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
     at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
     at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
     at JetBrains.ReSharperAutomationTools.CommandLine.Common.Application.CommandLineProgram.Main(Assembly assembly, Type environmentZoneType, HostInfo hostInfo, ICommandLineProductInfo productInfo, String[] args, IJetHostMixin[] mixins)
     at JetBrains.ReSharperAutomationTools.CommandLine.Common.Application.CommandLineProgram.Run[TZone,TProductInfo](String productHostShortName, String[] args)
     at JetBrains.CommandLine.CleanupCode.CleanupCodeProgram.Main(String[] args)
"

When I look at the diff I can see less changes than when I do a code cleanup within visual studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant