sublimetext2 - SublimeLinter fails with 'undefined' is not a function, emitter.on(name, listener); -


i've had sublimelinter working fine javascript files on macbook 10.6 while, see single error when save js files. e.g file has comment on first line:

'undefined' not function (evaluating 'function (name) {     emitter.on(name, listener);     }.bind(this)') 1:// 

i see same error regardless of have in js file or project file in.

i've tried removing , re-installing sublimelinter, still same error.

see here possible fix https://github.com/sublimelinter/sublimelinter/pull/507#issuecomment-21831056

for me worked:

add global.window = {}; on top linter.js

linter.js located @ .../sublime text 2/packages/sublimelinter/sublimelinter/modules/libs/jshint/linter.js


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -