ionic-team / vscode-extension

15 stars 0 forks source link

Inconsistent Package Version Display in Ionic VS Code Plugin #114

Closed joptimus closed 1 year ago

joptimus commented 1 year ago

Description: The Ionic VS Code plugin exhibits inconsistent behavior regarding package version display between the Windows and Mac versions. On Windows, when viewing the packages, only the currently installed version is shown without any indication of a higher stable version. Conversely, the Mac version displays the latest stable version available for upgrade.

Steps to Reproduce:

  1. Install the Ionic VS Code plugin.
  2. Create a new blank Angular project using the extension.
  3. View the package information.

Expected Behavior: On both Windows and Mac, the package information should be displayed consistently, showing the latest stable version available for upgrade.

Actual Behavior: On Windows:

On Mac:

Additional Information: The issue was reproducible by following the steps above. Also I can separately run the command npm outdated inside the terminal and it works

Environment:

dtarnawsky commented 1 year ago

Thanks for the bug report @joptimus, I'll take a look at this today to see if can easily reproduce. One thing to try is to remove node_modules and re-run npm install to see if this fixes the problem.

joptimus commented 1 year ago

@dtarnawsky I just tried this and still same issue. I can run npm outdated inside the project and it will display the packages and latest versions. I also updated to npm version 9.6.6 to see if that had any impact however it still displays same issue.

dtarnawsky commented 1 year ago

Hey @joptimus, can you choose Help > Toggle Developer Tools and see what the real error that is logged when npm outdated is run. In testing out on Windows I don't see this issue but it may be something with the way I have node installed.

joptimus commented 1 year ago

@dtarnawsky here is what the console readout shows when I open the extension

image

joptimus commented 1 year ago

Here is when I reloaded VSCode and opened it again

image

dtarnawsky commented 1 year ago

That looks like it's a bad install of Node on a Windows machine. There's a stack overflow post on how to fix this: https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc

Alternatively, I would recommend uninstalling Node (and make sure c:\program files\nodejs is deleted) then reinstall.

joptimus commented 1 year ago

Thank you @dtarnawsky ! I uninstalled Node and reinstalled, everything works good now