Troubleshooting¶
Common issues and their solutions.
Language Server Not Detected¶
Symptom: A notification bar appears at the top of the editor saying the Language Server was not found.
Solutions:
Install the Language Server in your project:
npm install @rescript/language-server
Make sure Node.js is in your PATH:
node --version # Should output a version number
Restart the IDE after installing the Language Server
Check that
rescript.jsonexists in your project root
No Syntax Highlighting¶
Symptom: .res files appear as plain text without colors.
Solutions:
Check that the file extension is
.resor.resiVerify the plugin is installed: Settings → Plugins → search for “ReScript”
Try restarting the IDE
Code Completion Not Working¶
Symptom: No completion suggestions appear when typing.
Solutions:
Ensure the Language Server is installed and detected (no notification bar)
Check that the ReScript project has been built at least once:
npx rescript build
Wait a few seconds after opening a file — the Language Server needs time to initialize
Try pressing
Cmd+Spacemanually to trigger completion
Formatting Not Working¶
Symptom: Cmd+Option+L does nothing or shows an error.
Solutions:
Ensure
rescriptis installed in your project:npm install rescript
Check that
rescript.jsonexists in the project rootVerify the file has no syntax errors (formatting may fail on invalid code)
Build Errors Not Showing¶
Symptom: No inline error annotations despite compilation errors.
Solutions:
Ensure the Language Server is running (check status bar)
Save the file — diagnostics update on save
Check the Problems panel (
Alt+6) for any listed issuesTry restarting the Language Server: close and reopen the project
reanalyze Not Working¶
Symptom: No dead code warnings despite unused code.
Solutions:
Install reanalyze:
npm install reanalyze
Build the project first:
npx rescript build
Check the reanalyze path in Settings → Languages & Frameworks → ReScript
High CPU or Memory Usage¶
Symptom: IDE becomes slow when working with ReScript files.
Solutions:
Close unused projects
Increase IDE memory: Help → Change Memory Settings
Disable unused inspections: Settings → Editor → Inspections → uncheck ReScript inspections you don’t need
Check if the Language Server process is consuming excessive resources
Plugin Conflicts¶
Symptom: Unexpected behavior when other language plugins are installed.
Solutions:
Check if the old
reasonml-idea-pluginis installed and disable itEnsure there are no conflicting file type associations for
.resfiles
Diagnostic Toolkit¶
When quick fixes above don’t resolve the issue, the following steps help you gather evidence and reset state before filing a bug.
Verify Node.js and the Language Server¶
# Confirm Node.js is reachable from the same PATH the IDE uses
node --version
which node
# Confirm @rescript/language-server is installed locally or globally
ls node_modules/@rescript/language-server/out/server.js 2>/dev/null \
|| npm ls -g @rescript/language-server
If Node.js works in your shell but the IDE reports it missing, the IDE may be launched without your shell’s PATH. On macOS, launching the IDE from Terminal (idea . or webstorm .) propagates your shell environment; the Dock launcher may not.
Restart the Language Server¶
Tools → Restart ReScript LSP — fully restarts the server without reopening the project. Use this after installing dependencies, switching branches, or when completion/diagnostics go silent.
Tools → Dump ReScript LSP State — prints the server’s internal request/response queues and initialization options to the Event Log. Attach the output when reporting bugs related to LSP behavior.
Clear Caches¶
Stale indexes and caches are a frequent cause of wrong completions, missing references, or outdated diagnostics.
File → Invalidate Caches → check Clear file system cache and Local History → click Invalidate and Restart.
Delete the ReScript build output when
rescript buildreports phantom errors:rm -rf lib/bs lib/es6 lib/ocaml npx rescript clean npx rescript build
Inspect Logs¶
Help → Show Log in Finder (macOS) / Show Log in Explorer (Windows/Linux).
Open
idea.logand filter forReScript,rescript-language-server, orcom.rescript.pluginto isolate plugin output.For reproducible issues, enable verbose logging: Help → Diagnostic Tools → Debug Log Settings… → add
#com.rescript.plugin:trace.
Reset Plugin Configuration¶
If settings appear corrupted, remove the plugin’s persisted state:
# macOS
rm ~/Library/Application\ Support/JetBrains/<IDE>/options/RescriptProjectSettings.xml
# Linux
rm ~/.config/JetBrains/<IDE>/options/RescriptProjectSettings.xml
# Windows (PowerShell)
Remove-Item "$env:APPDATA\JetBrains\<IDE>\options\RescriptProjectSettings.xml"
Restart the IDE afterwards; a fresh default file is generated.
Reporting Issues¶
If you can’t resolve the issue:
Check existing issues on GitHub
File a new issue with:
IDE version and OS
Plugin version
ReScript and Language Server versions
Steps to reproduce
Error logs (from Help → Show Log in Finder/Explorer)
Output of Tools → Dump ReScript LSP State if the issue involves LSP features