Repository navigation
Commit 11656c3
committed
Fix crash resolving ReScript v12+ binaries
findBinary passed a plain filesystem path to url.fileURLToPath, which
always throws ERR_INVALID_URL, crashing the language server on startup
for any ReScript >= 12.0.0-alpha.13 project. Convert the path with
url.pathToFileURL instead, which also keeps the dynamic import working
on Windows.
Fixes #11811 parent f29d6a0 commit 11656c3
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
0 commit comments