awaw00 / autoclose

Atom package - close html-like tag in all file automaticly
MIT License
3 stars 23 forks source link

Uncaught TypeError: this.action.disposalAction is not a function #18

Open kevinmai opened 5 years ago

kevinmai commented 5 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.35.1 x64 Electron: 2.0.18 OS: Microsoft Windows 10 Home Thrown From: autoclose package 0.0.2

Stack Trace

Uncaught TypeError: this.action.disposalAction is not a function

At C:\Users\Kevin_VS\.atom\packages\autoclose\lib\autoclose.coffee:39

TypeError: this.action.disposalAction is not a function
    at Object._paneItemChanged (/packages/autoclose/lib/autoclose.coffee:39:29)
    at /packages/autoclose/lib/autoclose.coffee:26:8
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:1172354)
    at Emitter.emit (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:1173795)
    at Workspace.didActivatePaneContainer (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:424001)
    at Dock.subscriptions.l.paneContainer.onDidActivatePane (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:468782)
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:1172354)
    at Emitter.emit (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:1173795)
    at PaneContainer.didActivatePane (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:446187)
    at Pane.activate (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:463516)
    at Pane.focus (~/AppData/Local/atom/app-1.35.1/resources/app/static/<embedded>:11:454969)
    at HTMLElement.handleFocus (/app.asar/src/pane-element.js:41:20)

Commands

Non-Core Packages

atom-html-preview 0.2.6 
atom-live-server 2.3.0 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
autoclose 0.0.2 
autoclose-html 0.23.0 
file-icons 2.1.30 
livereload 0.4.4 
php-twig 4.0.0 
yventura21 commented 5 years ago

How I can fix this error on atom

Cobatkao commented 5 years ago

same here, hope to fix it ASAP

rafaelurben commented 5 years ago

same issue here

Cerealkillerway commented 5 years ago

having the same issue continuously

JoeBaldwin90 commented 5 years ago

Here's how I fixed this:

I then uninstalled the autoclose package and reinstalled it again for good measure.

nerdoc commented 5 years ago

Same issue. Workaround as @JoeBaldwin90 posted did not help me. After adding coffee to the list and uninstalling/installing autoclose, the problem remains after many clicks just into the editor canvas. I ended in uninstalling - I can't use Atom any more.

npacifique commented 5 years ago

installing pending updates resolved the issue for me.

Cerealkillerway commented 5 years ago

Even if it's disabled by default for .js and .jsx files, I receive the error opening also this kind of files... I ended in uninstalling too

jmoody04 commented 5 years ago

Disabling and re-enabling the package resolved the issue for me.

carsonpowers commented 5 years ago

Had to end up uninstalling.

ashwani20 commented 5 years ago

Atom really sucks

javaskript commented 4 years ago

@carsonpowers @ashwani20 It isn't Atom's fault. My changes in https://github.com/awaw00/autoclose/pull/16/commits/4f3fe85121d6eceff49cff3cd85d19b2aa84439f from over a year ago fixed this issue, but it has not been merged into master. This error is simply due to the deprecation of disposalAction. Just open autoclose.coffee and replace @action.disposalAction() with @action.dispose().

ghost commented 4 years ago

@carsonpowers @ashwani20 It isn't Atom's fault. My changes in 4f3fe85 from over a year ago fixed this issue, but it has not been merged into master. This error is simply due to the deprecation of dispoalAction. Just open autoclose.coffee and replace @action.disposalAction() with @action.dispose(). this solves the problem thanks man

javaskript commented 4 years ago

@Ankur908: this solves the problem thanks man

Sure, glad it’s sorted for you 👍

kaushalvyas010 commented 4 years ago

@carsonpowers @ashwani20 It isn't Atom's fault. My changes in 4f3fe85 from over a year ago fixed this issue, but it has not been merged into master. This error is simply due to the deprecation of disposalAction. Just open autoclose.coffee and replace @action.disposalAction() with @action.dispose().

This was really helpful, thank you @Ankur908

javaskript commented 4 years ago

@kaushalvyas010:

@carsonpowers @ashwani20 It isn't Atom's fault. My changes in 4f3fe85 from over a year ago fixed this issue, but it has not been merged into master. This error is simply due to the deprecation of disposalAction. Just open autoclose.coffee and replace @action.disposalAction() with @action.dispose().

This was really helpful, thank you @Ankur908

That was my comment, this user just quoted it.

kaushalvyas010 commented 4 years ago

@kaushalvyas010:

@carsonpowers @ashwani20 It isn't Atom's fault. My changes in 4f3fe85 from over a year ago fixed this issue, but it has not been merged into master. This error is simply due to the deprecation of disposalAction. Just open autoclose.coffee and replace @action.disposalAction() with @action.dispose().

This was really helpful, thank you @Ankur908

That was my comment, this user just quoted it.

Well, thank you @javaskript 😊

ctt23 commented 2 years ago

@carsonpowers @ashwani20 It isn't Atom's fault. My changes in 4f3fe85 from over a year ago fixed this issue, but it has not been merged into master. This error is simply due to the deprecation of disposalAction. Just open autoclose.coffee and replace @action.disposalAction() with @action.dispose().

This was really helpful, thank you @Ankur908

How do you open autoclose.coffee?