The Crystal Programming Language Forum

Sublime IDE

Cmd + B in sublime editor:
[Errno 2] No such file or directory: ‘crystal’
[cmd: [‘crystal’, ‘run’, ‘–no-color’, ‘/Volumes/T7/Cystal/add.cr’]]
[dir: /Volumes/T7/Cystal]
[path: /Library/Frameworks/Python.framework/Versions/3.8/bin:/Volumes/T5/.nimble/bin/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Volumes/T5/.nimble/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands]

Do I need to export PATH?

amasa@Adams-iMac /V/T/Cystal> which crystal
/usr/local/bin/crystal

Hi! What’s cmd+b? If it’s build, there’s no such support for sublime crystal

cmd+B = Build

Anyhow, what is the best IDE, text editor / plugin with support for Crystal?

  1. How to configure VS Code?
    I already have Crystal Language - Visual Studio Marketplace

Hello! As a hobbyist, I have been using Sublime with Crystal on a Ubuntu virtual box for a while now. There is a plugin for Crystal which you can install and select with Tools->Build System. Or you can roll your own using the .sublime-project system.

I use a Makefile for development and my project file looks like:

	"build_systems":
	[
		{
			"name": "Development",
			"working_dir": "${project_path:${folder}}",
	    "shell_cmd": "make dev",
		},
		{
			"name": "Production",
			"working_dir": "${project_path:${folder}}",
	    "shell_cmd": "make prod",

		},

I can now select Development or Production from Tools->Build System. Hope this helps.