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

"Library is uncompiled": Unhandled promise rejection Object with error: ReferenceError: fs is not defined #47

Closed
unclewalter opened this issue Jul 5, 2015 · 11 comments

Comments

@unclewalter
Copy link

It won't compile the library and so won't do anything at all beyond that. I have SuperCollider installed in the correct location. The console comes up with a reference error when I try to compile the library.

screen shot 2015-07-04 at 11 14 00 pm

screen shot 2015-07-04 at 11 03 11 pm

@crucialfelix
Copy link
Owner

Very strange that it worked for me. There was an obvious missing import but with coffeescript I don't see any warnings about missing variables as I would with javascript. Fixed with a new version published

@unclewalter
Copy link
Author

It got a little bit further. Here's what comes up now:

screen shot 2015-07-06 at 1 33 58 pm

@crucialfelix
Copy link
Owner

It looks like you are using a 3.6 version of supercollider. True ?

The cache variable was introduced only in the new version of Quarks.

I should probably explicitly state that only 3.7+ is supported. I had
previously intended to support 3.6 as well.

On Mon, Jul 6, 2015 at 5:36 AM Kevan Atkins notifications@github.com
wrote:

It got a little bit further. Here's what comes up now:

[image: screen shot 2015-07-06 at 1 33 58 pm]
https://cloud.githubusercontent.com/assets/5734225/8515331/fadeab78-23e3-11e5-8dd3-c7cdecb043b1.png


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

@unclewalter
Copy link
Author

Updated to SuperCollider 3.7alpha1. It can got a little further again. Supercollider boots now, but there is no sound I issue it commands from Atom and I get this when I try to compile the library now:
screen shot 2015-07-06 at 5 22 27 pm

@crucialfelix
Copy link
Owner

That's fine: it did compile.

The ERROR thing about the Document class should be a warning, but that's how supercollider is posting it right now. We have an issue filed to clean that up so it doesn't confuse people.

If you aren't getting sound then its something with your code or your speakers/audio interface.

Server.default.boot;

{
  SinOsc.ar(440) * 0.1
}.play

@unclewalter
Copy link
Author

Not quite. My code runs fine in the SuperCollider IDE and with Sublime and but not at all here.

@crucialfelix
Copy link
Owner

You say that the sound doesn't work.

Does the interpreter work ?

1 + 1

@unclewalter
Copy link
Author

The interpreter works. A little further investigation yields the following:

It seems there are multiple problems here. Your code works. As does a lot of stuff, though intermittently. I might fire off a piece of code such as triggering a Synth 10 times and it only plays once or twice. This is consistent with both this newer version of SuperCollider, Sublime and in Atom. This wasn't an issue before. There seems to be a real performance hit in this version. The server takes a lot longer to boot than it did before and there seem to be a lot of bugs. And I did a clean install of it. When I roll the version back to 3.6.6, these issues disappear except for of course Atom not working since < 3.7 versions are not supported as you mentioned earlier.

One of my full pieces (https://gist.github.com/unclewalter/96cf5774f923821e6c02) plays in the IDE and with Sublime, but not in Atom, where it just yields this error:
screen shot 2015-07-07 at 1 28 39 am

which I think is a separate issue and more to do with the setup in Atom. The other issues, seem more to do with this version of SuperCollider.

@crucialfelix
Copy link
Owner

That sounds really strange. Don't assume its because of "this version" though. Something else is going on with your installation. Everybody else would also be screaming if the entire thing was unusable like that.

lightening fast for me:

s.boot

If you go into Packages > SuperCollider you can turn on debug which should post a bit more to the internal console. Open that with option-cmd-i

That would show the full JSON dump of that error. For some reason the file is null

@unclewalter
Copy link
Author

That something else is a mystery to me.

As far as Atom is concerned this is what I get: screen shot 2015-07-08 at 3 40 54 am

@crucialfelix
Copy link
Owner

I filed a new issue: #48

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