crucialfelix / atom-supercollider

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

Workspace.getActiveEditor is deprecated. #42

Closed bagong closed 9 years ago

bagong commented 9 years ago

Call ::getActiveTextEditor instead

Workspace.getActiveEditor (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:1022:12)
Controller.editorIsSC (/Users/rainer/.atom/packages/supercollider/lib/controller.coffee:137:28)
Controller.eval (/Users/rainer/.atom/packages/supercollider/lib/controller.coffee:166:19)
atom-workspace.<anonymous> (/Users/rainer/.atom/packages/supercollider/lib/controller.coffee:26:31)
CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
bagong commented 9 years ago

Sorry, more... ;) There are 4 deprecation warnings with this tag, another one with 'Use TextEditor::lineTextForBufferRow(bufferRow) instead' and 'Use editor.getCursorScreenPosition().row instead'. You get them when you evaluate code the first time and thereby trigger starting sclang.

bagong commented 9 years ago

And this 'Use Decoration::setProperties instead' when you trigger an error (nice error message formatting, btw! ;) )

crucialfelix commented 9 years ago

done. thanks !

bagong commented 9 years ago

Thank you!