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

[tsp CLI] CTRL-C ignored when running through tsp init options #5859

Closed
kristapratico opened this issue Feb 5, 2025 · 0 comments · Fixed by #6045
Closed

[tsp CLI] CTRL-C ignored when running through tsp init options #5859

kristapratico opened this issue Feb 5, 2025 · 0 comments · Fixed by #6045
Assignees
Labels
1_0_E2E bug Something isn't working compiler:core Issues for @typespec/compiler triaged:core
Milestone

Comments

@kristapratico
Copy link
Member

TypeSpec compiler v0.65.0-dev.18

Running through the E2E scenarios and was surprised that when I CTRL-C'd when prompted for a project name, that the task still succeeded and created a bunch of files.

Image

Repro steps (hitting CTRL-C at project name prompt):

>krpratic@KRPRATIC:~/typespec-e2e-demo/petstore/spec$ npx tsp init
TypeSpec compiler v0.65.0-dev.18

✔ Folder '/home/krpratic/typespec-e2e-demo/petstore/spec' is not empty. Are you sure you want to initialize a new project here? … yes
✔ Please select a template › TypeSpec Emitter (With TypeScript) min compiler ver: 0.64.0
Create a new package that will be emitting typespec
✖ Project name … spec
@markcowl markcowl added bug Something isn't working compiler:core Issues for @typespec/compiler labels Feb 5, 2025
@markcowl markcowl added this to the [2025] March milestone Feb 5, 2025
@timotheeguerin timotheeguerin self-assigned this Feb 18, 2025
witemple-msft pushed a commit to witemple-msft/typespec that referenced this issue Feb 27, 2025
fix microsoft#5876
fix [microsoft#5859](microsoft#5859)


## Non empty folder confirmation

<img width="560" alt="image"
src="https://github.com/user-attachments/assets/980f7a7b-35bc-4889-8e1a-3e8d3b2edfb8"
/>

## Template selection

<img width="603" alt="image"
src="https://github.com/user-attachments/assets/2295cdbc-bb89-4212-9aa7-d1023b8e9b30"
/>

## Installaling dependencies

<img width="822" alt="image"
src="https://github.com/user-attachments/assets/f8ae2e36-99fc-4bed-b4f3-8cccd8bac9cf"
/>

## Completed
<img width="586" alt="image"
src="https://github.com/user-attachments/assets/749d25d6-3182-4548-b42c-6ed64e191662"
/>


## Interupted 
<img width="421" alt="image"
src="https://github.com/user-attachments/assets/07c5acad-d115-464c-9e81-feff2fae83c7"
/>

---------

Co-authored-by: Crystal Barragan <cbarragan@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1_0_E2E bug Something isn't working compiler:core Issues for @typespec/compiler triaged:core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants