Merlin doesn't recognize new `.re` file


#1

I’m adding a new .re file alongside my existing files and using the module. create-react-app is able to handle the new file just fine, as in I can see the change getting reflected in my web app. However, for some reason Merlin complains about Unbound value in my existing files when they use definitions from the new file. Does anyone know how I might fix that?


#2

You can restart your editor,


#3

If you’re using VSCode, you can reload the window.


#4

I tried restarting my editor multiple times to no effect.


#5

Possible fix (quoting the readme of vscode-reasonml): “Note: due to an existing problem, make sure that you’re opening vscode from the command-line, at the root of your project!”

I’m now starting (and restarting) vscode by cd-ing into the project directory and:

vscode .

Enabled via the following line in .bash_profile (macOS):

alias vscode='/Applications/_Axel/Visual\ Studio\ Code.app/Contents/MacOS/Electron'