Thanks a lot for pointing this out, Allan. So now if I write
(matlab -nosplash -nodesktop < in &> out) &>/dev/null &
inside a TM command it's letting the command exit while MATLAB continues running in the background. I'll have to continue fiddling with this later today.
-Daniel
On Nov 4, 2010, at 3:17 PM, textmate-request(a)lists.macromates.com wrote:
> From: Allan Odgaard <mailinglist(a)textmate.org>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Starting a background process from a command
> Message-ID: <AA883E0B-D3FC-47E4-9CDC-1AEE165AE82B(a)textmate.org>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On 4 Nov 2010, at 14:30, Daniel Grady wrote:
>
>> Hi everyone, I'm trying to write a TM command that will set up some
>> FIFOs, launch a process connected to those, and then the command
>> will exit [...] when I try to implement this inside a TM command,
>> the command doesn't exit until the launched process also exits.
>
> This is because TextMate will wait till your process close stdout/error.
>
> We have a ruby wrapper for this (which catch exceptions), for more
> info: http://wiki.macromates.com/HowTo/RunCommandInBackground
Hi
Objective-C -> Documentation for word / selection
hasn't been working in my SnowLeopard for I don't know how long. Finally I have digging into it and founded (thanks to an old PPC Leopard installation) that the problem is in
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/html_man.sh
where there is an old and stupid reference to a
RMAN_1='/Library/Application Support/Apple/Developer Tools/Plug-ins/DocViewerPlugIn.xcplugin/Contents/Resources/rman'
where currently Apple is not calling .xcplugin those plugins anymore, but, .pbplugin.
Since I don't know how the TextMate update policy is going, I have added an alias
ln -s DocViewerPlugIn.pbplugin DocViewerPlugIn.xcplugin
in
/Library/Application Support/Apple/Developer Tools/Plug-ins/
I hope this will help someone.
- juan falgueras
Hello :)
I have read that the C/C++ grammar "eats" all braces so that it is not
possible to highlight them with the punctuation identifier.
Apparently I have to modify the default grammar to something different, I
tried to remove stuff that contains blocks and other similars, but I can't
make it work...
Can somebody help me ? I just want to be able to change the colors of those
characters:
{}[]()
--
View this message in context: http://old.nabble.com/Looking-for-highlighting-braces%2C-curly-and-brackets…
Sent from the textmate users mailing list archive at Nabble.com.
Have you considered open sourcing textmate? I think there are a lot
of people who would like to add features to this editor.
For example, I'd like to have split windows, to be able to save window
configurations and embed a terminal or ssh session into the window.
David :)
Hello,
I'm working my way through the 20 minute Ruby intro on the Ruby page. As I type Textmate is capitalizing All the keywords and the words at the beginning of each sentence. When I cut and paste code from the webpage it's not capitalized. Also, if I backspace and retype the characters they remain lower case.
Is there a way to limit capitalization to only the keywords I've chosen? I don't care to have every else, elsif, etc., capitalized.
Thanks for the help,
Scott
A man who limits his interests limits his life.
-- Vincent Price
Hi, I'm having trouble getting some of the more complex Git bundle tools to
work. For example, when I try to merge, it does
http://img691.imageshack.us/i/picture3apw.png/
I suspect my problem is with my ruby version, I'm on OSX 10.5.6, and using
rvm to manage my ruby version, with the shell variable TM_RUBY set (this has
resolved all of my previous issues with rvm and textmate)
I followed the Git.tmbundle installation instructions at
http://github.com/jcf/git-tmbundle, installing it in ~/Library/Application\
Support/TextMate/Bundles
I followed these instructions
http://gnuu.org/2009/05/25/getting-gittmbundle-working-with-ruby19/ but the
svn repo had moved, so instead I did
$ svn co http://svn.textmate.org/trunk/Support/
My TM_GIT is set correctly, and simpler commands like Browse Annotated File
are working.
Any help/suggestions would be appreciated.
-Josh
PS - Full text of the error:
/Users/joshuacheek/Library/Application
Support/TextMate/Support/lib/ui.rb:237:in `to_plist': An object in the
argument tree could not be converted (ArgumentError) from
/Users/joshuacheek/Library/Application
Support/TextMate/Support/lib/ui.rb:237:in `request_item' from
/Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/ui.rb:9:in
`request_item_with_force_pick' from /Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../app/controllers/branch_controller.rb:71:in
`merge' from /Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:105:in
`block in call' from /Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:94:in
`with_filters' from /Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:105:in
`call' from /Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/lib/application_controller.rb:112:in
`call' from /Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/tmvc.rb:56:in
`dispatch_normal' from /Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/tmvc.rb:74:in `dispatch'
from /Users/joshuacheek/Library/Application
Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/tmvc.rb:96:in `dispatch'
from /tmp/temp_textmate.FkobtG:4:in `'
I'm trying to compile a C++ source file that includes the following file:
#include "public.sdk/source/vst2.x/audioeffectx.h"
When I try to compile, I get the following error:
In file included from
/Users/martin/Desktop/vstsdk2.4/public.sdk/samples/vst2.x/again/source/again.cpp:13:
/Users/martin/Desktop/vstsdk2.4/public.sdk/samples/vst2.x/again/source/again.h:16:51:
error: public.sdk/source/vst2.x/audioeffectx.h: No such file or directory
Looks like g++ can't find the audioeffectx.h. How can I set up TextMate to
tell g++ that it should look in "/Users/martin/Desktop/vstsdk2.4/"?
--
View this message in context: http://old.nabble.com/Setting-C%2B%2B-Include-Paths-tp30037571p30037571.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi everyone, I'm trying to write a TM command that will set up some FIFOs, launch a process connected to those, and then the command will exit, the idea being that other commands can subsequently talk to the running process using the named pipes.
In my case I'm trying to set up communications with MATLAB; I have to use it for work, but I'm no great fan of the interface and spend most of my time writing scripts with TM instead, so this is just trying to take it to the next level. I see that this same thing has been brought up a few times before on the mailing list, and that the approach using named pipes is the usual suggestion. However, when I try to implement this inside a TM command, the command doesn't exit until the launched process also exits.
Inside a testing directory, I have test_script.sh:
pwd
mkfifo in
mkfifo out
nohup bash -s < in &> out &
bashpid=$!
# disown $bashpid
echo $bashpid
echo Done
When I run this script from Terminal, everything works as expected: a new bash gets started up in the background, its parent is launchd, I can pass in commands and read output from the in and out pipes, and it persists even if I close Terminal.
Now if I put the same script inside a TM command and then run the command inside a file (which is saved in the same testing directory), the command hangs until I go pipe 'exit' or something into in and read from out. I would expect the command to immediately exit; does anyone know why it doesn't? Thanks in advance!
-Daniel
I've installed a few perl modules at the command line but they are not
seen in TextMate. What happens is that if I run code (Cmd+r) from
within TextMate that calls a module that I've installed, TextMate
can't find it: Can't locate LaTeX/Driver.pm in @INC...
Investigating this I find that TextMate is calling Perl 5.8.8 whereas,
at the command line, perl -V tells me 5.8.9. So TextMate is calling a
different perl version to the one the modules are installed under.
How do I change which perl version TextMate uses?
I've had a look in the bundle at the Run Script command and that
references ENV["TM_PERL"] but I'm not sure where this is set. Can
anyone help with this?
--
Justin C, by the sea.