acarabott / supercollider-sublime

Sublime Text 3 Package for SuperCollider
MIT License
17 stars 4 forks source link

setup on osx 10.10.5 #4

Closed tatecarson closed 7 years ago

tatecarson commented 8 years ago

I'm trying to get this setup but i'm getting this greyed out menu. screen shot 2016-05-08 at 1 38 13 pm

This is how I set the path: screen shot 2016-05-08 at 1 36 47 pm

Am I doing something wrong here? I'm positive that's the correct path.

thanks.

acarabott commented 8 years ago

It looks like there is an error in the settings file, although I can't spot it. Try this:

tatecarson commented 8 years ago

Do you mean the settings under Package settings -> SuperCollider? When I do that it says no such file or directory. At least it’s what I think you mean. Are you saying to make the user settings and default settings the same?

I also put the sc_dir into the global user settings and still the same. 

Sorry, i’m really new to Sublime Text, thanks for your help so far. 

--  Tate Carson Sent with Airmail

On May 8, 2016 at 4:18:31 PM, Arthur Carabott (notifications@github.com) wrote:

It looks like there is an error in the settings file, although I can't spot it. Try this:

open the default settings file copy paste everything into your user settings file update your settings there — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

acarabott commented 8 years ago

Can you make sure that your folder is called supercollider-sublime so that the structure is Packages/supercollider-sublime

Then from the top OS menu: Sublime Text > Preferences > Package Settings > SuperCollider > Settings - Default

I'd be surprised if there is no file, but you can put this as your user settings, then you can adjust any of them as you like

{
    // SuperCollider directory (use double \\ in Windows)
    "sc_dir": "/Applications/SuperCollider/SuperCollider.app/Contents/MacOS/",
    // SCLang command name
    "sc_exe": "sclang",
    // Maximum number of lines in for Post window
    // If you are printing a *lot* very quickly then reducing this will reduce
    // CPU load.
    // -1 for no limit, ok for general use but not for extreme printing
    "max_post_view_lines": 1000,
    // Whether to syntax highlight the post view, use either "True" or "False"
    "highlight_post_view": "True",
    // Where to open the post view
    // options: group|tab|window|panel
    "open_post_view_in": "group",
    "word_separators": "./\\()\"'-:,.;<>!@#$%^&*|+=[]{}`?",
    // this flag is prefixed to messages that should be handled differently by
    // SublimeText, i.e. not just appended to the post window
    // If you are using this string in your code (for some reason) and are
    // getting conflicts, change it to something else
    "stdout_flag": "***___SUBLIME___***"
}
tatecarson commented 8 years ago

Ok firstly I think I was having problems because the folder was named supercollider-sublime-master from github. Changed that and now the menu is un-greyed but when I go to start interpreter I get this in the console:  error: Could not start sclang Please check your SuperCollider.sublime-settings file Then restart Sublime Text Traceback (most recent call last):   File "/Applications/Sublime Text.app/Contents/MacOS/sublimeplugin.py", line 538, in run     return self.run()   File "/Users/tatecarson/Library/Application Support/Sublime Text 3/Packages/supercollider-sublime/SuperCollider.py", line 400, in run     sc.start()   File "/Users/tatecarson/Library/Application Support/Sublime Text 3/Packages/supercollider-sublime/SuperCollider.py", line 171, in start     self.sclang_process.stdout, AttributeError: 'NoneType' object has no attribute 'stdout'

Here’s my file structure, is this correct? 

--  Tate Carson Sent with Airmail

On May 9, 2016 at 1:29:20 AM, Arthur Carabott (notifications@github.com) wrote:

Can you make sure that your folder is called supercollider-sublime so that the structure is Packages/supercollider-sublime

Then from the top OS menu: Sublime Text > Preferences > Package Settings > SuperCollider > Settings - Default

I'd be surprised if there is no file, but you can put this as your user settings, then you can adjust any of them as you like

{ // SuperCollider directory (use double \ in Windows) "sc_dir": "/Applications/SuperCollider/SuperCollider.app/Contents/MacOS/", // SCLang command name "sc_exe": "sclang", // Maximum number of lines in for Post window // If you are printing a lot very quickly then reducing this will reduce // CPU load. // -1 for no limit, ok for general use but not for extreme printing "max_post_view_lines": 1000, // Whether to syntax highlight the post view, use either "True" or "False" "highlight_post_view": "True", // Where to open the post view // options: group|tab|window|panel "open_post_view_in": "group", "wordseparators": "./()\"'-:,.;<>!@#$%^&|+=[]{}`?", // this flag is prefixed to messages that should be handled differently by // SublimeText, i.e. not just appended to the post window // If you are using this string in your code (for some reason) and are // getting conflicts, change it to something else "stdoutflag": "**_SUBLIME_***" }

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

acarabott commented 8 years ago

Your file structure looks correct. Unfortunately it it unable to start sclang, this is probably because it can't find the sclang executable.

Can you find the SuperCollider.app in the Finder, right click it and select Show Package Contents

I want to check that the internals of your SuperCollider.app are structured like this. If not let me know which version of SuperCollider you are using.

sc-structure

acarabott commented 7 years ago

Closing this as no response, let me know if still unsolved.

precabal commented 7 years ago

Hi there, was having a similar issue on OS X 10.9.5, installed through Package Control and the settings under Sublime Text > Preferences > Package Settings > SuperCollider > Settings - Default were showing up empty. I got the following error when trying to boot the interpreter:

Error loading syntax file "Packages/supercollider-sublime/SuperCollider.tmLanguage": Unable to open Packages/supercollider-sublime/SuperCollider.tmLanguage

When pasting the lines you suggested above for my user settings, the error went away.