ActiveState Community

OS X

Slow to close window - CPU spikes

OS: OS X

I am seeing slowness and CPU spike when closing a window that shows a few files and has a Drupal project in project drawer. Takes about 5-10 seconds to close window. Something komodo does during window close is not so efficient. My guess.

Problem with nsIClipboard

OS: OS X

I've a strange problem with Komodo 5.2.2 inside extensions and macros.

The following code verifies if the clipboard contains HTML, when executed from Firefox (3.5.x) and Thunderbid (2.x and 3.0b4) it works like expected but when executed from Komodo it returns always false.

Under Komodo for Linux (32/64bit) and Windows it works fine under OSX Snow Leopard doesn't work.

Any idea?

To execute the snippet from Firefox or Thunderbid you can copy directly on Error Console Evaluate input box (be sure to put all in one single line)

Debugging Ruby on Snow Leopard

OS: OS X | Product: Komodo | tags: os x ruby snow leopard
Question: 

I recently upgraded my Mac to Snow Leopard, and now when I try to debug Ruby I get a message like this:

Error: dlopen(/Applications/Komodo IDE.app/.../ruby_debug.bundle,
no suitable image found. Did find:
/Applications/Komodo IDE.app/.../ruby_debug.bundle:
mach-o, but wrong architecture

How do I debug again?

Answer: 

Yes, it's Yet Another Ruby Debugging question.

Snow Leopard is essentially a 64-bit machine, and the
ruby-debug-base gem that ships with Komodo is 32-bit.

The best thing to do is to rename the directory in
/Applications/Komodo IDE.app/Contents/SharedSupport/dbgp/rubylib/
from "1.8" to "1.8-32"

and the install and build the appropriate ruby-debug-base gem
with this command:

sudo gem install ruby-debug-base

You might not be out of the woods yet. If you get an error message
complaining that header files can't be found, you probably need
to install the XCode Dev Tools.

-- Eric

Is there a 32K limit on the size of matches in Perl?

OS: OS X

Hi,

I am trying to match parts of a very large string in Perl.

Here is the code:

while ($String =~ /(?:A|G|C|T)+/gc)
{
print $-[0]."\t".$+[0]."\n";
}

The length of $String is about 2,500 Kb.
The first match should be from 0 to about 370 Kb.
But the value of $+[0] maxes out at 32K.

Is this the upper limit on the length of the match string, or am I doing something very wrong?

Rick

one file crashes komodo edit but I need it...

OS: OS X

Hello All:

For some reason when i go to open this one file as of today, it crashes my KomodoEdit.

I have these details when it crashes, can someone help me figure what the issue is as I need to edit this file.

Process: komodo-bin [1302]
Path: /Applications/Komodo Edit.app/Contents/MacOS/komodo-bin
Identifier: com.activestate.Komodo
Version: 5.2 (5.2)
Code Type: X86 (Native)
Parent Process: launchd [199]

Date/Time: 2009-11-06 17:19:12.345 -0500
OS Version: Mac OS X 10.6.1 (10B504)
Report Version: 6

Folding HTML

I just started using Komodo Edit and am really enjoying it. One thing I can't quite figure out is how it decides where to fold HTML code. It seems to me that it folds from the first opening tag of a line to include the line of its closing tag. I think my confusion stems from including multiple opening or closing tags on one line. Can anyone confirm this or are there other folding criteria for HTML?

Thanks!

File encoding pb

OS: OS X

Hi all,

I am new to Komodo and I have been trying to write a small HTML file. The file contains some french letters. When I save the file the french letters are changed into weird symbols in the HTML text file. I am sure I am missing something in the preferences panel to set the save language to French. Can you help me ?

Thks

Fortran syntax highlighting and/or adding a new language

OS: OS X

Hi,

Is there an existing extension to add fortran syntax highlighting to Komodo Edit? I use Komodo Edit for my python code all the time, and would like to use it for fortran as well.

Else, is there a tutorial somewhere to demonstrate how to add support for a new language to Komodo Edit? I don't want autocompletion etc., just syntax highlighting and indenting. I found a tutorial at http://blogs.activestate.com/2007/01/kid_adding_a_ne but if it doesn't work for Komodo 4.2, I doubt it will work for version 5.2.1. Is there a more updated tutorial somewhere?

Thanks,

Sourish

Using 32-bit Python from Komodo under Snow Leopard

OS: OS X

Apparently the Python in Snow Leopard runs in 64-bit mode, but many of my packages (wxPython, in particular) is only 32-bit. So when I try to run my app from Komodo 5.2.1, I get errors like this:

ImportError: /usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)

Can anyone suggest a workaround? Is there a way to get Komodo to use 32-bit Python? I'm able to run my app from the TextMate Python bundle, but can't debug from there. Thanks!

Regarding FTP, images and drag and drop.

OS: OS X

Hey there, day three of testing Komodo Edit and I have what (I hope) are my final set of newbie questions. So here we go.

Can Komodo Edit do FTP publishing?

I've downloaded addons, read forum posts and I still don't quite understand publishing within Komodo. It seems to me that there's really nothing equivalent to publishing on the order of Coda, Dreamweaver, Espresso, Ultraedit or the other web-specific IDEs. At best it seems Komodo can define an FTP account and connect to it, but it doesn't otherwise integrate with my projects in any way.