madskristensen / NpmTaskRunner

Visual Studio extension
Other
88 stars 32 forks source link

Can't open Task Runner Explorer pane in VS 2022 #82

Closed Eli-Black-Work closed 2 years ago

Eli-Black-Work commented 3 years ago

Installed product versions

Description

When I try to open the Task Runner Explorer, nothing happens.

Steps to recreate

  1. In VS 2022, Click View -> Other Windows -> Task Runner Explorer
  2. On my computer, nothing happens
  3. Pressing Ctrl+Alt+Backspace also does not cause the Task Runner Explorer pane to appear

Not sure what other information I can provide that might be useful 🙂 Maybe some logs?

FreeFrags commented 3 years ago

Unfortunately I have the same issue.

madskristensen commented 3 years ago

@sayedihashimi is there a known issue with TRX in Preview 2?

sayedihashimi commented 3 years ago

@jimmylewis?

jimmylewis commented 3 years ago

Confirmed this is an issue in Preview 2. I have a PR out to fix it for Preview 3.

aszalacinski commented 3 years ago

What's weird is that a co-worker of mine is having the issue but I am not... he is able to open the Task Runner by right clicking on the package.json file and selecting Task Runner from there.

jwbats commented 3 years ago

Thanks for the tip, @aszalacinski. It works for me, too. That's a nice workaround for the time being.

Eli-Black-Work commented 3 years ago

@jimmylewis Has your PR been removed?

Eli-Black-Work commented 3 years ago

I've upgraded to VS 2022Preview 3 and now I can successfully open the Task Runner Explorer window but it doesn't recognize my package.json file, so now tasks are shown XD

Can anyone else confirm?

jwbats commented 3 years ago

@Bosch-Eli-Black

Happens to me, too. Sometimes, the tasks don't show on opening the project. But you can click the refresh icon to make'em show up.

My tasks do automatically start running, after upgrading to preview 3.

ascott18 commented 2 years ago

This worked for me in preview 4, but after upgrading to preview 5 it now crashes VS entirely (crash to desktop).

jwbats commented 2 years ago

Same here. Created a ticket about it in the dev community.

Sjark commented 2 years ago

Crashes on startup for me too in VS 2022 Preview 5

itniels commented 2 years ago

Crashes for me too, just updated to VS 2022 Preview 5 as well.

It is crashing for me when opening a project that contains a package.json file. Seems to crash when it tries to load the file.

madskristensen commented 2 years ago

A fix is coming soon

madskristensen commented 2 years ago

Test the new version for VS 2022 and let me know if it works for you.

itniels commented 2 years ago

@madskristensen still crashes on startup unfortunately

Sjark commented 2 years ago

@madskristensen Just installed the latest version. VS Crashes just after starting an NPM Task set to run on project load.

patricsjoo commented 2 years ago

@madskristensen Hi Mads, I download latest version 1.5.98 and it still crashes for me. I'm have VS 2022 RC.

Update: This is the log from Event Log: Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentException at System.Windows.DependencyObject.ValidateSources(System.Windows.DependencyObject, System.Windows.DependencySource[], System.Windows.Expression) at System.Windows.Expression.ChangeSources(System.Windows.DependencyObject, System.Windows.DependencyProperty, System.Windows.DependencySource[]) at System.Windows.Data.BindingExpressionBase.ChangeSources(MS.Internal.Data.WeakDependencySource[]) at MS.Internal.Data.ClrBindingWorker.ReplaceDependencySources() at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean, Boolean, Boolean) at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32, System.ComponentModel.ICollectionView, System.Object, Boolean) at MS.Internal.Data.ClrBindingWorker.AttachDataItem() at System.Windows.Data.BindingExpression.Activate(System.Object) at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt) at System.Windows.Data.BindingExpression.AttachOverride(System.Windows.DependencyObject, System.Windows.DependencyProperty) at System.Windows.Data.BindingExpressionBase.OnAttach(System.Windows.DependencyObject, System.Windows.DependencyProperty) at System.Windows.StyleHelper.GetInstanceValue(System.Windows.UncommonField1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.DependencyObject, System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, Int32, System.Windows.DependencyProperty, Int32, System.Windows.EffectiveValueEntry ByRef) at System.Windows.StyleHelper.GetChildValueHelper(System.Windows.UncommonField1<System.Collections.Specialized.HybridDictionary[]>, MS.Utility.ItemStructList1<System.Windows.ChildValueLookup> ByRef, System.Windows.DependencyProperty, System.Windows.DependencyObject, MS.Internal.FrameworkObject, Int32, Boolean, System.Windows.EffectiveValueEntry ByRef, System.Windows.ValueLookupType ByRef, System.Windows.FrameworkElementFactory) at System.Windows.StyleHelper.GetChildValue(System.Windows.UncommonField1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.DependencyObject, Int32, MS.Internal.FrameworkObject, System.Windows.DependencyProperty, MS.Utility.FrugalStructList1<System.Windows.ChildRecord> ByRef, System.Windows.EffectiveValueEntry ByRef, System.Windows.ValueLookupType ByRef, System.Windows.FrameworkElementFactory) at System.Windows.StyleHelper.GetValueFromTemplatedParent(System.Windows.DependencyObject, Int32, MS.Internal.FrameworkObject, System.Windows.DependencyProperty, MS.Utility.FrugalStructList1 ByRef, System.Windows.FrameworkElementFactory, System.Windows.EffectiveValueEntry ByRef) at System.Windows.StyleHelper.ApplyTemplatedParentValue(System.Windows.DependencyObject, MS.Internal.FrameworkObject, Int32, MS.Utility.FrugalStructList1<System.Windows.ChildRecord> ByRef, System.Windows.DependencyProperty, System.Windows.FrameworkElementFactory) at System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(System.Windows.DependencyObject, MS.Internal.FrameworkObject, Int32, MS.Utility.FrugalStructList1 ByRef, Boolean, System.Windows.FrameworkElementFactory) at System.Windows.FrameworkTemplate.InvalidatePropertiesOnTemplate(System.Windows.DependencyObject, System.Object) at System.Windows.FrameworkTemplate.HandleBeforeProperties(System.Object, System.Windows.DependencyObject ByRef, System.Windows.DependencyObject, System.Windows.FrameworkElement, System.Windows.Markup.INameScope) at System.Windows.FrameworkTemplate+<>c__DisplayClass45_0.b__2(System.Object, System.Xaml.XamlObjectEventArgs) at System.Xaml.XamlObjectWriter.OnBeforeProperties(System.Object) at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(MS.Internal.Xaml.Context.ObjectWriterContext) at System.Xaml.XamlObjectWriter.WriteEndObject() at System.Windows.FrameworkTemplate.LoadTemplateXaml(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter)

Exception Info: System.Windows.Markup.XamlParseException at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri) at System.Windows.FrameworkTemplate.LoadTemplateXaml(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter) at System.Windows.FrameworkTemplate.LoadTemplateXaml(System.Xaml.XamlObjectWriter) at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(System.Windows.DependencyObject, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector, System.Collections.Generic.List1<System.Windows.DependencyObject>, System.Windows.UncommonField1) at System.Windows.FrameworkTemplate.LoadContent(System.Windows.DependencyObject, System.Collections.Generic.List1<System.Windows.DependencyObject>) at System.Windows.StyleHelper.ApplyTemplateContent(System.Windows.UncommonField1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.DependencyObject, System.Windows.FrameworkElementFactory, Int32, System.Collections.Specialized.HybridDictionary, System.Windows.FrameworkTemplate) at System.Windows.FrameworkTemplate.ApplyTemplateContent(System.Windows.UncommonField`1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.FrameworkElement) at System.Windows.FrameworkElement.ApplyTemplate() at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.Grid.MeasureCell(Int32, Boolean) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef) at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.StackPanel.StackMeasureHelper(System.Windows.Controls.IStackMeasure, System.Windows.Controls.IStackMeasureScrollData, System.Windows.Size) at System.Windows.Controls.StackPanel.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size) at System.Windows.Controls.ItemsPresenter.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size) at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.Grid.MeasureCell(Int32, Boolean) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef) at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.ScrollViewer.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size) at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) at System.Windows.UIElement.Measure(System.Windows.Size) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object) at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object) at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

patricsjoo commented 2 years ago

I don't know if this is related. But after cloned the projects and looked at the NuGets It seems that VisualStudioSDK is not release for later than Preview4 of ver 17.0.

madskristensen commented 2 years ago

I opened a bug on the Task Runner Explorer (TRX). I think it is an issue that any extension to TRX will encounter.

madskristensen commented 2 years ago

Please update to the latest version 1.5.99 which should have the fix.

itniels commented 2 years ago

Thank you so much Mads for the fix. Preview 6 just launched today, will v1.5.99 work for this as well? 🙂

Edit) Confirmed working for Preview 6 as well 🙌

patricsjoo commented 2 years ago

@madskristensen It works for me too with v1.5.99 and VS 2022 RC2. Thanks! :)

jwbats commented 2 years ago

The official extension page says we're still on v1.4.97, even though the last update was on October 19th.

Visual Studio isn't showing any available updates on the NPM Task Runner. Or any other extension, for that matter.

Where's v1.5.99 then?

[Edit] Oh, there's a new version for VS 2022.

Got it.

[Edit2] Updates fixed it for me too. Tnx!

madskristensen commented 2 years ago

@patricsjoo Yes, it works for all versions of VS 2022

@jwbats I should have mentioned it was a new separate extension. Sorry

jwbats commented 2 years ago

@madskristensen

You did, I just didn't read it right.

My bad, but it's cool. Glad to be devving in 2022 again!