Really hard to get the dependencies working when settings across 4 files must be synchronized. I have compared my inputs to 2 other language repl’s that work and in my blindness I cannot see what I am doing wrong.
Error when loading the racket REPL from SublimeREPL: File Not Found Error(2, ‘No such file or directory’). Of course, the error doesn’t say which of several directories or files can’t be found.
Here are the 3 dependencies:
-
Racket language support from package Racket.sublime-package. Inside the archive is a file called ‘Racket.tmLanguage’. This is the one I reference as the syntax for the REPL. Selecting it for a source file of type .rkt the basic things seem to work adequately. it is not the richest of language files, but it does syntax highlighting and basic completions. OK.
-
One of the SublimeREPL config files for a language: ‘Default.sublime-commands’ in the config directory for Racket:
{
"caption": "SublimeREPL: Racket",
"command": "run_existing_window_command", "args":
{
"id": "repl_plt_racket",
"file": "config/Racket/Main.sublime-menu"
}
}
- The second SublimeREPL config file for Racket, as referred to above, 'Main.sublime-menu:
[
{
"id": "tools",
"children": [
{
"caption": "SublimeREPL",
"mnemonic": "R",
"id": "SublimeREPL",
"children": [
{
"command": "repl_open",
"caption": "Racket",
"id": "repl_plt_racket",
"mnemonic": "R",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["racket"],
"soft_quit": "\n(exit)\n",
"cwd": "$folder",
"cmd_postfix": "\n",
"extend_env": {"INSIDE_EMACS": "1"},
"syntax": "Racket.tmLanguage",
"external_id": "racket"
}
}
]
}
]
}
]
- And, critically ‘racket’ has to be installed and in my path. It is as follows:
➜ ~ which racket
/Applications/Racket v8.9/bin/racket
and it does run (I’ll spare you the terminal output).
Ugh… …this whole thing is so brittle. What am I missing?