## Python logging package doesn't work when I run in Komodo

Question:

The documentation states that logging.basicConfig() will take arguments as of Python 2.4, but when I run my script from Komodo, Python says that it should not be given arguments.

The documentation states that logging.basicConfig() will take arguments (new to 2.4), however if this is used in the interpreter it will throw an exception, reporting back that no arguments are allowed.

From documentation (section 6.29.2):
Changed in version 2.4: formerly basicConfig did not take any keyword arguments.

However:

import logging
logging.basicConfig( level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s',
filename="Testing", filemode="w" )
Traceback (most recent call last):
File "C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\pythonlib\dbgp\client.py",
line 3241, in runcode
locals = self.frame.f_locals)
File "C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\pythonlib\dbgp\client.py",
line 1583, in runcode
h_exec(code, globals=globals, locals=locals, module=module)
File "C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\pythonlib\dbgp\client.py",
line 520, in __init__
exec code in globals, locals
File "", line 0, in __main__
TypeError: basicConfig() takes no arguments (4 given)

System:
Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)] on win32


The problem is that the MSI installer did not uninstall all of the files. Specifically, the directory C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\pythonlib\logging should have been removed. Removing this directory will fix the problem.

## Where can I get past versions of Komodo?

Question:

Where can I get past versions of Komodo? Is there an ftp site for Komodo?

You can get past versions of ActiveState products from our downloads repository via the web at:

## What is the ECCN for Komodo?

Question:

What is the Export Control Classification Number for Komodo?

The Export Control Classification Number for Komodo is EAR99 (self-classified). For a brief description of EAR99 and information on the difference between EAR99 and NLR (No License Required), see:

## Keyboard shortcuts for tab switching in Komodo

Question:

When I try to use Ctrl+Tab to switch between editor tabs there doesn't seem to be a regular order. How do I switch tabs in the order in which they appear?

There are currently two ways to switch tabs via keybindings in Komodo. The first is Ctrl+Tab and Shift+Ctrl+Tab, and the second is Ctrl+PgUp and Ctrl+PgDn.

Ctrl+Tab and Shift+Ctrl+Tab switch between tabs in a most-recently-viewed order, which is the same method Visual Studio and some other tabbed editors use. Each time a tab is viewed, it gets put on the top of the list of most-recently-viewed tabs. Needless to say, this rarely stays in the initial order for very long.

Ctrl+PgUp and Ctrl+PgDn switch between tabs in the order in which they were created. This has a better chance of matching the order in which the tabs appear in the tab bar, but isn't absolute -- if you have changed a tab's location in the sequence, it will appear to be out of order.

The Ctrl+PgUp and Ctrl+PgDn keybindings will soon be fixed to always switch tabs in the visual order, regardless of tab sequence changes.

## Output redirection debugging mod_perl with Komodo

Question:

When I debug my mod_perl application using Komodo's remote debugging facilities, the output from my script goes to the console of the web browser rather than my browser. How do I make this work the way I expect?

Have you ever tried debugging a mod_perl app in Komodo only to find that your output is going to the controlling terminal of the webserver, rather than your web browser? The reason this happens on some configurations is not well understood, but the solution is simple.

Rather than using Perl's print() function, use the print() method of the mod_perl request. In other words, if your request object is $r, then $r->print() is the way to go.

## Remove Mozilla Profile Lock File

Question:

I get the error "Could not remove running lock file". How do I fix this?

Sometimes Komodo will leave an orphaned lock file if it hangs or
quite unexpectedly. If you get an error that says:

  komodo: error: Could not remove running lock file,


Try manually removing the following file:

  .komodo/2.5/Mozilla/default/jhgkjhg.slt/lock


## Komodo Debugging with PHP / Apache

Question:

How do I configure Apache for PHP debugging in Komodo?

1. Edit the php.ini file that Apache is using and add these values:

    zend_extension_ts=c:\path\to\php_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=1


To verify that this is configured properly, create a script called 'info.php' containing the code:

    <?php phpinfo(); ?>


You should see the xdebug extension settings section near the bottom of the output.

2. Open Komodo and go to Edit / Preferences / Debugger. Change the debugger
listener port to 9000. Also, go into the 'Debug' menu and make sure the
debugger listener is enabled.
3. Open up a browser window and point it at a PHP script on your local Apache,
but first append the XDEBUG_SESSION_START variable to the url:

    http://localhost/index.php?XDEBUG_SESSION_START=1


A dialog-box should appear in Komodo announcing that a remote debug session has been
requested.

## UTF-8 Encoding

Question:

My non-English language files do not appear correctly. What can I do to correct this?

Customers running with non-English language localizations need to adjust
their Komodo localization settings to UTF-8 unicode:

1. Click to Edit | Preferences | Internationalization
2. De-select 'Use Encoding Defined in Environment'
3. Select 'UTF-8' from the Encoding list.

To change a specific file's encoding scheme:

1. Open the file in Komodo
2. Right-click and select 'Properties and Settings'
3. Select UTF-8 from the 'Encoding' list.

Question:

I get an 'Invalid License' error message when starting Komodo. Why?

Ensure that the version of Komodo you have downloaded and installed matches the license you have purchased (i.e. Komodo Personal vs. Komodo Pro -- the licenses are not interchangable).

You can check the version of the the installed ActiveState license here:

Windows XP:

%USERPROFILE%\Application Data\ActiveState\ActiveState.lic

Windows 7:

%USERPROFILE%\AppData\Roaming\ActiveState\ActiveState.lic

Linux:

Look for the line that says "Komodo". Immediately following the version number will be either Personal or Professional. Whichever it is is the version of Komodo you should install. If you have the appropriate license installed, try removing the license file (specified above) and reinstalling the license.

Installers for all versions of Komodo (including older releases) can be downloaded from:

## Komodo User Preferences

Question:

I want to re-install Komodo. How do I keep my user preferences?

User preferences are stored in the following directories.

On Windows 7 and Vista:

C:\Users\\AppData\local\ActiveState\KomodoIDE\\

On Windows 2000 / XP: