Skip to content

Fix compiler mismatch error recommendation#1858

Merged
timotheeguerin merged 3 commits into
microsoft:mainfrom
timotheeguerin:fix/compiler-mismatch-error-recommendation
Apr 25, 2023
Merged

Fix compiler mismatch error recommendation#1858
timotheeguerin merged 3 commits into
microsoft:mainfrom
timotheeguerin:fix/compiler-mismatch-error-recommendation

Conversation

@timotheeguerin

Copy link
Copy Markdown
Member

fix #1853

@github-actions

Copy link
Copy Markdown
Contributor

Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):
Playground: https://cadlplayground.z22.web.core.windows.net/prs/1858/

Website: https://cadlwebsite.z1.web.core.windows.net/prs/1858/

@timotheeguerin
timotheeguerin marked this pull request as ready for review April 24, 2023 19:36
// we have resolved node_modules/@typespec/compiler/dist/core/index.js and we want to get
// to the shim executable node_modules/.bin/tsp-server
const betterTypeSpecServerPath = resolvePath(actual.path, ".bin/tsp-server");
const betterTypeSpecServerPath = actual.path;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually improve the error, though? Seems like it just reverts back to pointing back to the .js file instead. If it does improve things, maybe we can just drop the betterTypeSpecServerPath and use actual.path instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above is actually incorrect, it was not updated last times actual.path is pointing to the compiler/ folder

@timotheeguerin
timotheeguerin enabled auto-merge (squash) April 25, 2023 15:46
@timotheeguerin
timotheeguerin merged commit 5a88019 into microsoft:main Apr 25, 2023
@timotheeguerin
timotheeguerin deleted the fix/compiler-mismatch-error-recommendation branch March 4, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tsp-server not found error gives path to the unix bash file

2 participants