I just wrote a blog entry on a convenience command for Ruby on
Rails... but I'm not sure to whom I should address this. I'd like to
see it added to the default Rails bundle that ships with future
TextMate versions if others find it useful. How should I go about
submitting this for review?
Thanks,
Duane Johnson
P.S. Blog entry is at http://blog.inquirylabs.com/
Hi guys,
I get errors when I try to run some Ruby scripts in TM.
NB: I don't have those errors when I run these scripts in Bash (even
from inside TM) or in IRB
I have "TM_RUBY /usr/local/bin/ruby" in my shell variables.
e.g.
When using erb (example taken from Programing Ruby):
---------
#!/usr/local/bin/ruby
require 'erb'
input = %{\
<% high.downto(low) do |n| # set high, low externally %>
<%= n %> green bottles, hanging on the wall
<%= n %> green bottles, hanging on the wall
And if one green bottle should accidentally fall
There'd be <%= n-1 %> green bottles, hanging on the wall
<% end %>
}
high,low = 10, 6
erb = ERB.new(input)
erb.run
-----------
I get:
RubyMate r2496 running Ruby v1.8.4.
>>> ~/bin/test.rb
/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/
tmruby.rb:180: bad value for range (ArgumentError)
from /Library/Application Support/TextMate/Bundles/Ruby.tmbundle/
Support/tmruby.rb:120
===========================================
When using 'sqlite3':
-----------
#! /usr/local/bin/ruby
require 'sqlite3'
db = SQLite3::Database.new( "/Users/fatal/bin/test.db" )
p db.execute( <<-SQL
SELECT * FROM posts;
SQL
)
db.close
-----------
I get:
RubyMate r2496 running Ruby v1.8.4.
>>> ~/bin/jots/test2.rb
(eval):5: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [powerpc-
darwin8.4.0]
Program exited with return code.
NB: This script works, but I get the error, sometimes scripts using
sqlite3 doesn't work at all, sometimes I only get "Program exited
with return code."
I have other errors of this kind, but examples are more complicated
to share or I didn't take note of them.
Am I missing something?
Thanks for any tips.
-
Fred
>> When searching in the "go to symbol" pop-up, I find that because
>> the search alphabetizes the results, it's very much the opposite
>> of useful.
>
> It shouldn’t alphabetize them, but instead rank them based on how
> good a candidate the match is for the search/filter string.
>
> For example if we have George Costanza and Charlie Sheen in the
> list, and enter CS, it will show both names (as both contain C and
> S), but it should show Charlie Sheen first, since CS is a “better”
> match for that, than it is for George Costanza.
Okay, that makes sense.
A ranked-order search result makes a lot of sense when the order of
symbols is unimportant and/or there are not enough identical results
to confuse the list. But when there are a lot (say, over 20) of
identical results, the placement in the document becomes very
important, in fact it becomes just as important as the match itself.
A simple way to achieve this is with a search result that also
outputs line-numbers... I know that would do the trick for me. Now
for a crappy mock-up! This is not the prefect example, but you get
the idea.
First I tried an update and got:
svn: Failed to add directory '/Library/Application
Support/TextMate/Bundles/SQL.tmbundle/support': object of the same
name already exists
I deleted the checked out directory and did a fresh checkout and got
the same error!
I notice that the last 2 commits are:
intermediate step to rename support
recover capitalized Support directory
Any ideas what this might be? Possibly some naming clash as a result
of an attempt to rename Support to support.
Stephen
Hi,
I just wanted to post a nice snippet I just made...er, actually I just
ripped it from the fun (function) snippet. It goes like this:
prototype.${1:method_name} = function(${2:first_argument}) {
${0:// body...}
};
I have it set up to expand on proto<tab>. Actually, after thinking
about it, maybe this would be better:
${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
${0:// body...}
};
Either way, I think this is really useful because like all good snippets
it keeps you from typing a bunch of stuff that is always the same, and
it keeps you from forgetting the trailing semicolon (which the fun
snippet and auto-close brace omit).
Any chance on getting something like this included with Textmate out of
the box? Forgive me if this has already been discussed; a quick search
on the list and wiki didn't turn up anything on this subject.
Also, the fun snippet that's included uses "# body..." instead of "//
body...". Is this intentional, or was the hash just forgotten when
porting the snippet from another language?
Mike
There has been some talk in the past about TextMate's undesired
tendency to use a software generated bold for the Bitstream Vera Sans
Mono font.
One fix seems to be to run:
sudo rm -rf /Library/Caches/com.apple.ATS
Afterwards one will have to reboot the machine, but then the bold
shows up as drawn. And what a difference it makes:
Though I don't know for how long this fix will work. And it will
still look incorrect when the bold text is light on a dark background.
Hi All,
I'm evaluating TextMate and find it very useful, but I can't get it
to remember the [BBEdit] Theme that I have downloaded.
1: Does the non-licensed version not remember importet Themes?
2: Is something else wrong?
Here's how I do it:
- Doubble-click the Theme file in the Finder -> opens it in TextMate
and activates it..
- Quit TM = It's gone from the Theme selector in Prefs, but still in
my AppSupport folder...
Hints?
Jakob Peterhänsel
"Tell me why, don't we try, not to break our hearts
and make it so hard for our selfs"
P.S.B. 1987
Email: jakob(a)hjemme.dk
AIM: Marook
Phone: +45 22684961
Hi,
I'm working on a grammar for Io (www.iolanguage.com) and I've got a
basic one working. I notice that in the other languages I've looked
at, typing a "{" , getting the auto-paired "}" , and hitting return
with the cursor in the middle, gets you a new line and the
indentation decreased. Like so:
before:
if(true) {}
hit return:
if(true) {
}
Now, in Io, matching parens serve as block delimiters (effectively
anyway). So you could have this statement:
if(true) then (
// do something
)
So, I'd like to have the same behavior for parens as one gets for
braces, but I can't seem to locate where this is enacted. As far as
I can tell, there is no key in the grammar or language preferences to
auto-expand this sequence, but I'm new to all this.
Does anyone know if this is part of the language definition system
that I can control?
Thanks in advance,
John
John Clayton
---------------------------------------------------------------------
http://www.fivesquaresoftware.com
john(a)fivesquaresoftware.com
---------------------------------------------------------------------
CatSlapper - Manage and install multiple Tomcats
When searching in the "go to symbol" pop-up, I find that because the
search alphabetizes the results, it's very much the opposite of useful.
In my screenwriting bundle it's possible to have over 20 matches for
the same symbol-search-string, if I can't see those results in the
order they are in in the document, the search is useless. Wouldn't
this be a problem in other languages as well?
There is a "Keep Symbols Alphabetized" option in the pop-up at the
bottom of the window, why not the search pop-up? Am I missing a
preference somewhere?
hello:)
I can't delete a space with the key "delete" or with the key <- also.
I need to delete the file preference of textmate
i would like to know if i made a bad thing and if can modify the bad
prefs
finally which can be the origin of this problem?
Greetings Alain Matthes