Can't open files in Komodo IDE 9.0

I installed Komodo ID 9.0, and tried to open a few files I am working on. About half of the files I try to open don’t open. I don’t get any error message or any feedback. This happens whether I try to open them from the “Places” side bar, or the “Open File” dialog.

I am using Windows 8.1 Pro. The files are stored locally. The successful & failed files are in the same folder. Some .pl (perl) files succeed and some fail. Same with .pm (perl module). I don’t see any common denominator to the failed files.

I still have Komodo IDE 8.5 installed, but I closed the files within it, and closed the 8.5 IDE altogether.
Thanks,
Gil

Could you please share your error log? Help > Troubleshooting > View Log File

[2015-03-24 09:42:02,759] [INFO] Startup: Welcome to Komodo IDE 9.0.0 build 87165 (platform win32-x86, running on Windows post2012Server version 6.3.9600)
[2015-03-24 09:42:02,759] [INFO] Startup: C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\komodo.exe built on Wed Mar 18 21:58:08 2015
[2015-03-24 09:42:03,746] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2015-03-24 09:42:03,747] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'component' directive. (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:1
[2015-03-24 09:42:03,749] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'contract' directive. (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:2
[2015-03-24 09:42:03,749] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'interfaces' directive. (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:3
[2015-03-24 09:42:03,809] [WARNING] root: ko.logging has been converted to a CommonJS module; use require("ko/logging") instead (since Komodo 9.0.0a1).
    @chrome://komodo/content/komodo.js:15:1

[2015-03-24 09:42:04,105] [WARNING] console-logger: Unknown property 'border-radius-top-left'.  Declaration dropped. (1) in less://commando/skin/commando.less:19
[2015-03-24 09:42:04,105] [WARNING] console-logger: Unknown property 'border-radius-top-right'.  Declaration dropped. (1) in less://commando/skin/commando.less:20
[2015-03-24 09:42:04,486] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2015-03-24 09:42:04,657] [WARNING] keybindings: [Ctrl+Shift+U] was used for 'cmd_convertLowerCase', overriding to use 'cmd_scope-sections'
[2015-03-24 09:42:05,943] [WARNING] root: ko.findresults was already loaded, re-creating it.

[2015-03-24 09:42:05,990] [DEBUG] places_js: waiting for document complete
[2015-03-24 09:42:07,937] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/komodo.xul:0
[2015-03-24 09:42:07,937] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/komodo.xul:0
[2015-03-24 09:42:07,937] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/komodo.xul:0
[2015-03-24 09:42:08,029] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/components/koamAddonManager.js:138
[2015-03-24 09:42:17,558] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/tail/tail.xul:0
[2015-03-24 09:42:17,558] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/tail/tail.xul:0
[2015-03-24 09:42:17,558] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/tail/tail.xul:0

I tried to attach the log file, but I couldn’t figure it out, so I copied the entire contents. It lets me attach an image but not a log file. If you need, I can rename it to img to go around the system (if it will let me).
Thanks,
Gil

Attaching it like you did is fine (though you may want to turn it into preformatted text)

I think you posted your log file from a fresh start. Please reproduce your issue first, then post the log file.

I see - the log gets cleared on every close of the IDE. Ok, I started it, reproduced and got the log right after. I would be happy to turn it into preformatted text, but I don’t know how. So, sorry, I am attaching it through a simple copy & paste.

[2015-03-24 11:20:08,727] [INFO] Startup: Welcome to Komodo IDE 9.0.0 build 87165 (platform win32-x86, running on Windows post2012Server version 6.3.9600)
[2015-03-24 11:20:08,729] [INFO] Startup: C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\komodo.exe built on Wed Mar 18 21:58:08 2015
[2015-03-24 11:20:09,645] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2015-03-24 11:20:09,645] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'component' directive. (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:1
[2015-03-24 11:20:09,647] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'contract' directive. (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:2
[2015-03-24 11:20:09,647] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'interfaces' directive. (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/extensions/scope-files@activestate.com/components/component.manifest:3
[2015-03-24 11:20:09,697] [WARNING] root: ko.logging has been converted to a CommonJS module; use require("ko/logging") instead (since Komodo 9.0.0a1).
    @chrome://komodo/content/komodo.js:15:1

[2015-03-24 11:20:09,959] [WARNING] console-logger: Unknown property 'border-radius-top-left'.  Declaration dropped. (1) in less://commando/skin/commando.less:19
[2015-03-24 11:20:09,959] [WARNING] console-logger: Unknown property 'border-radius-top-right'.  Declaration dropped. (1) in less://commando/skin/commando.less:20
[2015-03-24 11:20:10,319] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2015-03-24 11:20:10,474] [WARNING] keybindings: [Ctrl+Shift+U] was used for 'cmd_convertLowerCase', overriding to use 'cmd_scope-sections'
[2015-03-24 11:20:11,703] [WARNING] root: ko.findresults was already loaded, re-creating it.

[2015-03-24 11:20:11,736] [DEBUG] places_js: waiting for document complete
[2015-03-24 11:20:13,799] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%209/lib/mozilla/components/koamAddonManager.js:138
ERROR:xpcom:Unhandled exception calling 'int8 * initWithFile(in nsISomething, in boolean);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koDocument.py", line 184, in initWithFile
    self._setupPrefs()
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koDocument.py", line 287, in _setupPrefs
    encoding_name = self._getEncodingNameForNewFile(language)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koDocument.py", line 248, in _getEncodingNameForNewFile
    return self.prefs.getString('encodingDefault')
  File "<XPCOMObject method 'getString'>", line 3, in getString
Exception: 2147549183 (NS_ERROR_UNEXPECTED)
ERROR:xpcom:Unhandled exception calling 'int8 * createDocumentFromURI(in wstring, out retval nsISomething);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koDocumentService.py", line 212, in createDocumentFromURI
    return self.createNewDocumentFromURI(uri)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\components\koDocumentService.py", line 197, in createNewDocumentFromURI
    doc.initWithFile(file,0)
  File "<XPCOMObject method 'initWithFile'>", line 3, in initWithFile
Exception: 2147500037 (NS_ERROR_FAILURE)
[2015-03-24 11:20:23,256] [ERROR] console-logger: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIDocumentService.createDocumentFromURI] (2) in chrome://komodo/content/views.js:537
Traceback (most recent call last):
  File "chrome://komodo/content/views.js", line 537, in 

[2015-03-24 11:20:26,808] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/komodo.xul:0
[2015-03-24 11:20:26,808] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/komodo.xul:0
[2015-03-24 11:20:26,808] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/komodo.xul:0
[2015-03-24 11:20:35,262] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/tail/tail.xul:0
[2015-03-24 11:20:35,262] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/tail/tail.xul:0
[2015-03-24 11:20:35,262] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/tail/tail.xul:0

Would you be able to supply us with your Komodo 9 profile folder? So we can reproduce the bug and prepare a fix.

For information on how to find your profile folder please check

Please zip it up and send it to me via email - nathanr@activestate.com

Your data will not be used in any way except to reproduce and fix the bug.

Once you have made a copy of your profile folder you could try renaming it (eg. 9.0 becomes 9.0-old), make sure Komodo is not running when you do this. You would also have to rename any earlier profile versions as Komodo inherits from older versions. This should get around the issue you’re seeing but you will start again with a clean profile.

Please do not delete the profile folder, yours is the only report I’m currently aware of and to fix the problem we would ideally have a copy of your profile folder.

Apologies for the inconvenience.

Are you sure that the profile is under “C:\Program Files\ActiveState\Komodo IDE 9” and not “C:\Users[user]\AppData\Local\ActiveState\KomodoIDE\9.0”?

The Program Files Komodo IDE folder compressed to aboue 85MB - beyond what I am able to email with my server. I can find a way to send it (e.g. dropbox) if this is really what you need.

If you need the AppData folder that I mentioned, it’s 18MB, which I am able to send by email.

Side note: I didn’t modify any setting since installing the software earlier today, but maybe it imported settings from my previous (8.5) install, that is still on the computer.

The guide @nathanr gave you correctly says:
Windows Vista, Windows 7, Windows 8 or newer:
C:\Users\<username>\AppData\Local\ActiveState\Komodo[IDE|Edit]\<version>

This is the folder with your Komodo installation.

Great - I just looked at the grey box without clicking on it, so I just saw the “Program Files” location. Once clicking, I see that it lists the 2 folders as I expected, with the profile folder in the location I expected. I just emailed you the zip (about 18MB, so it could take a few minutes).

I will not delete my folder - I understand the importance of my data to reproduce the bug. My goal is to be able to install Komodo IDE 9 (without 8.5) on a new laptop, and have it include any settings I modified. Would I install it, and then copy the current 9 profile on top of it? Or would I copy the 8.5 profile? Or a subset of either of them?
Thanks,
Gil

Hi @ghanoch,

If you’re installing clean on a new machine you can import a subset of the existing 9.0 profile or the 8.5.

Here is a FAQ that explains the pieces that are inside your Komodo profile.

You can include the pieces from your new 9.0 profile that you wish to keep, eg. tools, apicatalogs, templates, schemes, XRE\extensions, etc. Don’t include things like codeintel or doc-state.xmlc.

You could alternatively try the import process again by copying the 8.5 profile over to the new machine and setting it up how Komodo would expect it, eg: C:\Users\YOU\AppData\Local\ActiveState\KomodoIDE\8.5.

Did resetting your profile resolve the issue? I don’t see mention of it above.

  • Carey

@ghanoch are you able to reproduce the problem without a project open?

The FAQ about the Komodo profile is very useful! I am working on figuring out which parts I should copy between installations, with the help of what you wrote. Then, I will:

  1. Clean the profile, and see if the problem stays.
  2. Copy the relevant parts from 8.5 to 9.0, and see if the problem stays.
    I hope to have answer soon.
    Thanks!
    Gil

And, Nathan, to answer your question - I don’t believe that I use projects. I actually don’t even know, so I probably don’t use them and the problem exists without projects open.

I think I made some progress researching the problem!

  1. Cleaning the profile didn’t help.
  2. Copying relevant parts from 8.5 to 9.0 didn’t help.
  3. Copying all of 8.5 on top of 9.0 (replacing all duplicate files) didn’t help.
  4. Moving 8.5 to a different location and deleting 9.0 didn’t help.

BUT: deleting “Komodo IDE”, that includes “ActiveState Komodo IDE 8” & “ActiveState Komodo IDE 9”, got rid of some of my settings, but also solved the problem of files not opening. So, I’ll dig deeper to try to isolate the problem. Feel free to give me guidance.

UPDATE: reintroducing any of the Komodo IDE or KomodoIDE folders brings back the problem. Only if I delete both folders, the problem is solved. So, I kept the regenerated folders, and then just copied prefs.xml, prefs.xmlc & vew-state.xmlc, hoping that all the Perl specific view settings would get restored, but they didn’t. These are things I set at: Edit -> Preferences -> Fonts and Colors -> Language Specific. I see that in version 9.0 the “Fonts and Colors” section was replaced by “Color Scheme”. So, I picked a color scheme and modified it a bit, and now things look like they are working.

I recognize that I am the only one that reported this bug, so I’m happy to help with information to help you reproduce it. Do you need my “Komodo IDE” folder?

I think this may be a preference issue (aka prefs.xml, prefs.xmlc files).

If you open Komodo’s preferences (Edit > Preferences) and navigate to the Internationalization category - double check the Default Encoding setting there, or perhaps change it to use UTF-8.

Cheers, Todd

I can’t find the Internationalization category in the new version, but I did find it in 8.5. It is set as the default encoding for Perl. But, it also says: “Use encoding defined in environment:: cp1252” and “Auto-detect encoding when opened”. At this point, my environment is working, so I will tinker with it only if you need help reproducing my case, to fix any bugs for other users.
Thanks for the creative thinking!
Gil

Enable Show Advanced please.

Mr. ghanoch is not only one with this bug. After I installed latest 9.0 Komodo with 8.5 on machine (under Windows 7), there ARE files that cannot be opened from IDE; however, I have no time at moment to dig deeper - I’m just waiting for resolution on this thread.

Hi @mlorenat,

It sounds like @ghanoch issue has been resolved so you should be good too if you follow the steps above. He reset his profile.

You could try @toddw’s suggestion from above as well to be less intrusive on your prefs, NOTE: make sure you click “show advanced” at the bottom of the prefs as suggested by @Defman.

  • Carey