sindresorhus / atom-editorconfig

Helps developers maintain consistent coding styles between different editors
https://atom.io/packages/editorconfig
MIT License
812 stars 80 forks source link

Uncaught TypeError: editor.update is not a function #179

Closed ednilsonamaral closed 7 years ago

ednilsonamaral commented 7 years ago

I have that error when using this plugin.

I need to disabled the atom-editorconfig or I can't work with Atom.

Any solution for this issue?

Atom Version: 1.8.0 System: Debian GNU/Linux Thrown From: editorconfig package, v2.0.5

Stack Trace

Uncaught TypeError: editor.update is not a function

At /home/ednilson/.atom/packages/editorconfig/index.js:169

TypeError: editor.update is not a function
    at Object.applySettings (/home/ednilson/.atom/packages/editorconfig/index.js:169:13)
    at observeActivePaneItem (/home/ednilson/.atom/packages/editorconfig/index.js:322:36)
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at /usr/share/atom/resources/app.asar/src/pane-container.js:346:27
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Pane.module.exports.Pane.setActiveItem (/usr/share/atom/resources/app.asar/src/pane.js:282:22)
    at Pane.module.exports.Pane.activateItemAtIndex (/usr/share/atom/resources/app.asar/src/pane.js:414:19)
    at Pane.module.exports.Pane.activatePreviousItem (/usr/share/atom/resources/app.asar/src/pane.js:379:21)
    at Pane.module.exports.Pane.removeItem (/usr/share/atom/resources/app.asar/src/pane.js:564:16)
    at Pane.module.exports.Pane.destroyItem (/usr/share/atom/resources/app.asar/src/pane.js:637:16)
    at atom-tabs.TabBarView.onClick (/usr/share/atom/resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:688:17)
florianb commented 7 years ago

@ednilsonamaral thanks for reporting the issue.

Please provide

I won't be able to dig into this in the next week. I beg for patience.

rolandjitsu commented 7 years ago

I've actually got not additional packages, just this one. But I use an old version of Atom, actually Particle Dev which uses Atom.

ednilsonamaral commented 7 years ago

@florianb

florianb commented 7 years ago

@rolandjitsu - i am sorry i can't support Particle Dev. And i currently don't know an elegant way to support older versions of Atom properly, since there where breaking changes introduced to the UI (by removing the shadow dom).

If you'd like to address issues related to Particle Dev please open a new issue for that and i am willing to discuss any options i can think of, to achieve support for Particle Dev.

florianb commented 7 years ago

@ednilsonamaral i am really sorry, we have a broken engine-dependency in that release, version 2.0.5 of atom-editorconfig is not compatible with atom < 1.11.x.

Since Atom has introduced breaking ui-changes with 1.13 and i don't know an elegant way to support two versions of Atom (before 1.13 and latest), i can't think of an easy fix.

I guess updating to the latest Atom is on option?

I will have to think about this.

ednilsonamaral commented 7 years ago

@florianb now I use the Atom v. 1.14.1. For now, editorconfig it's working! Any new issues I notify you here..

tks ;)

florianb commented 7 years ago

@ednilsonamaral happy to hear that! Happy coding! 😄 ☕️