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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#### :bug: Bug fix

- Fix language server crash (`ERR_INVALID_URL`) when resolving platform binaries for ReScript v12+ projects. https://github.com/rescript-lang/rescript-vscode/issues/1181

#### :rocket: New Feature

#### :house: Internal
Expand Down
4 changes: 3 additions & 1 deletion shared/src/findBinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export const findBinary = async ({
"..",
`@rescript/${target}/bin.js`,
);
const { binPaths } = await import(url.fileURLToPath(targetPackagePath));
const { binPaths } = await import(
url.pathToFileURL(targetPackagePath).href
Comment thread
fhammerschmidt marked this conversation as resolved.
);

if (binary === "bsc.exe") {
binaryPath = binPaths.bsc_exe;
Expand Down
Loading