rescript-lang / rescript-lang/rescript-vscode
To get the Rescript vscode plugin working on Ubuntu Linux I needed to manually install the package
Nobody has claimed this yet.
- Dominant language
- ReScript
- Stars
- 354
- Forks
- 63
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 1
Description
To get this plugin to work on my ubuntu linux machine, I needed to run pnpm add -D @rescript/linux-x64@12.0.0-beta.10 manually. Once I did that v1.64 of the plugin worked perfectly.
I have no problem running Rescript so I'm not sure what the issue is. Maybe it is also a PNPM issue where the symlink is added incorrectly unless it is explicitly installed.
I haven't dug deeper and unfortunately I need to move on with work so I hope this is enough information to help solve the issue for others.
It may also be an issue with the rescript package itself and not be an issue with the plugin. However, everything was working completely fine with the Rescript CLI which makes me think it is something to do with the VS Code plugin.
Without this package explicitly added to my package.json I get the following error:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/jasoons/Documents/code/enviodev/hack/query-builder/node_modules/@rescript/linux-x64/bin.js' imported from /home/jasoons/.cursor/extensions/chenglou92.rescript-vscode-1.64.0-universal/server/out/cli.js
at finalizeResolution (node:internal/modules/esm/resolve:283:11)
at moduleResolve (node:internal/modules/esm/resolve:959:10)
at defaultResolve (node:internal/modules/esm/resolve:1195:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:642:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:591:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:574:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:236:38)
at ModuleLoader.import (node:internal/modules/esm/loader:539:34)
at defaultImportModuleDynamicallyForScript (node:internal/modules/esm/utils:228:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:250:12) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///home/jasoons/Documents/code/enviodev/hack/query-builder/node_modules/@rescript/linux-x64/bin.js'
}
Node.js v20.19.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure on Ubuntu with VS Code plugin v1.64 and pnpm, using the reported missing @rescript/linux-x64/bin.js error. Inspect the extension's server/out/cli.js dependency resolution and package setup; done when a fresh install works without manually adding @rescript/linux-x64@12.0.0-beta.10.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, ubuntu, vscode
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100