oklai / koala

Koala is a GUI application for less, sass and coffeescript compilation, to help web developers to the development more efficient.
http://koala-app.com
Other
3.99k stars 522 forks source link

Throw an error after running #726

Open ming2xiao opened 6 years ago

ming2xiao commented 6 years ago

Koala version 2.3.0 Bug report or feature request? Bug report

I download the installation package on the official website for installation, run error after installation。 the error info: ---error--- D:\Program Files (x86)\Koala\app\scripts\projectManager.js:494 Uncaught TypeError: Cannot read property 'options' of undefined

---uncaughtException--- TypeError: Cannot read property 'options' of undefined at creatFileObject (D:\Program Files (x86)\Koala\app\scripts\projectManager.js:494:81) at D:\Program Files (x86)\Koala\app\scripts\projectManager.js:249:27 at Array.forEach () at addFileItem (D:\Program Files (x86)\Koala\app\scripts\projectManager.js:247:14) at Object.exports.refreshProjectFileList (D:\Program Files (x86)\Koala\app\scripts\projectManager.js:136:5) at HTMLButtonElement. (D:\Program Files (x86)\Koala\app\scripts\pages\main\project.js:207:20)

---uncaughtException--- TypeError: Cannot read property 'compile' of undefined at Object.exports.compileFile (D:\Program Files\Koala\app\scripts\compilersManager.js:423:42) at autoCompileWhenAdded (D:\Program Files\Koala\app\scripts\projectManager.js:576:30) at Object.exports.addProject (D:\Program Files\Koala\app\scripts\projectManager.js:61:5) at Timeout._onTimeout (D:\Program Files\Koala\app\scripts\pages\main\project.js:40:28) at ontimeout (timers.js:478:11) at tryOnTimeout (timers.js:302:5) at Timer.listOnTimeout (timers.js:262:5)

---uncaughtException--- TypeError: Cannot read property 'compile' of undefined at Object.exports.compileFile (D:\Program Files\Koala\app\scripts\compilersManager.js:423:42) at StatWatcher. (D:\Program Files\Koala\app\scripts\fileWatcher.js:206:44) at emitTwo (events.js:135:13) at StatWatcher.emit (events.js:224:7) at StatWatcher._handle.onchange (fs.js:1467:10)

---uncaughtException--- TypeError: Cannot read property 'compile' of undefined at Object.exports.compileFile (D:\Program Files\Koala\app\scripts\compilersManager.js:423:42) at StatWatcher. (D:\Program Files\Koala\app\scripts\fileWatcher.js:206:44) at emitTwo (events.js:135:13) at StatWatcher.emit (events.js:224:7) at StatWatcher._handle.onchange (fs.js:1467:10)

---uncaughtException--- TypeError: Cannot read property 'compile' of undefined at Object.exports.compileFile (D:\Program Files\Koala\app\scripts\compilersManager.js:423:42) at StatWatcher. (D:\Program Files\Koala\app\scripts\fileWatcher.js:206:44) at emitTwo (events.js:135:13) at StatWatcher.emit (events.js:224:7) at StatWatcher._handle.onchange (fs.js:1467:10)

---uncaughtException--- TypeError: Cannot read property 'compile' of undefined at Object.exports.compileFile (D:\Program Files\Koala\app\scripts\compilersManager.js:423:42) at StatWatcher. (D:\Program Files\Koala\app\scripts\fileWatcher.js:206:44) at emitTwo (events.js:135:13) at StatWatcher.emit (events.js:224:7) at StatWatcher._handle.onchange (fs.js:1467:10)

112 113 114 115

zaygraveyard commented 6 years ago

Is this the first time you install Koala on your machine?

ming2xiao commented 6 years ago

@zaygraveyard it's not the first. I uninstalled the previous version. and downloaded the latest version of the official website. After the installation is complete,it through the error.I am sure I have deleted all the relevant folders before reinstalling.

zaygraveyard commented 6 years ago

Can you delete %USERPROFILE%\.koala and try again?

ming2xiao commented 6 years ago

@zaygraveyard I cleared all the related files in C disk, the problem still exists after reinstalling.

zaygraveyard commented 6 years ago

Does %USERPROFILE%\.koala exist and is not empty? If so, can you paste the contents of %USERPROFILE%\.koala\settings.json here?

ming2xiao commented 6 years ago

@zaygraveyard %USERPROFILE%.koala is not empty and the file %USERPROFILE%.koala\settings.json is show as below: { "appVersion": "2.3.0", "ignores": [], "includePaths": [], "locales": "en_us", "minimizeToTray": true, "minimizeOnStartup": false, "notifyOnCompleted": false, "autoCompileOnAdd": true, "useCustomRuby": false, "rubyCommandPath": "", "compilers": { "compass": { "options": {}, "advanced": { "useCompassCommand": false, "compassCommandPath": "" } } } }

zaygraveyard commented 6 years ago

Sorry normally removing %USERPROFILE%\.koala, uninstalling Koala using the uninstaller (D:\Program Files\Koala\Uninstall Koala.exe), then reinstalling it should fix the problem. If it doesn't then I don't what could be causing these errors 😞

ming2xiao commented 6 years ago

@zaygraveyard Still not available.

ming2xiao commented 6 years ago

@zaygraveyard i uninstall it, and download the version 2.2.0 ,after installed can't found %USERPROFILE%.koala and koala Can not run.From the Task Manager which can be seen just click after the start of operation, the process is over

zaygraveyard commented 6 years ago

You can try running Koala as administrator

AgamlaRage commented 6 years ago

I had another issue like this one. One day, Koala didn't wanted to run with this error C:/Program Files (x86)/Koala/app/scripts/patch.js cannot read property "appVersion" of null

Sorry normally removing %USERPROFILE%.koala, uninstalling Koala using the uninstaller (D:\Program Files\Koala\Uninstall Koala.exe), then reinstalling it should fix the problem. If it doesn't then I don't what could be causing these errors 😞

@zaygraveyard, your tricks worked for me.

anjitpariyar commented 4 years ago

and where does %USERPROFILE%.koala present?

zaygraveyard commented 4 years ago

@anjitzero Open an explorer window and put %USERPROFILE%\.koala in the location bar, then press enter

Islam-alshiki commented 4 years ago

@zaygraveyard Same proplem happen to me.