Skip to content
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

LanguageConfig #29

Closed
ImustnotfeaR opened this issue Jan 7, 2015 · 9 comments
Closed

LanguageConfig #29

ImustnotfeaR opened this issue Jan 7, 2015 · 9 comments

Comments

@ImustnotfeaR
Copy link

Hi hi again, does the LanguageConfig class work in atom? I am trying to include some classes with the .addIIncludePath() & .store() methods which compile but after recompiling the library these paths aren't added.

@crucialfelix
Copy link
Owner

I'm actually fixing that right now. I've got the brand new quarks system
working and it adds packages to language config.

with supercollider-js / atom I set it up to allow an easier config file,
but admitedly it isn't clean and simple enough. so I'm changing it now.

docs are here:
http://supercolliderjs.readthedocs.org/en/latest/configuration.html
https://github.com/crucialfelix/atom-supercollider

but basically create a .supercollider.yaml and add the includePaths there:

includePaths:

/path/here

/path/two

this will be made better and clearer soon. I will probably just parse
the lang config file so that by default it works exactly as normal sc
does.

but I want to enable having a project specific config file with
project specific quarks.

On Wed Jan 07 2015 at 5:22:20 PM Tom Byrne notifications@github.com wrote:

Hi hi again, does the LanguageConfig class work in atom? I am trying to
include some classes with the .addIIncludePath() & .store() methods which
compile but after recompiling the library these paths aren't added.


Reply to this email directly or view it on GitHub
#29.

@ImustnotfeaR
Copy link
Author

Thanks for the reply, i set up the .supercollider.yaml file as so:

sclang: /Applications/SuperCollider/SuperCollider.app/Contents/Resources/sclang
scsynth: /Applications/SuperCollider/SuperCollider.app/Contents/Resources/scsynth
debug: true
echo: true
stdin: true
langPort: 57120
serverPort: 57110
host: 127.0.0.1
protocol: udp
websocketPort: 4040
includePaths: /Users/ImustnotfeaR/Git/theLittleMaker/00-music/01-livfcding/01-demos/classes

without the includePaths: it boots fine, but when I add the includePaths it does not boot.. have I got the syntax right ?

Thanks again

@ImustnotfeaR
Copy link
Author

I removed all the files from the includePath folder just incase it was a buggy class or something, but still wont boot x

@crucialfelix
Copy link
Owner

it should be a list

includePaths:

  • /Users/ImustnotfeaR/Git/theLittleMaker/00-music/01-
    livfcding/01-demos/classes
  • /another/one/here
  • ~/Git/theLittleMaker/00-music/01-livfcding/01-demos/classes

note that ~ works
relative paths work too

you can keep .supercollider.yaml in your home directory or in your project
directory

http://www.yaml.org/

I will improve the docs on that, but I want to make it simpler

On Fri Jan 09 2015 at 12:47:24 PM Tom Byrne notifications@github.com
wrote:

I removed all the files from the includePath folder just incase it was a
buggy class or something, but still wont boot x


Reply to this email directly or view it on GitHub
#29 (comment)
.

@ImustnotfeaR
Copy link
Author

Ah yeah sweet.

Awesome work man, wish I knew more so i could help you out ! still pretty new programmer :)

@ImustnotfeaR
Copy link
Author

nice that you can keep it in the project folder, is their an efficient way to have multiple projects with different yaml files ?

@crucialfelix
Copy link
Owner

you can do that right now. it just searches for the nearest yaml file and
uses that. so each project can have its own. keep your default one in your
home directory

now I want to include quarks in that system. so you can work on a project
and specify what quarks you want and when you run that project you get just
those quarks. also they are fixed forever so if you come back years later
they will use the same code and won't break.

but supercollider itself changes, so something will probably break :(

On Fri Jan 09 2015 at 2:58:15 PM Tom Byrne notifications@github.com wrote:

nice that you can keep it in the project folder, is their an efficient way
to have multiple projects with different yaml files ?


Reply to this email directly or view it on GitHub
#29 (comment)
.

@ImustnotfeaR
Copy link
Author

ace, thats way better than using LanguageConfig. Really cool idea.

@crucialfelix
Copy link
Owner

You can now use the normal LanguageConfig and it will honor those.

You can also use the new Quarks system which uses the LanguageConfig to add includePaths.
(latest supercollider development version - you would need to pull and rebuild that)

You can load and save sets of includePaths using Quarks.load / Quarks.save or with the gui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants