ActiveState Community

All / Any

YAML language does not have linenumbers syntax coloring option (RP)

OS: All / Any

This is a repost because Drupal apparently does not let you add an attachment to a pre-existing discussion thread.

Possibility of recording debug data to replay?

OS: All / Any

Hi,

I suspect this is a daft question, so please forgive my ignorance! This is the
first true IDE I've used so I'm still discovering exactly what it can & can't do.

What I'd like to be able to do is record an entire debug session while running a Perl script, such that each line (of Perl) that was executed was recorded along with the state of each variable. I'd then be able to 'replay' this debug information and step forwards and backwards through the recording, viewing the states of variables at whichever points were necessary.

My little annoyance (back/forward buttons) [SOLVED]

OS: All / Any

There are two ways of doing this. Below is the hard way (patch) or read dreftymac's comment on how to do it with a custom toolbar.

The Patch:

After spending some time reading on how to use XUL I figured this out on my own. In the "C:\Program Files\ActiveState Komodo Edit 5\lib\mozilla\chrome" directory is a file called komodo.jar. Unzip it (I used 7-Zip) and go to "content" directory. Open komodo.xul in any text editor (Komodo Edit of course! :D) and move lines 1,567 - 1,592 to a place in the code where you want the buttons to be or just delete them. Save, exit, and zip all the directories into komodo.jar and then replace your current one. Simple as pie! I just thought I'd share this in case there is a newbie like me out there that didn't know XUL (or where to look :)

--------------------------------------
ORIGINAL:

Hello everyone, this is my first post, and it's rather petty. Nevertheless it still annoys me to no end. In every editor I've ever used on every planet in the entire universe, the standard toolbar buttons begin with "new", "open", etc... But with Komodo Edit the back/forward buttons are in front,

Fast open unbearably slow in 5.2

OS: All / Any

I've tested this on both my MBP and at work on Windows - large PHP projects which fast open would work instantly for now takes a long time (5-10 seconds depending on the project) and on especially large project takes so long that I simply close the dialog and browse the the file manually.

I've attempted to trash the preferences but none of it helps.

YAML language does not have linenumbers syntax coloring option

OS: All / Any

Is there a way to add support for a separate syntax coloring option for linenumbers for YAML files?

TIA

Customizing Projects/Source/Files tabs via userChrome.css

OS: All / Any

I'm trying to work on customizing the interface and have gotten the main file tabs to appear the way I like via userChrome.css ( similar to Coda style ). I used selectors for tabbox, tabs > tab and it all seems to work well. However, these have not carried over to the tabs in the left pane for Projects / Source / Files.

I can get the background to change using the selector "tabs", but can't override the aqua tab look.

Please note, that I have seen the samples on customizing - however these did not provide examples for the items above. Nor was I able to find it on the Mozilla site.

Another Ruby debugging FAQ: the .gem directory

OS: All / Any | Product: Komodo | tags: debugging ruby rubygems
Question: 

Why do I get the error message "ruby-debug-base could not be loaded", even after I've run `gem install ruby-debug-base`?

Answer: 

First, make sure that you've removed Komodo's own ruby-debug-base. You'll find it at /.../dbgp/rubylib/1.8 -- You can either rename that directory to something like "hide-1.8", or remove it. If you're running Ruby 1.9, this won't be an issue. We shipped ruby-debug-base as a favor, but with hindsight, I've begun to think this was the wrong decision. Back in the days of Ruby 1.8.4, not everyone had gem installed. Now it's standard issue on OS X, and easy enough to install.

Second, make sure there aren't any ruby-debug-base instances lurking in your .gem directory -- Ruby picks these in preference to the global gems.

If that doesn't help get your debugger working, along with the other tip in
http://community.activestate.com/faq/rails-debugging-triggers-internal-e...,
please drop me a line via support@activestate.com.

- Eric

[Macro] How to get source for last recorded macro

OS: All / Any

Maybe can be useful to other people.

After I record a macro I need to see the generated code, the macro shown below does this

if (gMacroMgr.currentMacro.length > 0) {
    ko.views.manager.doNewViewAsync(null, null, function(view) {
        view.scintilla.scimoz.text = gMacroMgr.currentMacro.join('');
        view.document.isDirty = false;
        });
}
if (gMacroMgr.currentMacro.length > 0) {
    ko.views.manager.doNewViewAsync(null, null, function(view) {
        view.scintilla.scimoz.text = gMacroMgr.currentMacro.join('');
        view.document.isDirty = false;
        });
}

This is a quick way then save to toolbox and open it

Where does Komodo store the file preferences?

OS: All / Any

The tab preferences in Komodo are a little confusing. I've changed the options in the edit->preferences option for indentation to prefer tabs over spaces. The only problem is that it doesn't seem to change files that already exist. I have to go into each tab, right click on it and choose "Properties and settings" and then change the tab options there as well.

A suggestion: colored tab indicators.

OS: All / Any

I've been working on a Python project. Some of the files are indented with spaces and others with tabs. As I edit files, I've been converting them to tabs to keep them consistent. (I know Guido prefers spaces but I really prefer tabs).

The easiest way to tell what a particular file is using is to turn on the option to show white space. That makes the tabs show up as arrowed lines. I find it looks too cluttered and messy so I turn it off after the file is converted. That forces me to turn it off and on as I go through various files.