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

Improve error message for Windows PS users #680

Merged
merged 2 commits into from Aug 22, 2022
Merged

Improve error message for Windows PS users #680

merged 2 commits into from Aug 22, 2022

Conversation

TylerAldrich
Copy link
Contributor

@TylerAldrich TylerAldrich commented Aug 22, 2022

-- has a different but equally special meaning in PowerShell, and running -- in a command causes PowerShell to treat it specially and it doesn't appear in the programs argv.

In order for architect exec to work nicely in PowerShell, there's only 2 (maybe 3) options:

  1. Ask users to delete architect.ps1 from wherever they npm install it. This makes it so architect on the CLI will use the cmd executable that doesn't have this issue.
  2. Provide this error message so users can self-correct the -- behavior by escaping it
  3. (not realistic) pray that NPM reverses the decision to include a special powershell script when publishing packages. As far as I can tell, this can't be disabled by us

The most realistic fix unless https://github.com/npm/cmd-shim changes is to just provide a detailed error msg for PS users

@tjhiggins tjhiggins merged commit c214870 into rc Aug 22, 2022
@tjhiggins tjhiggins deleted the ps-doubledash branch August 22, 2022 19:06
github-actions bot pushed a commit that referenced this pull request Aug 22, 2022
# [1.24.0-rc.7](v1.24.0-rc.6...v1.24.0-rc.7) (2022-08-22)

### Bug Fixes

* **exec:** Handle case where older version of compose is used and ConfigFiles doesnt exist ([#681](#681)) ([c0112d2](c0112d2))
* **exec:** Improve error message for Windows PS users ([#680](#680)) ([c214870](c214870))
github-actions bot pushed a commit that referenced this pull request Sep 1, 2022
# [1.25.0-rc.1](v1.24.0...v1.25.0-rc.1) (2022-09-01)

### Bug Fixes

* **cli:** convert deployCommand auto-approve ([#685](#685)) ([78f3209](78f3209))
* **cli:** Docker verify improved ([#679](#679)) ([552cd77](552cd77))
* **dev:** Dev command leaves containers running when process exits with an error ([#677](#677)) ([b8e5165](b8e5165))
* **dev:** Fixed host regex that shouldnt have a global match that caused regexp.exec to not work as desired ([#689](#689)) ([1a6428d](1a6428d))
* **dev:** fixing healthcheck liveness probe protocol for port/path ([#678](#678)) ([81e69f0](81e69f0))
* **dev:** Handle edge cases when starting components with pre-existing containers ([9cffb28](9cffb28))
* **exec:** Handle case where older version of compose is used and ConfigFiles doesnt exist ([#681](#681)) ([c0112d2](c0112d2))
* **exec:** Handle terminal resize events in exec ([#675](#675)) ([6ff95a5](6ff95a5))
* **exec:** Improve error message for Windows PS users ([#680](#680)) ([c214870](c214870))
* **subdomain:** 488 prevent nested subdomain ([#674](#674)) ([0445430](0445430))

### Features

* **cli:** 496 consistent boolean flags ([#683](#683)) ([4203c74](4203c74))
* **dev:** Use local SSL for  ([#676](#676)) ([536b38e](536b38e))
* **exec:** 482 pass replica name ([#663](#663)) ([84ce8c5](84ce8c5))
* **register:** add register multiple components and test cases ([#657](#657)) ([2bd1fd2](2bd1fd2))
github-actions bot pushed a commit that referenced this pull request Sep 1, 2022
# [1.25.0](v1.24.0...v1.25.0) (2022-09-01)

### Bug Fixes

* **cli:** convert deployCommand auto-approve ([#685](#685)) ([78f3209](78f3209))
* **cli:** Docker verify improved ([#679](#679)) ([552cd77](552cd77))
* **dev:** Dev command leaves containers running when process exits with an error ([#677](#677)) ([b8e5165](b8e5165))
* **dev:** Fixed host regex that shouldnt have a global match that caused regexp.exec to not work as desired ([#689](#689)) ([1a6428d](1a6428d))
* **dev:** fixing healthcheck liveness probe protocol for port/path ([#678](#678)) ([81e69f0](81e69f0))
* **dev:** Handle edge cases when starting components with pre-existing containers ([9cffb28](9cffb28))
* **exec:** Handle case where older version of compose is used and ConfigFiles doesnt exist ([#681](#681)) ([c0112d2](c0112d2))
* **exec:** Handle terminal resize events in exec ([#675](#675)) ([6ff95a5](6ff95a5))
* **exec:** Improve error message for Windows PS users ([#680](#680)) ([c214870](c214870))
* **subdomain:** 488 prevent nested subdomain ([#674](#674)) ([0445430](0445430))

### Features

* **cli:** 496 consistent boolean flags ([#683](#683)) ([4203c74](4203c74))
* **dev:** Use local SSL for  ([#676](#676)) ([536b38e](536b38e))
* **exec:** 482 pass replica name ([#663](#663)) ([84ce8c5](84ce8c5))
* **register:** add register multiple components and test cases ([#657](#657)) ([2bd1fd2](2bd1fd2))
@github-actions
Copy link

github-actions bot commented Sep 1, 2022

🎉 This PR is included in version 1.25.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants