-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README provides incorrect installation instructions #22
Comments
I'd only like to add that it would be wonderful to add a little more details how to get this to work on macOS - in |
Here is what I get from trying to
What are the instructions for installing through Cmake? |
Okay okay, here is what I'm trying, following these two comments: First install package: (package! sclang-mode :recipe (:host github :repo "supercollider/scel" :files ("el/*.el"))) Install these if do not have em (MACOS):
Then build with CMAKE (directory for straight.el):
THEN this works: (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/SuperCollider")
(require 'sclang) However, now I get A backtrace of the errora bit of a backtrace Debugger entered--Lisp error: (file-missing "Searching for program" "No such file or directory" "sclang")
#<subr make-process>(:name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel"))
apply(#<subr make-process> (:name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel")))
make-process--with-editor-process-filter(#<subr make-process> :name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel"))
apply(make-process--with-editor-process-filter #<subr make-process> (:name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel")))
#f(advice-wrapper :around #<subr make-process> make-process--with-editor-process-filter)(:name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel"))
apply(#f(advice-wrapper :around #<subr make-process> make-process--with-editor-process-filter) (:name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel")))
explain-pause--wrap-make-process(#f(advice-wrapper :around #<subr make-process> make-process--with-editor-process-filter) :name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel"))
apply(explain-pause--wrap-make-process #f(advice-wrapper :around #<subr make-process> make-process--with-editor-process-filter) (:name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel")))
make-process(:name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel"))
apply(make-process (:name "SCLang" :buffer "*SCLang:PostBuffer*" :command ("sclang" "-iscel")))
start-process("SCLang" "*SCLang:PostBuffer*" "sclang" "-iscel")
apply(start-process "SCLang" "*SCLang:PostBuffer*" "sclang" "-iscel")
sclang-start()
#<subr funcall-interactively>(sclang-start)
apply(#<subr funcall-interactively> sclang-start)
funcall-interactively(sclang-start)
#<subr call-interactively>(sclang-start record nil)
apply(#<subr call-interactively> (sclang-start record nil))
explain-pause--wrap-call-interactively(#<subr call-interactively> sclang-start record nil) So I add the path... (setenv "PATH" (concat (getenv "PATH") ":/Applications/SuperCollider.app/Contents/MacOS"))
(setq exec-path (append exec-path '(":/Applications/SuperCollider.app/Contents/MacOS")) now I do However I can't evaluate a line yet... |
From README:
What's sclang's library path? How do I know? |
Not 100% sure but I think that means the "Extensions" path. On macOS it's in |
Got it working! Thank you so much @dyfer, that was the step I was missing!
|
Impossible to figure this out from the README, thanks to everyone that has contributed by bringing this up, you are the difference between a silent Emacs and a happy Emacs. |
@Sleepful glad to have helped! Since you went through this setup recently, would you be able to propose changes to the Readme? A PR would be best, but if not then even pointing out how to update which and sections would possibly push this forward. |
FWIW, I also struggled through this install recently. I'm on a Mac, using doom emacs config. I would love it if this library behaved like a normal emacs package and we could just pull it from melpa or configure it using straight.el, etc. Instead, every time this repo gets updated I need to deal with the sclang-vars problem... I'm willing to put in some work, if the community agrees it would be desirable. I see a few things that would need to be addressed:
I have probably missed some things. Please let me know. I have done some work with elisp before but never cmake or platform-specific packaging. |
Per #4, "you probably installed the project by copying the folder directly -- you are intended to install it via CMake, which configures sclang-vars.el.in to produce sclang-vars.el."
But README says:
Oh... haha... scons... anybody remember scons?
This needs an update.
The text was updated successfully, but these errors were encountered: