Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kevinmai opened this issue Mar 13, 2019 · 18 comments
Open

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

kevinmai opened this issue Mar 13, 2019 · 18 comments

Comments

@kevinmai
Copy link

[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
Copy link

How I can fix this error on atom

@Cobatkao
Copy link

same here, hope to fix it ASAP

@rafaelurben
Copy link

same issue here

@Cerealkillerway
Copy link

having the same issue continuously

@JoeBaldwin90
Copy link

Here's how I fixed this:

  • Packages > Autoclose > Settings
  • Under "Disabled file extensions" I added "coffee"
  • Closed Atom
  • Restarted Atom

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

@nerdoc
Copy link

nerdoc commented Apr 17, 2019

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
Copy link

installing pending updates resolved the issue for me.

@Cerealkillerway
Copy link

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
Copy link

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

@carsonpowers
Copy link

Had to end up uninstalling.

@ashwani20
Copy link

Atom really sucks

@javaskript
Copy link

javaskript commented Dec 8, 2019

@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().

@ghost
Copy link

ghost commented Apr 13, 2020

@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
Copy link

javaskript commented Apr 13, 2020

@Ankur908: this solves the problem thanks man

Sure, glad it’s sorted for you 👍

@kaushalvyas010
Copy link

@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
Copy link

javaskript commented Apr 25, 2020

@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
Copy link

@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
Copy link

ctt23 commented Sep 5, 2022

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests