Komodo file locations

Posted by toddw on 2007-02-16 12:33
OS: All / Any | Product: Komodo | tags: error logging
Question: 

Where can I find the Komodo files?

Answer: 

Where is Komodo installed?

The default location varies by platform, and the name of the directory corresponds to the version of Komodo you are running ("IDE" or "Edit" plus the version number - e.g. "Komodo IDE 8"):

  • Windows
    C:\Program Files\ActiveState Komodo [IDE|Edit] <version>\
  • Linux
    /opt/Komodo-[IDE|Edit]-<version>/
  • OS X
    /Applications/Komodo-[IDE|Edit]-<version>.app

Where does Komodo keep settings data?

Komodo stores preferences, macros, templates, keybinding schemes and other settings in a user-specific directory called the user data directory. The name and location of this directory varies depending on the operating system and Komodo version:

  • Windows Vista, Windows 7, Windows 8 or newer
    C:\Users\<user>\AppData\Local\ActiveState\Komodo[IDE|Edit]\<version>
  • Windows XP or older
    C:\Documents and Settings\<username>\Local Settings\Application Data\ActiveState\Komodo[IDE|Edit]\<version>
  • Linux
    /home/<user>/.komodo[ide|edit]/<version>
  • Mac OS X
    /Users/<user>/Library/Application Support/Komodo[IDE|Edit]/<version>

You can find more details about the contents of the profile directory here:
http://community.activestate.com/faq/komodo-profile-structure

The location of this directory can be overridden using the KOMODO_USERDATADIR environment variable, see:
http://community.activestate.com/faq/multiple-instances-komodo

Where does Komodo log output and errors?

Note: In Komodo 6, you can use the "Help->Trouble Shooting->View log file" menu command to quickly examine Komodo's main log file ("pystderr.log").

There are two files named "pystderr.log" and "pystdout.log" within your Komodo user data directory. These files are extremely useful for troubleshooting problems with Komodo and are often requested when logging bug reports.

  • Windows Vista, Windows 7, Windows 8 or newer
    C:\Users\<user>\AppData\Local\ActiveState\Komodo[IDE|Edit]\<version>\pystd[err|out].log
  • Windows XP or older
    C:\Documents and Settings\<username>\Local Settings\Application Data\ActiveState\Komodo[IDE|Edit]\<version>\pystd[err|out].log
  • Linux
    /home/<user>/.komodo[ide|edit]/<version>/pystd[err|out].log
  • Mac OS X
    /Users/<user>/Library/Application Support/Komodo[IDE|Edit]/<version>/pystd[err|out].log

How do I reset Komodo's preferences to the default settings?

Warning: This will reset a lot of preference information, including opened files, recent files, projects and toolbox, additional installed extensions, customized Komodo preferences, etc... So make sure you backup the folder instead of simply deleting it, this way you can easily restore your settings.

Your preferences should be reset.

Note 1: If you have older Komodo preferences from before Komodo 4.0, these will be applied on-top of the default preferences as part of a Komodo upgrade process, so for a total default/fresh set of preferences you will need to rename the older komodo directory as well.

Note 2: You can also use a completely different Komodo user data directory, see below.

How can I change Komodo's profile storage location

You can use a completely custom Komodo user data (profile) directory by setting the KOMODO_USERDATADIR variable in your environment settings before starting Komodo.

Example:
export KOMODO_USERDATADIR=/tmp/komodoide

dafi | Mon, 2008-07-28 10:23

The code shown below if executed as macro shows userdata directory into the file manager

var currProfPath = Components.classes["@mozilla.org/file/directory_service;1"]
    .getService(Components.interfaces.nsIProperties)
    .get("PrefD", Components.interfaces.nsILocalFile)
    .path

Components.classes["@activestate.com/koSysUtils;1"]
    .getService(Components.interfaces.koISysUtils)
    .ShowFileInFileManager(currProfPath);

Tested under Linux and Windows

--
dafi
Enhance KomodoEdit with MoreKomodo

jbarclay | Mon, 2009-09-14 19:56

to get to the log files via the windows explorer interface on Vista, you need to enter the path since the "AppData" directory is not visible by default. This fooled me into thinking the log files weren't written on startup.

C:\Users\\AppData\Roaming\ActiveState\KomodoIDE\...

tuckerj | Fri, 2009-10-23 15:20

when i install komodo edit 5.2.0 and then try to open the application I receive the following "Failed to open register key Software\MicroSoft\Windows\CurrentVersion\Explorer\Shell Folders" has anyone else seen this error. I running Vista Home Premium version 6.0.6002 Service Pack 2 6002

sridharr
ActiveState Staff
Fri, 2010-10-29 10:48

Of late I am getting errors with partial update on Windows. Is there a separate log file for the update component, or is it the same pystderr.log?

toddw
ActiveState Staff
Fri, 2010-10-29 13:32

There are separate Mozilla log components for auto update (you'll need to set these through "about:config" or through the Komodo pref file).

user_pref("app.update.log.Checker", true);
user_pref("app.update.log.Downloader", true);
user_pref("app.update.log.General", true);
user_pref("app.update.log.UI:CheckingPage", true);
user_pref("app.update.log.UI:DownloadingPage", true);
user_pref("app.update.log.UI:LicensePage", true);
user_pref("app.update.log.UpdateManager", true);
user_pref("app.update.log.UpdateService", true);

I read somewhere that you can set:
user_pref("app.update.log", true);

and it works for all logs - though not sure if that works for Komodo 6's Mozilla version (1.9.1).

These logs go the JavaScript Error Console I believe:
http://community.activestate.com/xpi/dock-error-console

Cheers,
Todd

timmmm | Tue, 2012-10-09 07:19

There's a very annoying bug which causes komodo edit to forget per file settings. It would be nice to know where it stores this information so I can debug it...

Edit: Never mind it is in doc-state.xmlc