Atom crashes when javascript


#1

Atom crashes everytime i try to define my function in javascript. Take a look at this image.

http://prntscr.com/6v3pwi <---- Screenshot

I tried to declare a simple gulp function and thought maybe it’s because it’s gulp it crashes, even though it doesnt have to do anything with an Editor. So i tried many times with other simple functions and every time i try to write:

var gulp = require ('gulp');

gulp.task('default', function(){
		console.log('Hello, World');
});

after writing the function i try to put the semi columns and the program freezes.


#2

Have you followed the suggestions in the Debugging document? Also, could you give the following information?

  • Which version of Atom are you using?
  • What OS and version are you running?
  • Do you have the Emmet package installed?
  • Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?

#3

Yea that does sound like a package trying to do something while you’re typing here.
If it works fine in atom --safe, you’ll know whether any community packages were responsible.


#4

This crash comes from jshint package (or atom-jshint). I had the same, no error in the console or anything.
I just removed it and reinstall the atom-jshint package and now it works fine !