How to configure SublimeREPL for mit-scheme?

风格不统一 提交于 2019-11-29 08:38:24

You can read documentation about configuring additional REPLs here:http://sublimerepl.readthedocs.org/en/latest/#basics-of-language-integration-configuration-and-launch-commands

And take a look at existing Scheme configuration here: https://github.com/wuub/SublimeREPL/tree/master/config/Scheme

Most Scheme/Lisp dialects are quite easy to configure, you should have no problems whatsoever.

Please allow me to share my experience. Just made it work on my machine.

First, recommend you to install a SCM implementation of Scheme, which is much easier to config than mit-scheme.

If you use windows, the env variable should be added to the system automatically after you finished installation.

Then, open Preferences -> Browse Packages -> SublimeREPL -> config -> Scheme -> Main.sublime-menu.

At last, config this file like this:

Now it should work. Enjoy it!

After trying for a good 2 hours, I finally figured out how to get it working in SublimeText 3.

First install the package "Scheme" through package control.

Then install the package "SublimeREPL" (for Sublime Text 2/3).

Then install SCM implementation of scheme as @mons mentioned.

Once Done, modify the file shown below.

SublimeText3 >> InstalledPackages >> Scheme.sublime-package (open with Zip software) >> Scheme.sublime-build (modify to the following below)

{
    "cmd": ["scm", "-f", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.scheme"
}

I realised that my "Scheme" installed through Package Installer was overriding my Sublime Build Settings in the SublimeREPL folder. That's why it didnt work eventhough I modified my settings as @mons mentioned. Thats it. Hope it works. :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!