Skip to content

[Bug]: tsp init Process Hangs After Project Creation #3102

Description

@mario-guerra

Describe the bug

Environment: Typespec Compiler Version 0.54.0 on Windows 11 Enterprise

Description:
The tsp init command does not successfully conclude, leaving the terminal in a non-responsive state. This occurs after selecting the "Azure Data Plane Service Project" template and accepting the default package options provided.

Reproduction

Steps to Reproduce:

  1. Following instructions on our 'Creating a new project' page
  2. Run tsp init https://aka.ms/typespec/azure-init to start a new project.
  3. When prompted, select the "(stand alone) Azure Data Plane Service Project" template.
  4. Provide a project name
  5. At the package selection screen, leave all default packages selected:
    • @azure-tools/typespec-autorest
    • @azure-tools/typespec-azure-core
    • @azure-tools/typespec-azure-resource-manager
    • @azure-tools/typespec-client-generator-core
    • @typespec/http
    • @typespec/openapi
    • @typespec/rest
    • @typespec/versioning
  6. Proceed with the initialization by pressing Enter.
  7. Provide a service namespace
  8. Observe the message: "TypeSpec init completed. You can run tsp install now to install dependencies. Project created successfully."
  9. Notice that the terminal does not return to the prompt, preventing any further actions.

Expected Result:
The terminal should return to the prompt after the tsp init process, allowing the user to continue with tsp install or other commands.

Actual Result:
The terminal remains unresponsive after the tsp init completion message. I can only get back to the prompt via Ctrl-C to kill the running process.

Checklist

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions