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

Cannot read property 'dispose' of null at LinterProvider.deactivate #435

Closed
Ulll opened this issue Jun 9, 2018 · 4 comments · Fixed by #439
Closed

Cannot read property 'dispose' of null at LinterProvider.deactivate #435

Ulll opened this issue Jun 9, 2018 · 4 comments · Fixed by #439
Labels

Comments

@Ulll
Copy link

Ulll commented Jun 9, 2018

screenshot

and these tasks take up much more cpu and memory ~

after I restart atom, they're still exist

the only thing I can do right now is add a shell script on osx launchctl , which would force kill unwanted processes

ps aux | grep Main.php  | sort -r | sed '1,2d' | awk '{print $2}' | xargs kill -9
@Gert-dev
Copy link
Owner

This should be working, at least on Linux (it does here). What I mean to say is: this was fixed before. Shutting down the server happens on package deactivation, but if something - such as another package - is causing an error on Atom shutdown, it may be the case that package deactivation never properly finishes. Have you tried disabling other community packages (if you have any)?

@Ulll
Copy link
Author

Ulll commented Jun 14, 2018

@Gert-dev , I think it caused by atom/atom#17020

@chuhta
Copy link
Contributor

chuhta commented Jun 15, 2018

I also have this issue, but I'm using Ubuntu 16.04 with Atom 1.26 and 1.27.

I took a snapshot of the developer tools while shutting down.

Error from PHP IDE Serenata while shutting down Atom

Looking at the code in the LinterProvider, it might have to do with having the linter disabled. I use other more customized linters instead of the one provided by this package, so activate would possibly never be called.

@Gert-dev Gert-dev changed the title run many Main.php tasks on the background Cannot read property 'dispose' of null at LinterProvider.deactivate Jul 1, 2018
@Gert-dev
Copy link
Owner

Gert-dev commented Jul 1, 2018

Alright, I'm renaming this since there does appear to be an issue in the LinterProvider at deactivation time.

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

Successfully merging a pull request may close this issue.

3 participants