Hi! I use Windows with WSL in VSCode, and the editor tooling is behaving very oddly for me. I tested it out and from what I can tell I do not get these errors when developing directly on Windows without the wsl.
It seems to always be out of sync and is showing errors that don’t exist anymore, or it picks up on things that aren’t even errors. I’ve been restarting the dev server constantly, and instead of struggling I am hoping for some help.
Error I already fixed didn’t go away until I restarted ReScript.
This is always red.

Issues stay on screen and in the problems panel.
LSP server state
{
“lspServerVersion”: “1.72.0”,
“config”: {
“askToStartBuild”: true,
“logLevel”: “error”,
“inlayHints”: {
“enable”: false,
“maxLength”: 25
},
“codeLens”: false,
“binaryPath”: null,
“platformPath”: null,
“signatureHelp”: {
“enabled”: false,
“forConstructorPayloads”: false
},
“incrementalTypechecking”: {
“enable”: false,
“acrossFiles”: false,
“enabled”: true,
“debugLogging”: false
},
“cache”: {
“projectConfig”: {
“enable”: true
}
},
“runtimePath”: null,
“compileStatus”: {
“enable”: true
},
“allowBuiltInFormatter”: true,
“autoRunCodeAnalysis”: false
},
“projects”: [
{
“projectRootPath”: “/home/josh/Dev/rescript-lang.org”,
“openFiles”: [
“/home/josh/Dev/rescript-lang.org/src/bindings/ReactRouter.res”
],
“filesWithDiagnostics”: [
“file:///home/josh/Dev/rescript-lang.org/src/common/Hooks.res”
],
“filesDiagnostics”: {
“file:///home/josh/Dev/rescript-lang.org/src/common/Hooks.res”: [
{
“severity”: 2,
“tags”: [
1
],
“code”: 26,
“range”: {
“start”: {
“line”: 76,
“character”: 7
},
“end”: {
“line”: 76,
“character”: 7
}
},
“source”: “ReScript”,
“message”: “unused variable x.\nFix this by:\n- Deleting the variable if it’s not used anymore.\n- Prepending the variable name with _ (like _x) to ignore that the variable is unused.\n- Using the variable somewhere.”
}
]
},
“rescriptVersion”: “12.1.0”,
“bscBinaryLocation”: “/home/josh/Dev/rescript-lang.org/node_modules/rescript/node_modules/@rescript/linux-x64/bin/bsc.exe”,
“editorAnalysisLocation”: “/home/josh/Dev/rescript-lang.org/node_modules/rescript/node_modules/@rescript/linux-x64/bin/rescript-editor-analysis.exe”,
“namespaceName”: “”,
“hasPromptedToStartBuild”: true,
“bsbWatcherByEditor”: {
“pid”: 19326
}
}
],
“workspaceFolders”: [
“/home/josh/Dev/rescript-lang.org”
],
“runtimePathCache”: {
“/home/josh/Dev/rescript-lang.org”: “/home/josh/Dev/rescript-lang.org/node_modules/rescript/node_modules/@rescript/runtime”
}
}
Dump the LSP has an error:
Pos: 82:1
npm error could not determine executable to run
npm error A complete log of this run can be found in: /home/josh/.npm/_logs/2026-02-01T19_25_05_688Z-debug-0.log

