crucialfelix / atom-supercollider

SuperCollider development environment for Atom.io
MIT License
84 stars 12 forks source link

Uncaught TypeError: undefined is not a function #30

Closed caseyanderson closed 9 years ago

caseyanderson commented 9 years ago

[Enter steps to reproduce below:]

  1. open atom from terminal with file 2a. (method one) packages > supercollider > open post window 2b. (method two) simply shift enter on the first line in the file (which happens to be "o = ServerOptions.new;"), which results in this same error.

Atom Version: 0.177.0 System: linux 3.16.0-30-generic Thrown From: supercollider package, v0.3.5

Stack Trace

Uncaught TypeError: undefined is not a function

At /home/cta/.atom/packages/supercollider/lib/rendering.coffee:306

TypeError: undefined is not a function
  at Object.cleanStdout (/home/cta/.atom/packages/supercollider/lib/rendering.coffee:306:9)
  at SCLang.<anonymous> (/home/cta/.atom/packages/supercollider/lib/repl.coffee:107:21)
  at SCLang.emit (events.js:116:17)
  at ChildProcess.<anonymous> (/home/cta/.atom/packages/supercollider/node_modules/supercolliderjs/lib/nodejs/sclang.js:376:10)
  at ChildProcess.emit (events.js:116:17)
  at Process.ChildProcess._handle.onexit (child_process.js:1070:12)
  at child_process.js:1142:20
  at process._tickCallback (node.js:364:11)

Commands

     -0:41.6 supercollider:eval (atom-text-editor.editor)
     -0:01.1 supercollider:open-post-window (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "zenburn"
    ]
  }
}

Installed Packages

# User
autocomplete-plus, v2.0.12
file-icons, v1.4.8
supercollider, v0.3.5
zenburn, v1.0.2

# Dev
No dev packages

/cc @atom/core

caseyanderson commented 9 years ago

any suggestions as to how to fix the above symptom? i am currently not able to use supercollider with atom at all and am a bit mystified as to what is going on.

crucialfelix commented 9 years ago

Hi, sorry I never got any notification email for this. I wasn't ignoring it !

this was fixed here: https://github.com/crucialfelix/atom-supercollider/commit/dcee742a306e7bb31476278ea5199312ed9154c8

Try it with the latest version 0.4.0

caseyanderson commented 9 years ago

will do so tonight and report back to confirm the fix. thanks!

caseyanderson commented 9 years ago

upgrading did resolve this specific error by way of resulting in no errors thrown, however nothing happens when i try to evaluate a line in an scd file, open the post window, or try to open a help file on some object in SC (example: Bus). in other words, i still cannot get atom-supercollider to work in ubuntu. any suggestions?

btw, just to clarify, im currently running all of this on Ubuntu 14.10.

crucialfelix commented 9 years ago

right now the whole thing is broken because Atom switched to IOJS and are using 6to5 to transpile files. this is raising a warning and it is refusing to run the package. I'll sort it out tomorrow.

On Tue Feb 24 2015 at 11:40:17 PM Casey Anderson notifications@github.com wrote:

upgrading did resolve this specific error by way of resulting in no errors thrown, however nothing happens when i try to evaluate a line in an scd file, open the post window, or try to open a help file on some object in SC (example: Bus). any suggestions?

— Reply to this email directly or view it on GitHub https://github.com/crucialfelix/atom-supercollider/issues/30#issuecomment-75862844 .

caseyanderson commented 9 years ago

Oh, ok. Glad its not just me. :)

If there is anything I can do to help, dont hesitate to ask (check on things, whatever)!

crucialfelix commented 9 years ago

Its now working again. I had to factor out some dependencies that atom's content security policy was complaining about.

caseyanderson commented 9 years ago

Great. Ill upgrade tonight or tomorrow and confirm that it is working. Thanks for your help and all of your work on this!

caseyanderson commented 9 years ago

I can confirm that everything is working now. Thanks again!