I've just been troubleshooting why so many of my files have hard tabs
in them. Now I see that whenever I create a new file in TextMate, it
defaults to hard tabs. Two questions:
(1) How do I have TextMate automatically assume soft tabs 2 when I
create a new file?
(2) Is there a way to have TextMate convert hard tabs to soft tabs on
save, so I can easily fix this mess?
I think once upon a time I knew that I had to manually set soft tabs
for each new file, but at some point I forgot.
~joe
On 15 Oct 2010, at 17:32, brad tittle wrote:
>> I installed a bundle for Titanium Developer. Every time I use the
>> Ti. trigger I get a popup "failed to load /Users/userdir/.gemrc". I
>> have .gemrc in my directory. My searches haven't been too fruitful
>> for an answer.
>>
>> Does this file need to be permissioned specially? Is there some
>> other magic involved? Or is it related to ruby issues.
>>
>> Ti. actually does bring up the list.
>>
>> The directories referenced in .gemrc do exist.
>I don't know anything about Titanium Developer, nor Ruby, but if that
>error message is verbatim then the error is with a setting somewhere:
>"Failed to load /Users/userdir/.gemrc" should be /Users/[your
>login]/.gemrc. It's probably set in the bundle somewhere. Select
>Bundles->Bundle Editor->Show Bundle Editor menu option and have a
>browser through the bundle.
>If that error is not verbatim, and you substituted your login name for
>'userdir', then I don't know the solution to this.
The error was actually "Failed to load /Users/[userdir]/.gemrc" where
[userdir] is my login.
The error shows up when I do "gem install ..." also.
It is mostly an annoyance right now.
--
Brad Tittle
Tech Support
Hi,
is it correct that curly brackets feature a special behaviour in Textmate? I mean the fact that if I enter a Curly bracket { and hit enter, it will create a newline after the tab. This is not the case with other brackets:
So with curly brackets I get:
{
Cursor
}
With other brackets I get:
(
Cursor)
Note that this is _not_ set in the indentation rules section, to my understanding. I want to mimic the behaviour of Curly brackets for other brackets as well. I know that I can use this trick used in the Snippet: "Special: Return Inside Empty Open/Close Tags" in the HTML bundle to mimic this behaviour, which I am happy to do. I just wanted to know whether I get this correctly, that the special behaviour of curly brackets is unique and built into Textmate.
Thanks a lot,
Stephan
Hello... I feel like there is a super-simple answer to this, but I've spent more than enough time trying to figure this out on my own, so now I get to ask the TM community.
I'm making a simple drag command, and part of the output involved a backtick. I'm using Ruby as the language of choice for the command itself, and it seems to be having trouble with the backtick.
I know that the backtick, on it's own, means to run the string at the command line. But I'm doing something like this:
puts "`"
(Thats double quote, backtick, double quote; in other words, print a backtick, please)
I've actually reduced my command to this simple line in trying to figure out where it's going wrong, and this does not produce any output. As another example, this:
puts "abcd`efgh"
Will output abcd and that's it.
Now, when I open a new ruby document, add those lines, and run it straight from TM, I get every character I would expect.
This would lead me to believe that somehow, in process of writing ruby that gets interpreted as a snippet, the backtick is actually being used as a backtick, not just another string character. Do I need to escape this somehow? I've tried this:
puts "\`"
Which still produces nothing.
Any insight is greatly appreciated. Thanks.
+dru
Hi,
my HTML and PHP bundles use different numbers of characters for indentation via TAB: In HTML it’s 3 chars, in PHP it’s 4 chars.
How can I adjust this to 4 characters both?
Thanks for any tipps!
Tom
I installed a bundle for Titanium Developer. Every time I use the Ti.
trigger I get a popup "failed to load /Users/userdir/.gemrc". I have .gemrc
in my directory. My searches haven't been too fruitful for an answer.
Does this file need to be permissioned specially? Is there some other magic
involved? Or is it related to ruby issues.
Ti. actually does bring up the list.
The directories referenced in .gemrc do exist.
TIA
--
Brad Tittle
Tech Support
My ruby Completion is gone when I try to change the ruby I am using. This is
one of my favorite features of programming ruby with TM. Is there a way to
get this working with the ruby I want to use.
I want to use ruby-1.9, which I have installed using RVM
When I put the following TM variable.. the Completion is gone:
TM_RUBY /Users/Ted/.rvm/bin/textmate_ruby (specifically I get Parse error)
When I remove it.. Completion works again.
Ted
--
View this message in context: http://old.nabble.com/Ruby-completion-not-working-with-another-version-of-R…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
I'm writing a macro:
selectBlock:
copySelectionToFindPboard:
findWithOptions:
All I'm doing is getting some text between square brackets, pasting it into the find dialog, and hoping to search with "wrap" enabled.
Trouble is, the findWithOptions: wants to hardwire my find selection:
{
action = findNext;
findInProjectIgnoreCase = 0;
findInProjectRegularExpression = 0;
findString = "[^f100914110843]";
ignoreCase = 0;
regularExpression = 0;
replaceAllScope = document;
wrapAround = 1;
}
I tried removing the findString property, but then I lose the wrapAround for some reason. That is, the property is in the macro text, but wrap doesn't work when the macro is executed.
Any idea what I'm doing wrong here?
Thanks!
Charles
Hi Ben,
Delighted to see another writer who doesn't buy into Microsoft/Open/Neo/Office bloatware.
I'm not a TextMate power user, but I do have some personal snippets that you could have or build on if you create an "Author" Bundle (select sentence, swap this word and next, that sort of thing). I've also got a syllabus template and snippets that I've been hacking together for a while.
Good luck!
jon
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
On Oct 13, 2010, at 3:27 AM, textmate-request(a)lists.macromates.com wrote:
> I'd rather drink the TextMate kool-aide
> and create a Bundle that does what I want. I bought Scrivener (the
> document project tool), but it's not quite my style---I don't like the
> text in RTF, don't like how it manages content under the covers. I
> probably shouldn't care about that, but I did write a novel in LaTeX.
> Published an unwieldy Sci-Fi milieu "mock encyclopedia" in LaTeX, too.
> So, I'm used to under the covers. :-)
>
> Looking at the assorted bundles, I noticed the TODO bundle has some of
> what I want (ability to display output via pop-up screen like word
> counts). But, I'm looking for some sort of tutorial or guide to
> creating a bundle.
Hi all,
I was wondering if it was possible to adjust the font line spacing in
TextMate? i.e. the amount of horizontal whitespace between each line of text
in the editor window.
Cheers,
Diego
Linux user for 10 years. Bought a Mac six months ago. Bought TextMate
5.99 months ago. Wrote a novel (most of a first draft) with Vim in
LaTeX compiling to PDF. Plan to write one during NaNoWriMo using
TextMate; using Markdown that compiles through LaTeX to PDF (and also
compiles to EPUB). First Post here. Enough. Staccato. Typing.
Howdy.
Presently, I've modified Kitabu (github) which gives me a set of rake
tasks that do this just fine. I'd rather drink the TextMate kool-aide
and create a Bundle that does what I want. I bought Scrivener (the
document project tool), but it's not quite my style---I don't like the
text in RTF, don't like how it manages content under the covers. I
probably shouldn't care about that, but I did write a novel in LaTeX.
Published an unwieldy Sci-Fi milieu "mock encyclopedia" in LaTeX, too.
So, I'm used to under the covers. :-)
Looking at the assorted bundles, I noticed the TODO bundle has some of
what I want (ability to display output via pop-up screen like word
counts). But, I'm looking for some sort of tutorial or guide to
creating a bundle. Maybe my googler isn't working and I just couldn't
find it when I went looking.
BTW, stoked that PmWiki is the wiki engine; been using it for six years.
--
Ben Wilson
"We cannot determine the character or nature of a system within
itself. Efforts to do so will only generate confusion and disorder."
Boyd
Hello,
is it possible in Textmate to use autoindet to format programming code?
E.g the code
______________________________________________
with timeout of 86400 seconds
set theList to {"Mac OS:Users:malte:Movies"}
repeat with nItem in theList
set Ordner to nItem
tell application "System Events"
set these_files to (every file of folder Ordner whose name extension is "avi")
end tell
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_file1 to (item 1 of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
open file quelldatei
end tell
end repeat
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set zieldatei to "Mac OS:Users:malte:Movies:mov_version:" & fileName & ".mov"
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
save window fileName in file zieldatei
close window fileName
end tell
tell application "Finder"
delete file quelldatei
end tell
end repeat
end repeat
say "fertig"
end timeout
is changed by my program to
with timeout of 86400 seconds
set theList to {"Mac OS:Users:malte:Movies"}
repeat with nItem in theList
set Ordner to nItem
tell application "System Events"
set these_files to (every file of folder Ordner whose name extension is "avi")
end tell
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_file1 to (item 1 of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
open file quelldatei
end tell
end repeat
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set zieldatei to "Mac OS:Users:malte:Movies:mov_version:" & fileName & ".mov"
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
save window fileName in file zieldatei
close window fileName
end tell
tell application "Finder"
delete file quelldatei
end tell
end repeat
end repeat
say "fertig"
end timeout
Is there any way, that Textmate could do this for other languages?
best regards
Malte Christian
Hi gang,
What I'd love is to be able to use a single TextMate project to hold all txt
files opened from the finder.
Is there a way to tell Finder to Open With TextMate and add to an open
project? Or to just add a new tab onto the existing project? Instead of TM
just opening up a new window for each file...
Or is there a way to tell TextMate, through a bundle or some other way, to
receive newly opened files into the currently open project?
Thanks hugely,
Chris
--
View this message in context: http://old.nabble.com/Open-files-from-finder-into-single-project-%28single-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi All,
Apologies if this isn't the right place to post this questions!
I have recently installed textmate on the advice of 'Ruby on Rails Tutorial Learn Rails by Example' : http://railstutorial.org/chapters/beginning#top
I am up to the part where you open a file for the first time using Textmate with: mate Gemfile
This works and opens up the relevant file but all of the code is black - there is no differentiation between comments, variables etc it is just a page of plain text.
I have tried changing the themes but that simply changes the background colour vs the text colour but doesn't help distinguish between the different code elements.
In the tutorial everything is highlighted as per a proper code editor but I just cannot find how to do this - please help!!
I am sure it is something incredibly simple that I am not doing but I've watched some tutorials and searched through the help and on Google but still no luck.
Any help will be very much appreciated!!
Thanks
Matt
The information contained in this e-mail is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise, is not intended to waive privilege or confidentiality. Internet communications are not secure and therefore Conde Nast does not accept legal responsibility for the contents of this message. Any views or opinions expressed are those of the author.
The Conde Nast Publications Ltd (No. 226900), Vogue House, Hanover Square, London W1S 1JU
Hey has anyone experienced problems with textmate running a ruby file
against RVM set to 1.9.2. The "Command R" runs ruby code, but I noticed it
is running 1.8.7 (based on the errors I get when I try to run something
specific to Ruby 1.9, such as the symbol short cut for hashes...)
x={a: 1, b: 2, c: 3}... Does not work
But the ruby 1.8.7 short cut
x={a, 1, b, 2, c, 3}.... Does work.
Is there a preference setting in Textmate that tells it to use which Ruby
interpreter?
Thanks
10/3/10 9:36:02 AM TextMate[5413] This application is trying to draw a very large combo box, 145 points tall. Vertically resizable combo boxes are not supported, but it happens that 10.4 and previous drew something that looked kind of sort of okay. The art in 10.5 does not break up in a way that supports that drawing. To avoid breaking existing apps, NSComboBox in 10.5 will use the 10.4 art for large combo boxes, but it won't exactly match the rest of the system. This application should be revised to stop using large combo boxes. This warning will appear once per app launch.
Hello all,
Two questions:
1. I noticed that in the stock CSS bundle the snippets do not have a 'source' namespace.
this is inconvenient since it means they popup when they're not supposed to and take up abbreviations that I would like to use in other contexts for other snippets.
so - since there are about 40+ of these things, is there an easy way to change the source on all of them at once?
2. I have little to no experience building TM commands but I am wondering if it is possible to pass parameters from snippet expander shortcuts.
perhaps an example would be better:
In CSS bundle using snippet Tab Trigger: 'p' for 'padding', being able to input - for example - 'p20' and get 'padding: 20px;' and then later 'p10' and get 'padding: 10px'
in other words the number is a variable that gets written into the expanded snippet.
this seems like it should be possible but I'm not the man to figure it out.
that's it!
thanks,
bennett
Hello,
I started to use TextMate with an Actionscript 3 Bundle at the office where
i work and since then I'm much more productive and organized with my code,
which is very important.
So I installed also at home, however i cannot get it to work correctly here.
When I open the Bundle Editor, I see the Actionscript 3 Bundle and all the
commands, it seems to be the same at work. But they don't work here at home
(except for some, like shift+return which is a 'function' snippet).
For example there's a 'get' command and it is associated with the 'tab'
trigger. It just doesn't work, however, it worked when I left the field
"Scope Selector" blank in the Bundle Editor settings for the command 'get'.
So I must be missing something there...
Another thing, I use the 'clouds' theme at home and it also doesn't look the
same as it looks at the office.
One thing I miss is that I'm used to use class variables with an "_" before,
and those variables get a different color, which helps a lot. For example: I
have a class with a private var "_xOffset", and the constructor of that
class receives the argument "xOffset", then "_xOffset" (in blue) receives
the value of "xOffset" (in black).
Here at home I can't manage to make the variable with an underline in front
to get the color blue. Even though I installed TextMate, the as3 bundle file
and the clouds theme from the same sources, at home and at the office. What
could I be missing ?
Thanks in advance !
--
Isaac
Hi there,
I am trying to reproduce a table, which I copied the elemnts out of a
pdf-file to create a LaTeX-Table.
Fortunately there is a macro in the LaTeX-Bundle, which creates a table of
selected items automatically.
But my items, when pasted into TextMate aren´t properly formated. There a 3
blocks consisting of 10 rows. The blocks are seperated by an empty line. But
I would like to have the block (name it vector) as a column, and the second
vector as the second column...ending with a 10x3 Matrix
So, how to change this:
a
a
a
b
b
b
c
c
c
Into:
a b c
a b c
a b c
Thank you very much for your help.
--
View this message in context: http://old.nabble.com/Reformatting-several-blocks-of-rows-to-a-table--tp298…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Before I start to write my own, anybody has a Nagios configuration bundle?
Thanks,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:melo@simplicidade.org
mailto:melo@simplicidade.org
On Thu, Sep 23, 2010 at 8:00 AM, <textmate-request(a)lists.macromates.com>wrote:
> On Wed, Sep 22, 2010 at 20:55, minimal design
> <textmate(a)minimaldesign.net> wrote:
> > I've looked through the docs but can't figure it out...
> > I'm trying to add CSS3 stuff to the default CSS bundle, but I don't want
> to
> > touch the original bundle off course so in my own bundle I try something
> > like:
> >
> > { scopeName = 'source.css.mcss'; fileTypes = ( 'css', 'css.erb', 'less');
> > foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))';
> > foldingStopMarker = '(?<!\*)\*\*/|^\s*\}'; patterns = ( { name =
> > 'meta.selector.css'; begin = '^(?=\s*[:.*#a-zA-Z])'; end = '(?=\{)';
> > patterns = ( { name = 'entity.name.tag.css'; match =
> >
> '\b(article|aside|audio|canvas|command|datalist|details|embed|figcaption|figure|footer|header|hgroup|keygen
> >
> |mark|menu|meter|nav|output|progress|rp|rt|ruby|section|summary|time|video|wbr)\b';
> > }, ); }, { include = "source.css"; } ); }
> > and I get all the new elements highlighted like they're supposed to, but
> > that "cancels out" the standard CSS elements. I thought adding the
> > "source.css" would take care of that but obviously it doesn't... Do I
> have
> > to include the standard elements back into the regex? Is there a better
> way?
> > Thanks for any pointer in the right direction!
>
> Not sure if it'll work but you could try adding your pattern after
> including
> `source.css`, i.e.
> patterns = ( { include = "source.css"; }, ? );
>
> HTH,
> Martin
>
It seems that whatever I put last, it cancels the other one out... From the
DOc, I though that it would inherit if you use the name convention... But
the inheritance doesn't happen within patterns that have the same name? Is
that what the deal is? Or I"m doing it wrong? It seems counterproductive not
to be able to ad on to a rule, so I tend to think I'm doing it wrong, but
I've tried all the option I could think about... Anyone has done this
before? If I have to just have to duplicate and modify the whole default CSS
language, that's fine, but I want to make sure there's no better way
first... Thanks!!
I was wondering if it was possible to use xelatex in place of latex
from within Texmate (using the LateX bundle)?
Would it be as simple as using directives such as:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
Or doing some other manual edition of the bundle code?
Thanks!
I've looked through the docs but can't figure it out...
I'm trying to add CSS3 stuff to the default CSS bundle, but I don't want to
touch the original bundle off course so in my own bundle I try something
like:
{ scopeName = 'source.css.mcss'; fileTypes = ( 'css', 'css.erb', 'less');
foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))';
foldingStopMarker = '(?<!\*)\*\*/|^\s*\}'; patterns = ( { name =
'meta.selector.css'; begin = '^(?=\s*[:.*#a-zA-Z])'; end = '(?=\{)';
patterns = ( { name = 'entity.name.tag.css'; match =
'\b(article|aside|audio|canvas|command|datalist|details|embed|figcaption|figure|footer|header|hgroup|keygen
|mark|menu|meter|nav|output|progress|rp|rt|ruby|section|summary|time|video|wbr)\b';
}, ); }, { include = "source.css"; } ); }
and I get all the new elements highlighted like they're supposed to, but
that "cancels out" the standard CSS elements. I thought adding the
"source.css" would take care of that but obviously it doesn't... Do I have
to include the standard elements back into the regex? Is there a better way?
Thanks for any pointer in the right direction!
HI,
I am trying TextMate for my RoR development needs, and I see with
exasperation that, when I am in Ruby on Rails scope, I cannot type lowercase
'a'! Hence, I cannot type :all, or 'class', or any word that contains a
lowercase 'a'!!!
Anyone envcountered anything of this sort? I am on Snow Leopard, TextMate
1.5.8.
Thanks,
AE
Hello,
when I save a file in Textmate it doesn't remember the directory. The
path in the save as dialog is always set to the root directory (/).
Textmate: Version 1.5.9 (Revision 1589)
System: Mac OS X 10.6.4 (10F569)
It might have something to do with NSNavLastRootDirectory as the
following tweets indicate:
http://twitter.com/davybrion/status/21932571235http://twitter.com/scott_to_s/status/21937812511
NSNavLastRootDirectory gets written upon termination of Textmate, but
after restaring it gets set back to the root directory.
Cheers, Stefan
Hi,
I just recently downloaded the Pandoc bundle from GitHub, but have run
into the following error message when I try any of the 'Convert
to...' scripts in the bundle:
/tmp/temp_textmate.U3BOyu: line 12: pandoc: command not found
However, I do indeed have pandoc on my system. I built the pandoc
library from source, but have added the necessary directory to my PATH
variable.
Are there any future modifications that I need to make to shell
variables accessible to TextMate ?
Thanks!
Dan
Any one know how to set up textmate to use the D compiler? There is a
"Build and compile" single file option, but I am not sure where to tell
Texmate, where the D compiler is...
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.
Hi all-
I'm writing a command where it would be really great to preserve a string for later use by other commands.
I'm assuming there no way to define a environment variable (like LAST_STAMP or something) that could be set from a command, would persist, and could be read from a later invocation of another command?
Any other kind of scratchpad memory that I could take advantage of? (I realize I could write a small file somewhere.)
Many thanks in advance!
Charles
Hi,
I have a list of functions ( thousands ) for a certain proprietary
language and I would like to enable some sort of autocomplete in
textmate but that works similar to Eclipse's, IDEA's, etc. in that it
allows you to
1. Search or autocomplete
2. Once you select the method, you get a "snippet" template so you can
tab around the parameters
I imagine lots of people have tried this and I am also afraid that
there is no simple solution.
What's the best path here?
FYI. The library consists of around 2000 functions.
Regards,
A
--
Aldo Bucchi
@aldonline
skype:aldo.bucchi
http://aldobucchi.com/
Hi,
I am developing a Bundle that will startup a local database server (
think SQLite ). Some of the questions I have are:
* What's the recommended way of bundling binaries into Bundles, if any?
* What startup/shutdown hooks exist, if any?
Regards,
A
--
Aldo Bucchi
@aldonline
skype:aldo.bucchi
http://aldobucchi.com/
I thought this workflow should work, but it’s running into trouble:
I open a new message in Apple Mail.
I type the keyboard command for Edit in TextMate.
I write a simple document in Markdown.
I use the Markdown bundle command to convert to HTML.
I use the Mail bundle command Send HTML as email via mail.
I get “Syntax Error: Expected end of line but found property (-2741)"
Problem seems to occur whatever the language grammar is set to. I’m using TM version 1.5.9, with updated bundles. I didn’t find a mention of this in the archive.
Thanks very much for any suggestions about a fix or a better workflow.
I'd like to:
1) close all foldings at level 0
2) open all foldings at level 1
casting a single command.
i.e. without having to manually cmd+opt+0 cmd+opt+1
I don't have a clue about how to do it, can somebody help please?
--
venera Lo'oris su http://looris.net
Hello,
thanks for the help, I have tried yoursuggestions and it helps.
But maybe it could be put in the next version as a possible feature, it
would be useful for people writing texts in textmate, especially when
using a screenwriting mode.
Best,
Daniel
Is there a possibility to change the width of the caret so that it would
appear to be a blinking rectangular?
_______________________________________________
Not that I know of, but you might at least try to turn on the "highlight
current line" preference:
go to Preferences
General tab
Check "Visual Ornaments: Highlight current line"
You can then move over to the Fonts & Colors tab and pick a background
color for the current line.
Also, the shortcut Command-L is good for centering the current line
vertically in your window (if it's possible). Between those two, I can
usually find my current line.
I realize that's only one dimension, and you were hoping for two. I
don't know of anything to help you locate the current column, short of
doing something manual, like pressing Shift-RightArrow to make a
selection that would stand out. Not what you were after, but that's the
most hope I can offer.
I betcha, if challenged properly, one of the wunderkinds of this list
like Hans or Ciarán can whip together a plug-in that does just what
you're looking for. But that task is not for me.
+dru