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

Update "Getting Started" chapter 3 #4868

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

pearcemerritt
Copy link
Contributor

Purpose and Motivation

Revisiting SuperCollider after a long time away and making doc edit suggestions as I go. Previous chapter PR: #4854

Types of changes

  • Documentation

To-do list

  • Updated documentation
  • This PR is ready for review

@pearcemerritt
Copy link
Contributor Author

Is there some doc that explains how to render these schelp files? Or do I need to copy them into SuperCollider.app/Contents/Resources/HelpSource/Tutorials/Getting-Started in order to see that?

@mossheim
Copy link
Contributor

Is there some doc that explains how to render these schelp files? Or do I need to copy them into SuperCollider.app/Contents/Resources/HelpSource/Tutorials/Getting-Started in order to see that?

when developing, i typically have sclang configured to use the class library in the source directory (excluding the default compile paths). i believe that causes the IDE to also use the help files in the source directory too, because I've always been able to just edit those and see the result immediately when i reload.

@pearcemerritt
Copy link
Contributor Author

pearcemerritt commented Apr 13, 2020

i typically have sclang configured to use the class library in the source directory (excluding the default compile paths)

Sweet! Is there a doc that describes how to do this ^ ?

@mossheim
Copy link
Contributor

not to my knowledge! but i'm also not sure if that's what other people do. on macOS i think it's trickier. anyway where would you like that to live?

@mossheim mossheim added the comp: help schelp documentation label Apr 13, 2020
@telephon
Copy link
Member

not to my knowledge! but i'm also not sure if that's what other people do. on macOS i think it's trickier.

no, it's exactly the same. You just use the interpreter preferences and remove the default paths and include the path of the source folders (supercollider/SCClassLibrary and supercollider/HelpSource).

@mossheim
Copy link
Contributor

oh, i know now, i was thinking of how it's difficult to run the IDE except when everything is assembled in an app bundle

@telephon
Copy link
Member

yes, this is true.

@pearcemerritt
Copy link
Contributor Author

pearcemerritt commented May 17, 2020

@brianlheim @telephon thanks! With some poking around I was able to figure out what y'all were talking about and get it working :D

anyway where would you like that to live?

@brianlheim I looked at the wiki and I didn't really see any section that felt suitable to describing this level of local set-up. I think it would warrant a new page. Could be included on Home.md right after the unit testing guide you made. Here's some boilerplate markdown:

SuperCollider can be configured to read classes and help source from your local code repository:

macOs
-----
In the IDE:
1. Preferences > Interpreter
1. Check `Exclude default search paths`
1. For reading local classes
   1. Add an "include" for `/path/to/supercollider/SCClassLibrary`
1. For reading local help source
   1. Add an "include" for `/path/to/supercollider/HelpSource`

windows
-------
TODO

linux
-----
TODO

@pearcemerritt
Copy link
Contributor Author

Oh, just found this!
https://doc.sccode.org/Guides/WritingHelp.html
Maybe it should go in here ^ ? But it should also probably be linked from the wiki somewhere

@dyfer
Copy link
Member

dyfer commented May 22, 2020

Re: switching class library:
I have some code to aid with changing class library. Not 100% foolproof but I use it constantly.

  • be sure to set paths to your source in multiple places in the file
  • it will recompile the library when you run the appropriate sections

https://gist.github.com/dyfer/0a98f3e6bb194e2e29a8e7c9355046ec

@mossheim
Copy link
Contributor

thanks all! i just added this: https://github.com/supercollider/supercollider/wiki/Setting-up-your-development-environment, i think that pretty much covers this! feel free to edit with additional information or TODOs for other information you'd like to see.

Copy link
Contributor

@mossheim mossheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this all looks good to me!

@mossheim mossheim merged commit de1a46d into supercollider:3.11 Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: help schelp documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants