I am using TextMate 1623.
I have just gone back to learning PERL and I am now unable to ask for info (<STDIN>). I have scripts that worked previously, and now fail. All of the scripts work on the command line.
Any ideas?
T. Zakharko wrote:
>
> Dear all,
>
> I post this here because I am unsure of who is the current maintainer of
> the Sweave bundle. The help files list Alan Schussman as author, but as
> the bundle has last been updated in 2006 I have no idea if he is still
> responsible for it.
>
> To make the story short: it is sometimes desirable to run Sweave with a
> custom driver. I need it for literate programming documentation style
> where I want Sweave to skip the code parsing to allow for chunks
> containing incomplete R expressions (and I also developed a very simple
> driver that does just that). A probably more common usage would be
> invoking the pgfSweave driver instead of the vanilla one.
>
> An option like
>
> %!TEX SWeave= my_driver
>
> would be very nice. I can hack something like this together on my own, but
> this is a feature which should probably be added to the official
> distribution.
>
> Thank you,
>
> -- Taras
>
P.S. I have patched the Sweave bundle's 'Sweave,Typeset and View' command
with following:
# get the Sweave driver option
DRIVER=`grep -e '^%!TEX Sweave' "$TM_FILEPATH" | sed 's/.*=//g'`
SW=${TM_SWEAVE_WD:=${TM_DIRECTORY}}
if [ -n "$DRIVER" ]; then
echo -e "setwd('$SW')\nSweave('$TM_FILEPATH', driver=$DRIVER)" | R
--no-restore --no-save --quiet | pre
else
echo -e "setwd('$SW')\nSweave('$TM_FILEPATH')" | R --no-restore --no-save
--quiet | pre
fi
This replaces the previous R invocation and works reasonably well. Usage is:
%!TEX Sweave= my_driver
Maybe someone could patch it to the official repo...
--
View this message in context: http://old.nabble.com/Sweave-bundle-feature-request-tp30588762p30594043.html
Sent from the textmate users mailing list archive at Nabble.com.
I have noticed that especially after upgrading to 10.6, TextMate has become more and more crash prone -- especially after switching from another app back to TextMate. I use it mainly in larger LaTeX projects in conjunction with git and nowadays it would crash, two, three times a week. I often switch back and forth between Skim or Preview and Textmate. Hence, I mostly don't lose any data, because I've saved the file before switching apps, but nevertheless, it's quite disconcerting.
Back in the (good old ;-) 10.4 days, TextMate was absolutely rock solid and it was exceedingly rare for TextMate to crash. Are those known issues? Will there be more fixes down the road for 1.5 addresses stability problems? What are the root causes?
Hi,
I try to run a feature with cmd+R and it gives me the following message:
:29:in `require': no such file to load -- spec (LoadError) from :29:in
`require' from /Users/mhenrixon/Library/Application
Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:23:in
`' from :29:in `require' from :29:in `require' from
/Users/mhenrixon/Library/Application
Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate/feature_helper.rb:1:in
`' from :29:in `require' from :29:in `require' from
/tmp/cucumber-19009.rb:2:in `'
The RSpec specs work fine it's just my features that don't run. I hate
having to switch to console to do this. Any suggestions?
Mikael Henriksson
Tel: +46 (0) 730- 393 200
mikael(a)zoolutions.se
Hi there,
I have Python related issue within TextMate. I am trying to start Python
script directly from TextMate, but it fails.
Here comes the output from Terminal:
michalo:/Users/michalo/test> python simple.py
One
Two
michalo:/Users/michalo/test> cat simple.py
#!/usr/bin/python
import xml.etree.ElementTree as ET
def main():
element = ET.XML("<root><child>One</child><child>Two</child></root>")
for subelement in element:
print subelement.text
if __name__ == "__main__":
# Someone is launching this directly
main()
michalo:/Users/michalo/test> python simple.py
One
Two
michalo:/Users/michalo/test> python --version
Python 2.6.1
However, if I use Python bundle to start this script directly from the
TextMate (Bundles -> Python -> Run script) I get following error:
ImportError: 'No module named etree.ElementTree'
module body in xml.py at line 3
import xml.etree.ElementTree as ET
copy output
Program exited with code #1 after 0.19 seconds.
If I start it from TextMate Bundles -> Python -> Run script (Terminal)), I
am getting following error:
Traceback (most recent call last):
File "/Users/michalo/Documents/work_files/public/notes/python/xml.py",
line 3, in <module>
import xml.etree.ElementTree as ET
File "/Users/michalo/Documents/work_files/public/notes/python/xml.py",
line 3, in <module>
import xml.etree.ElementTree as ET
ImportError: No module named etree.ElementTree
michalo:/Users/michalo/Documents/work_files/public/notes/python>
Do you know what can be the source of the issue?
That's what I get from the Terminal windows (when I try to get Python
version):
michalo:/Users/michalo/test> which python
/usr/bin/python
michalo:/Users/michalo/test> python --version
Python 2.6.1
michalo:/Users/michalo/test>
And you can find attached screen shoot from text mate. I have created simple
text file:
which python
python --version
And executed it with: Bundles -> Shell Scripts -> Run script
Does anyone have an idea what's wrong here?
Cheers
Michal
A recent attempt to update bundles returned
"sh: git: command not found"
But in terminal, I see
bash-$ git --version
git version 1.7.3.1
which is something new. What's happening?
I'm running TM Version 1.5.10 (1623)
Model Identifier: MacBook5,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.4 GHz
with OS X 10.6.5
Something odd has happened to Find in the latest build. When I selected a word and hit Cmd-E (Use Selection for Find) it appends a carriage return to the word. I can see this when I open the Find dialog.
Any idea what is happening?
Ed
Greetings,
I recently set up a new system with RVM and ruby 1.9.2 (default) as well as
1.8.7 and Rubinius. The system ruby is currently 1.8.7.
I followed the instructions here:
http://rvm.beginrescueend.com/integration/textmate/ to set up RVM and
textmate to work and play nice together. These steps work and don't.
When I use the run command textmate execute the file using the correct ruby,
for example the "puts RUBY_DESCRIPTION" returns the expected ruby 1.9.2.
However, when I "Execute line/ selection as ruby" I still get ruby 1.8.7
(the system ruby).
Looking at the bundles the "Execute line/ selection as ruby" command starts
with "#!/usr/bin/env ruby"
How should I modify the bundles such that it run the selection or line via
the TM_RUBY environment variable rather than the system ruby?
Thanks!
Shane
http://scr.im/shaneknysh
Hey Everyone,
How can I ignore .dSYM folders? I've been fiddling with this for like an
hour now and can't get the regular expression right in preferences. It's
probably the most obvious thing in the world but it's eluding me.
This is my current folder ignore pattern
!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
I've tried adding |\.dSYM like this:
!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle)|\.dSYM)$
And a couple other variations, but with no luck
Thanks for any help!