Vscode-terraform: Version pinning as suggested in Readme results in 404 error

Created on 11 Jun 2020  ยท  9Comments  ยท  Source: hashicorp/vscode-terraform

Not sure this is the right place, please correct me if I'm wrong. Trying to pin to an older version of the plugin as linked in the Readme leads to VS Code failing with a 404 error.

Steps to reproduce:

  • Try to pin to an older version of the extension
  • VSCode will try to list older versions

Expected behaviour:

  • Can select the desired version

Actual behaviour:

  • Error message is shown as attached

I reckon it has something to do with the repo having move and is likely more a VS Code problem. Still, it would be helpful to update the README tho. Maybe there's a way to manually install older versions, but I can't seem to find a packaged release.

Most helpful comment

We added some instructions and links to the previous VSIX's here: https://github.com/hashicorp/vscode-terraform/wiki/Install-a-Pre-transfer-Version

This was an unintended consequence of the VS Code Marketplace transfer process, that you couldn't use the standard downgrade / pinning options.

All 9 comments

I've tested the latest version, but it's not ready for my use-case yet so I need to downgrade to the previous version. I believe the previous version was 1.4.0, but I can only see 1.3.12 under Releases: https://github.com/hashicorp/vscode-terraform/releases

How can we downgrade to the previous version?

upgrading to latest version has caused extension to completely stop working, attempted to downgrade but getting 404

getting 404 error too trying to downgrade...

As temporary solution you can download vsix with previous version from https://marketplace.visualstudio.com/_apis/public/gallery/publishers/HashiCorp/vsextensions/terraform/1.4.0/vspackage and install it manually via code --install-extension HashiCorp.terraform-1.4.0.vsix

EDIT:
Pointed to secure source.

There's a download extension link on the extension page sidebar (under Resources), and it appears you can adjust the version in the download URL, so:

https://marketplace.visualstudio.com/_apis/public/gallery/publishers/HashiCorp/vsextensions/terraform/1.4.0/vspackage

Should be safer than downloading extensions from third-party websites.

VSCode still won't let you downgrade (404 error), but I've just tested the v1.4.0 release in this repo, and it worked fine: https://github.com/hashicorp/vscode-terraform/releases/tag/v1.4.0

We added some instructions and links to the previous VSIX's here: https://github.com/hashicorp/vscode-terraform/wiki/Install-a-Pre-transfer-Version

This was an unintended consequence of the VS Code Marketplace transfer process, that you couldn't use the standard downgrade / pinning options.

Hey all, just a heads up, this actually appears to be an upstream VS Code bug: https://github.com/microsoft/vscode/issues/99699#issuecomment-643379024

We will track the upstream issue in #385 and update there once we have more info.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brodster2 picture brodster2  ยท  5Comments

bnm22 picture bnm22  ยท  6Comments

domenjesenovec picture domenjesenovec  ยท  6Comments

QuinnStevens picture QuinnStevens  ยท  6Comments

vfab picture vfab  ยท  4Comments