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

sclang: create config dir on startup, report errors from LanguageConfig.store #3577

Merged
merged 3 commits into from
Mar 15, 2018
Merged

Conversation

mossheim
Copy link
Contributor

Fixes #2919.

  • Create the language config dir on startup. This step is skipped if run in standalone mode or a non-standard config file is specified with -l. This addresses issues raised by @jamshark70.
  • Modify SC_LanguageConfig::writeLibraryConfigYAMLFile (C++) to return false if writing fails
  • Modify LanguageConfig.store (SC) to throw a descriptive error on failure

Open to discussing alternate approaches. This doesn't feel perfect to me but I can't really put my finger on why. Either way, tested on macOS and works fine.

@mossheim mossheim added comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library" comp: class library SC class library labels Mar 15, 2018
@mossheim mossheim added this to the 3.9.2 milestone Mar 15, 2018
@mossheim mossheim requested a review from jamshark70 March 15, 2018 01:47
@telephon telephon merged commit 8a184fa into supercollider:3.9 Mar 15, 2018
@mossheim mossheim deleted the issue/2919 branch March 15, 2018 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: class library SC class library comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants