Hi All,
I'm currently just starting to get into TextMate on my Mac, and E-TextEditor
on Windows. One thing I'd like to be able to do is launch the currently
active ruby file in Ruby at the terminal, as opposed the to the default
"RubyMate". I essentially want a command prompt to open and the following
command to be run: /path/to/ruby "/path/to/current/ruby/file". Does anyone
know of a simple command to do this so I can add to my Ruby "bundle". Note,
I want to manually specify the path to my ruby executable in the command. I
don't want to use the Ruby version bundled with TextMate.
Cheers,
Tom
Hi everyone,
I have a small program that detects
errors and outputs their presence in
a file "error.txt" with the following format:
<Error> found in line 84
<Error> found in line 98
<Error> found in line 129
<Error> found in line 300
<Error> found in line 620
<Error> found in line 1000
I was wondering can I build something (macro? command?)
that will help me navigate through this errors, without
me going manually to each line. Like when textmate displays
errors where you can just simply click on a link to jump to
that line number.
Ted.
--
View this message in context: http://old.nabble.com/utility-to-navigate-through-errors.-tp29739203p297392…
Sent from the textmate users mailing list archive at Nabble.com.
Hi, is there any support in TextMate for PHP's Alternate Syntax?
e.g. Regular Syntax:
<?php
if (1 == 1) {
//Output
}
else {
//Output
}
?>
e.g. Alternate Syntax:
<?php
if (1 == 1):
//Output
else:
//Output
endif;
?>
At the moment, I can't find a way to get code-folding working with the
alternate syntax, and I would also like to be able to set TextMate's TAB
auto-complete to use the alternate syntax.
Tim Mackey
Hi everyone,
I want to write regular expression that
allows me to search for things like:
abc (blah blah blah)
dre (blah blah blah)
but that it only does it if the line does not contain
a % sign
this is what I have so far:
\w+\s+\(\w+\)
Any help appreciated,
Ted
--
View this message in context: http://old.nabble.com/Regular-Expression-needed-tp29734413p29734413.html
Sent from the textmate users mailing list archive at Nabble.com.
When I press Option + Escape to use the intelligent auto-complete
functionality of TextMate, the following is dumped to the file I'm currently
editing...
*/tmp/temp_textmate.KzzomC:38:in `<main>': undefined method `to_a' for
"":String (NoMethodError)*
The "KzzomC" string is variable, but the rest is always the same. Does
anyone know how to fix this as it would be really good to be able to get
this functionality working.
Tom
Hello:
I was editing my bundle in the Bundle Editor of TextMate, and I inadvertently hit some key combination that caused my entire bundle to get deleted. The worse part is that I can't seem to be able to restore it!
Where are TextMate's bundle settings stored? I used Time-Machine to restore the preferences file and the bundle package from a back up, but this did not restored it.
Please help,
dZ.
How do I close a file that is open but that doesn't have a tab because
too many other files are open with tabs? These are the files that
appear when you click on the double-arrow to the right of the tabs. I
keep clicking on the window's close button and closing all my files.
(Grrr!)
Ideally, when I'm editing a file, its tab would appear at the top of
the window, displacing some other tab, so that I have an X button to
click and a clearer picture of what file I'm editing. I'm in a habit
of looking at the tab for the name of the file, but it's only
sometimes there. I know it's consistently in the window's title line;
because it's usually in the tab, I'm not making a habit of looking at
the title line.
Thanks for your help!
~joe
I need help getting Textmate to find gems. I've spent quite a bit of type
researching the problem, but being new to both OS X (Snow Leopard) and the
use of Ruby gems, I can't seem to figure out what the problems are. Many
others have had similar problems, but their solutions don't seem to fix my
problems. (Among other things, I did read Section 8--Shell Commands--of the
Textmate manual.) I expect it largely has to do with the setting of
environmental variables, but that's just a guess. A secondary--and no doubt
related--problem is that Ruby cannot find the gem active-record when invoked
in a terminal (or in irb), as shown below.
I've tried entering a TM_PATH shell variable in Textmate preferences, but
that hasn't helped.
Here are some possible clues. No doubt I have provided some unnecessary
information and have left out important information.
I recently used RVM (Ruby Version Manager) to reinstall Ruby. From a
terminal I then ran
gem install xml-simple
gem install sqlite3
gem install activerecord
They all appeared to install OK.
Then I wrote the following short script (test.rb):
************
#!/usr/local/bin/ruby
# Ruby 1.9.2
require 'rubygems'
print 'Gem.path = '
puts Gem.path
print 'ruby_description = '
puts RUBY_DESCRIPTION
require 'xmlsimple'
require 'sqlite3'
require 'active-record'
*************
When I run test.rb in a terminal I get:
*************
MacBook-Pro-2:economics101 cary$ ruby test.rb
Gem.path = /Users/cary/.rvm/gems/ruby-1.9.2-p0
/Users/cary/.rvm/gems/ruby-1.9.2-p0@global
ruby_description = ruby 1.9.2p0 (2010-08-18 revision 29036)
[x86_64-darwin10.4.0]
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load
-- activerecord (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from test.rb:12:in `<main>'
*************
When I run Ruby test.rb from within Textmate (cntrl-r), I get:
*************
Gem.path =
/Users/cary/.rvm/gems/ruby-1.9.2-p0@global
/usr/local/lib/ruby/gems/1.9.1
ruby_description = ruby 1.9.2dev (2010-07-02 revision 28524)
[x86_64-darwin10.4.0]
LoadError: no such file to load — sqlite3
method require in test.rb at line 11
method <main> in test.rb at line 11
copy output
*************
(If I have <require 'active-record'> before <require 'sqlite3'>, I get the
same message, with 'active-record' substituted for 'sqlite3'.)
Notice that xmlsimple was found when running test.rb from a terminal, but
not with cntrl-r in Textmate. See below (near the end) where I think
Textmate found xmlsimple.
Next I ran irb:
*************
MacBook-Pro-2:~ cary$ irb
/Users/cary/.rvm/rubies/ruby-1.9.2-p0/bin/irb:4: warning: Insecure world
writable dir /Users/cary in PATH, mode 040777
ruby-1.9.2-p0 > RUBY_DESCRIPTION
=> "ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]"
ruby-1.9.2-p0 > Gem.path
=> ["/Users/cary/.rvm/gems/ruby-1.9.2-p0",
"/Users/cary/.rvm/gems/ruby-1.9.2-p0@global"]
ruby-1.9.2-p0 > require 'xmlsimple'
=> true
ruby-1.9.2-p0 > require 'sqlite3'
=> true
ruby-1.9.2-p0 > require 'active-record'
LoadError: no such file to load -- active-record
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from (irb):1
from /Users/cary/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>'
(ibr's message, "warning: Insecure world writable dir /Users/cary in PATH,
mode 040777" is something I should look into as well.)
*************
(It makes no difference if I precede the above with <'require rubygems'>.)
and then back at a terminal:
*************
MacBook-Pro-2:~ cary$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
MacBook-Pro-2:~ cary$ which ruby
/Users/cary/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
MacBook-Pro-2:~ cary$ echo $PATH
/Users/cary/.rvm/gems/ruby-1.9.2-p0/bin:
/Users/cary/.rvm/gems/ruby-1.9.2-p0@global/bin:
/Users/cary/.rvm/rubies/ruby-1.9.2-p0/bin:
/Users/cary/.rvm/bin:/usr/local/bin:
/usr/local/sbin:
/usr/local/mysql/bin:
/usr/bin:/bin:
/usr/sbin:
/sbin:
/usr/local/bin:
/usr/X11/bin
MacBook-Pro-2:~ cary$ ls /Users/cary/.rvm/gems/ruby-1.9.2-p0
bin cache doc gems specifications
MacBook-Pro-2:~ cary$ ls /Users/cary/.rvm/gems/ruby-1.9.2-p0/gems
activerecord-3.0.0 arel-1.0.1 ffi-0.6.3 rake-0.8.7 tzinfo-0.3.23
activesupport-3.0.0 builder-2.1.2 i18n-0.4.1 sqlite3-0.1.1
xml-simple-1.0.12
MacBook-Pro-2:economics101 cary$ ls
/Users/cary/.rvm/gems/ruby-1.9.2-p0@global/gems
MacBook-Pro-2:economics101 cary$
MacBook-Pro-2:economics101 cary$ ls /usr/local/lib/ruby/gems/1.9.1/gems
libxml-ruby-1.1.4 xml-simple-1.0.12
*************
The last line suggests to me that, from Textmate, Ruby is using an old
version of xlm-simple.
Any help would be greatly appreciated.
Cary
--
View this message in context: http://old.nabble.com/Textmate-cannot-find-Ruby-gems-tp29724886p29724886.ht…
Sent from the textmate users mailing list archive at Nabble.com.
Dear TextMate users,
I work with textmate 1.5.8 (1505) under Mac OS X 10.6.2. I installed the latest version of latexmk (version 4.11) and tested it in the terminal, works like a charm. I then tried to compile a .tex document with latexmk via TextMate. If I click the button "Show Latexmk.pl Messages" I can see which version of latexmk is used. It turns out that some old version is used (version 3.21j of 2 December 2007). After that I changed the variable "TM_LATEX_COMPILER" explicitly from "latexmk.pl" to "/usr/local/texlive/2009/texmf-dist/scripts/latexmk/latexmk.pl" --- still the old version is used. I have no idea where this old version is located and how I can force TextMate to use the new one. The new one is correctly installed, I can use "latexmk foo.tex" from everywhere on my system.
How can I tell TextMate to use the correct version of latexmk?
Cheers,
Marius
Hi.
I like TextMate and i want to by it.
But i haven't a job now and price for program very expensive for me.
Have you any discount for me?
I respect copiright and anyway not will be to use not license product.
Konstantin. Russia.