I have a problem


#1

Hi,

i’m using Atom for a few month and I never encountered any problems before recently…
When i start Atom it looks like a new internet page with nothing but the developpment tool…

Can someone help me out ?


#2

What does the error message in the Console tab say? What happens when you start Atom from the command line with atom --safe? What happens when you start Atom with atom --clear-window-state? If one of those two methods works, try closing Atom and reopening it normally and see if it’s still broken.


#3

are your commands available on windows’ shell ? ( never mind i’ll try ).

the error says that :

index.js:87 TypeError: Cannot set property ‘important’ of undefined
at Array. (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\variable.js:31:42)
at Variable.find (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\variable.js:48:17)
at Variable.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\variable.js:26:21)
at Expression.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\expression.js:31:37)
at Value.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\value.js:18:30)
at Array. (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\variable.js:33:28)
at Variable.find (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\variable.js:48:17)
at Variable.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\variable.js:26:21)
at C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\call.js:31:54
at Array.map ()
at Call.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\call.js:31:26)
at Condition.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\condition.js:33:29)
at Selector.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\selector.js:87:59)
at Ruleset.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\ruleset.js:44:41)
at Ruleset.eval (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\tree\ruleset.js:149:50)
at module.exports (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\transform-tree.js:67:22)
at ParseTree.toCSS (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\parse-tree.js:14:25)
at C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\render.js:31:40
at C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\parse.js:63:17
at ImportVisitor.finish [as _finish] (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\parser\parser.js:183:28)
at ImportVisitor._onSequencerEmpty (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\visitors\import-visitor.js:35:14)
at ImportSequencer.tryRun (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\visitors\import-sequencer.js:50:14)
at ImportVisitor.run (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\visitors\import-visitor.js:29:25)
at Object.parse (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\parser\parser.js:189:22)
at Object.parse (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\parse.js:61:18)
at Object.render (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\less\lib\less\render.js:25:18)
at C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app\static<embedded>:14:1066025
at LessCache.t.exports.LessCache.observeImportedFilePaths (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app\static<embedded>:14:1063973)
at LessCache.t.exports.LessCache.parseLess (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app\static<embedded>:14:1065980)
at LessCache.t.exports.LessCache.cssForFile (C:\Users\U794542\AppData\Local\atom\app-1.33.0\resources\app\static<embedded>:14:1066566)


#4

i tryied your commands in windows’ shell it doesn’t work and in the atom console it says :

atom --safe
VM260:1 Uncaught SyntaxError: Unexpected identifier
atom --clear-window-state
VM302:1 Uncaught SyntaxError: Unexpected identifier


#5

If:expressionless: your commands are linux commands only my other pc is under linux and atom works fluidly so i can’t test them :


#6

For Linux:
https://flight-manual.atom.io/hacking-atom/sections/debugging/#platform-linux

@DamnedScholar did give you correct (universal) suggestion. IMHO your installation is “damaged”.


#7

the problem is that i’m under windows 7 and not linux on this computer


#8

For Windows:
https://flight-manual.atom.io/hacking-atom/sections/debugging/


#9

Based on the type of error, I’d recommend deleting the folder where Atom was installed (AppData/Local/atom/ on modern Windows machines, but I don’t know if 7 is before or after the modern AppData setup) and rerunning the installer.