ActiveState Community

Cannot replace in KomodoEdit 4.3?

Posted by TECK on 2008-03-08 22:23

There is something weird happening since the 4.3 KomodoEdit upgrade, on CentOS 5.1 with Gnome interface.
Just to make sure, I deleted everything related to old version, including the .komodo directories for all users (floren and root).
The install went OK. After the init process, I left everything default, except the font size.
Now, if I fire KomodoEdit as root user, I cannot replace in files one word at the time. However, the Replace All works fine. More details:
I opened a window terminal and su - password it for root user. Then, I launched KomodoEdit and opened a .php file in /var/www/html directory. The file is 0644 root:root owned. I can also manually edit the file and save it properly.

The words not replaced are highlighted in green:

Anyone else experienced this issue? If yes, I will report it as a bug.

jeffg | Sun, 2008-03-09 12:59

I tested this and it seems to work fine for me, on MacOS / Intel. That being said there may be a Linux-specific issue here we're not aware of. Can you please log this as a bug:

http://bugs.activestate.com/enter_bug.cgi?product=openkomodo

If you can, please also include any error messages you get. The easiest way to view Komodo errors while running on Linux is simply to start Komodo with the -v option:

komodo -v

This will output verbose start-up information from Komodo, as well as any errors. Start Komodo int his way and then attempt to use the Replace functionality. Do you see any errors?

--
JeffG

TECK | Mon, 2008-03-10 09:18

Will do, Jeff. I will run the verbose mode tonight and post in the bug the error output.

toddw | Mon, 2008-03-10 15:05

I'm not sure, but the file-encoding of 'Latin-1' may have something to do with this... as a test you could try changing the file's encoding to something like 'utf-8' and see if the replace then works.

doublebit | Thu, 2008-03-13 09:31

I'm seeing the same problem on Mac OS X -- "replace all" in the Find dialog works, but clicking "replace" to replace individual occurrences does not.

I ran "./komodo -v" from /Applications/Komodo IDE.app/Contents/MacOS and saw no related error messages. This is all it displayed initially:

komodo: debug: Komodo information:
komodo: debug:   Version: Komodo IDE 4.3.0 (Build 15901)
komodo: debug:   OS type: Darwin release 9.2.0 on i386 (Darwin Kernel Version 9.2.0: Tue Feb  5 16:13:22 PST 2008; root:xnu-1228.3.13~1/RELEASE_I386)
komodo: debug: Komodo startup options:
komodo: debug: 	nFiles: 0
komodo: debug: mutex name: '/Users/Jeff/Library/Application Support/KomodoIDE/4.3/host-jeffpar/mutex.lock'
komodo: debug: acquired mutex: fd=3
komodo: debug: running lock name: '/Users/Jeff/Library/Application Support/KomodoIDE/4.3/host-jeffpar/running.lock'
komodo: debug: No current running Komodo - Ok: fd=4
komodo: debug: commandments file name: '/Users/Jeff/Library/Application Support/KomodoIDE/4.3/host-jeffpar/commandments.fifo'
komodo: debug: first commandments file name: '/Users/Jeff/Library/Application Support/KomodoIDE/4.3/host-jeffpar/first-commandments.txt'
komodo: debug: saving startup environment...
komodo: debug: startup env name: '/Users/Jeff/Library/Application Support/KomodoIDE/4.3/host-jeffpar/startup-env.tmp'
komodo: debug: writing out startup environment
komodo: debug: setting up environment for XRE launch...
komodo: debug: setting XRE_PROFILE_PATH=/Users/Jeff/Library/Application Support/KomodoIDE/4.3/host-jeffpar/XRE
komodo: debug: setting _XRE_USERAPPDATADIR=/Users/Jeff/Library/Application Support/KomodoIDE/4.3/host-jeffpar/XRE
komodo: debug: unsetting MOZILLA_FIVE_HOME env var
komodo: warning: environment variable could possibly conflict with Komodo operation: 'MOZ_PIS_SESSION_PID=8806'
komodo: warning: environment variable could possibly conflict with Komodo operation: 'MOZ_PIS_MOZBINDIR=.'
komodo: warning: environment variable could possibly conflict with Komodo operation: 'MOZ_PIS_API=2'
komodo: warning: environment variable could possibly conflict with Komodo operation: 'MOZ_PIS_USER_DIR=.komodo'
komodo: debug: setting KOMODO_HOSTNAME=jeffpar
komodo: debug: setting _KOMODO_VERUSERDATADIR=/Users/Jeff/Library/Application Support/KomodoIDE/4.3/
komodo: debug: setting _KOMODO_HOSTUSERDATADIR=/Users/Jeff/Library/Application Support/KomodoIDE/4.3/host-jeffpar/
komodo: debug: setting KOMODO_VERBOSE=1
komodo: debug: startup argv for XRE:
komodo: debug: 	argv[0] = './komodo-bin'

-Jeff

doublebit | Thu, 2008-03-13 09:44

It may be specific to PHP files. I tried an XML file and "replace all" worked. The original poster was using a PHP file as well.

-Jeff

fp | Sun, 2008-03-16 12:52

Indeed looks like it only affects files with the php extension. But this is not limited to the Edit version, the full version has this problem too.

cheers
fp