ActiveState Community

Unable to save preferences under Ubuntu 8.10 AMD64 (Intrepid)

Posted by adawson on 2008-11-04 13:14

I have Komodo Edit 4.4 working perfectly on this system. However 5.0 will not save preferences - although other than that seems to run fine. I have blown away .komodoedit but letting the app recreate the directory did not help.

Any ideas?

ericp | Tue, 2008-11-04 14:43

See the FAQ page for the question
"Where can I find the Komodo files?" at
http://community.activestate.com/faq/komodo-file-locations

Also, there might be some personal info in that
file you'd prefer not to share (most likely
full path names). Feel free to edit it out --
I'm interested in any error messages and
tracebacks.

adawson | Tue, 2008-11-04 15:12

looks like we might have some relevant stuff in there...

ERROR: prefs:
-- EXCEPTION START --
+ 0 (string) pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
*
-- EXCEPTION END --

ERROR: prefs: pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
ERROR: prefs:
-- EXCEPTION START --
+ 0 (string) pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
*
-- EXCEPTION END --

I don't know if this is relevant but I also get some errors like -

/usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
/usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
/usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgiogconf.so

which also doesn't happen with Komodo 4.4.1

(thanks for the interest!)

ericp | Tue, 2008-11-04 15:28

The two problems are most likely unrelated.

Could you log a bug at
http://bugs.activestate.com/enter_bug.cgi?product=Komodo
on the second problem?

As for the first problem, I'm puzzled, but would
suggest that you shut down Komodo, load your
prefs.xml file (in ~/.komodoedit/5.0/), and
remove any lines that refer to "editSmartSoftCharacters".

This deserves a bug as well.

financialgeek | Wed, 2008-11-05 07:38

I'm experiencing the exact same issue on XP, I am unable to save preferences after visiting the 'Smart Editing' category. There are very similar errors in my pystderr.log file. I've added a comment to Bug#80778. It's a bummer, because I want to enable soft characters.

ERROR: prefs: pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
ERROR: prefs:
-- EXCEPTION START --
+ 0 (string) pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
*
-- EXCEPTION END --

ERROR: prefs: pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
ERROR: prefs:
-- EXCEPTION START --
+ 0 (string) pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
*
-- EXCEPTION END --

ERROR: prefs: pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
ERROR: prefs: Could not save prefs 'editSmartSoftCharacters' to values 'true': pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters

ERROR: prefs: Unable to get the prefs from the pref widgets!
ERROR: prefs: pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters
ERROR: prefs: Could not save prefs 'editSmartSoftCharacters' to values 'true': pref.id is UNDEFINED, aPrefString = editSmartSoftCharacters

financialgeek | Wed, 2008-11-05 07:54

I was able to enable soft characters by editing my ~/.komodoedit/5.0/prefs.xml and add the following line under the <preference-set > node.

<boolean id="editSmartSoftCharacters">1</boolean>

toddw | Wed, 2008-11-05 09:56

This was logged as the following bug:
http://bugs.activestate.com/show_bug.cgi?id=80767

There is also a workaround posted in the bug report, similar to what financialgeek has done above.

This bug should be fixed with the Komodo 5.0.1 release.

Cheers,
Todd

adawson | Wed, 2008-11-05 22:46

nice! totally fixed it.

as for the load module warnings I entered a bug
http://bugs.activestate.com/show_bug.cgi?id=80804

Now 5.0 is operational thanks to you guys.