-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Labels
bugSomething isn't workingSomething isn't workingcompiler:coreIssues for @typespec/compilerIssues for @typespec/compilertriaged:core
Milestone
Description
Describe the bug
tsp compile --list-files doesn't list files, if the spec is outside the current directory. The compile itself seems to work fine, just the files are not listed.
Reproduction
If I run tsp compile --list-files on a spec under my current directory, it prints the files as expected:
~/specs-mh$ npx tsp compile --list-files specification/contosowidgetmanager/Contoso.Management
TypeSpec compiler v1.7.1
✔ Compiling
✔ @azure-tools/typespec-autorest 565ms specification/contosowidgetmanager/
specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/preview/2021-10-01-preview/contoso.json
specification/contosowidgetmanager/resource-manager/Microsoft.Contoso/preview/2021-10-01-preview/examples/Operations_List.json
...
Compilation completed successfully.
However, if I run the same command on the same spec, but outside my current directory, no files are printed:
~/specs-mh$ npx tsp compile --list-files ../specs-mh-2/specification/contosowidgetmanager/Contoso.Management
TypeSpec compiler v1.7.1
✔ Compiling
✔ @azure-tools/typespec-autorest 529ms ../specs-mh-2/specification/contosowidgetmanager/
Compilation completed successfully.
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompiler:coreIssues for @typespec/compilerIssues for @typespec/compilertriaged:core