Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
> - :house: [Internal]
> - :nail_care: [Polish]

## [Unreleased]

#### :nail_care: Polish

- Resolve symlinks when finding platform binaries. https://github.com/rescript-lang/rescript-vscode/pull/1154

## 1.70.0

#### :bug: Bug fix
Expand Down
4 changes: 3 additions & 1 deletion server/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ let findBinary = async (
// TODO: export `binPaths` from `rescript` package so that we don't need to
// copy the logic for figuring out `target`.
const target = `${process.platform}-${process.arch}`;
// Use realpathSync to resolve symlinks, which is necessary for package
// managers like Deno and pnpm that use symlinked node_modules structures.
const targetPackagePath = path.join(
rescriptDir,
fs.realpathSync(rescriptDir),
"..",
`@rescript/${target}/bin.js`,
);
Expand Down