koala icon indicating copy to clipboard operation
koala copied to clipboard

Throw an error after running

Open ming2xiao opened this issue 7 years ago • 14 comments

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

ming2xiao avatar Jan 16 '18 08:01 ming2xiao

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

zaygraveyard avatar Jan 16 '18 09:01 zaygraveyard

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

ming2xiao avatar Jan 16 '18 13:01 ming2xiao

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

zaygraveyard avatar Jan 16 '18 13:01 zaygraveyard

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

ming2xiao avatar Jan 17 '18 06:01 ming2xiao

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

zaygraveyard avatar Jan 17 '18 08:01 zaygraveyard

@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": "" } } } }

ming2xiao avatar Jan 17 '18 08:01 ming2xiao

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 avatar Jan 17 '18 11:01 zaygraveyard

@zaygraveyard Still not available.

ming2xiao avatar Jan 18 '18 05:01 ming2xiao

@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

ming2xiao avatar Jan 18 '18 06:01 ming2xiao

You can try running Koala as administrator

zaygraveyard avatar Jan 29 '18 09:01 zaygraveyard

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.

AgamlaRage avatar Jun 13 '18 11:06 AgamlaRage

and where does %USERPROFILE%.koala present?

anjitpariyar avatar Jan 14 '20 02:01 anjitpariyar

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

zaygraveyard avatar Jan 14 '20 20:01 zaygraveyard

@zaygraveyard Same proplem happen to me.

Islam-alshiki avatar May 09 '20 14:05 Islam-alshiki