Hi all there
I am suffering an uncomfortable problem with TM scripts that depend on
Ruby and makes them unusable. Using for example Cmd-B in LaTeX
(toggle_style.rb -style=textbf), TM inserts instead:
no such file to load -- ubygems (LoadError)
Sometimes I fixed the problem renaming ~/Library/Application\ Support/
TextMate. Sometimes not.
I use an env
RUBYOPT=rubygems
- Juan F.
Hi all there
I am suffering an uncomfortable problem with TM scripts that depend on
Ruby and makes them unusable. Using for example Cmd-B in LaTeX
(toggle_style.rb -style=textbf), TM inserts instead:
no such file to load -- ubygems (LoadError)
Sometimes I fixed the problem renaming ~/Library/Application\ Support/
TextMate. Sometimes not.
I use an env
RUBYOPT=rubygems
- Juan F.
After a crash of my system disk yesterday and the ressurection of the
system today I'm getting the following error while trying to insert a
citation or label based on the current word:
\autoref{/tmp/temp_textmate.haeIjJ:4: command not found: kpsewhich -
show-path=tex
cha:auswahl_eines_loesungskonzeptes}
The thing is. It tells me about kpsewhich is not found but it was able
to insert the correct label.
When I fire up "which kpsewhich" in Terminal, I get the following
output:
> [Jan@iah] ~ > which kpsewhich
> /usr/local/texlive/2007/bin/i386-darwin/kpsewhich
Also I have no problem to compile my document.
Maybe it has something to do with PATH, but I'm not sure. Can anyone
give me a hint on this?
Thanks,
Jan
Am I correct in assuming that TextMate now supports synctex, and that
I need to download and install the latest LaTeX bundle in order to
have this functionality?
If so, how do I download/install this bundle?
Thanks
Geoff Vallis
I just grabbed the latest ruby.tmbundle from svn and put that in my ~/
Library/Application\ Support/TextMate/Bundles directory
When I try and run a test file with command-R I get the following
complaint
/Users/stu/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/
Support/RubyMate/run_script.rb:1:in `require': no such file to load
-- /Applications/Editors/TextMate.app/Contents/SharedSupport/Support/
lib/tm/executor (LoadError) from /Users/stu/Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1
I have had a look around and sure enough can't find the files it is
referring to
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
I am on the cutting edge 1.5.7 (1464) version.
Stuart
> From: Trevor Harmon <trevor(a)vocaro.com>
> Message-ID: <AA646749-1963-48F8-BA06-2DEEB46200DF(a)vocaro.com>
>
> I was thinking it might be cool if TextMate had visual tabs like
> OmniWeb or Shiira:
>
> http://www.mathgamehouse.com/images/phillryu/shiira2full.png
>
> But after testing the idea I've decided it just doesn't work with
> text. Web pages with graphics can be distinguished at thumbnail size,
> but source code files can't.
Reminds me of this:
http://basildoncoder.com/blog/2008/03/21/the-pg-wodehouse-method-of-refacto…
Be well,
Will :-}
Hello,
Maybe I'm just not understanding how it works, but while in an HTML document
I wanted to insert a DocType. I pulled up the Insert Bundle item window
(Ctrl-Cmd-T) and tried typing "doctype" to see if the shortcut came up, but
it did not. I just looked at the window again, and I see, right in the first
page of items "Insert DocType", but when I start typing "doctype" it goes
away, not matching what I'm typing. Am I missing something?
Thanks
John
In TextMate, buffer tabs are automatic: A new tab is always opened
whenever you click on a file in a project drawer. After a half hour of
navigating source code, I suddenly find dozens of tabs open at the top
of my editor window, but I can only see a few of them. This makes the
tabs feature basically unusable.
In contrast, web browser tabs operate quite differently. They're
manual instead of automatic: A new tab doesn't open unless you
explicitly open one. Until then, new data is displayed in the current
tab. TextMate's tab feature would be much more useful to me if it
worked this way --- the way web browsers do.
Does anyone prefer the current (automatic) behavior?
Trevor
So,
I've just installed the AS3 bundle from the repository in TextMate and
thought I'd share the steps I had to go through in order to make it
work, partially so I have a document explaining what I had to do (if I
need to do it again) and to help others who might be stuck.
Message for Simon Gregory: This was the bundle I downloaded from the
repository so it's possible that the svn version is b0rked... :(
I have an up to date version of TM on Leopard, and I used the "Get AS3
Bundle.sh" script that I downloaded a short while ago. Unfortunately
I couldn't find the site where it came from but it just appears to
grab the latest version from the repository by svn so it can't do that
much.
First, I got the wonderful error dialog:
> The “ActionScript 3” bundle located in ~/Library/Application Support/
> TextMate/Bundles could not be loaded and will be skipped. The
> contained info.plist appears to be corrupt or missing.
What's going on here? No idea. So I looked at the plist file in
question and found what looked like a half failed diff at the bottom:
<<<<<<< .mine
... some txt
=======
... other text
>>>>>>> .r10513
This is present in a bunch of files, I have so far found it in
build_with_fcsh.sh and asd.rb. Anywho, I took that out of the plist
file, probably breaking it slightly but at least TM now loads the AS3
bundle.
Next I created a new, blank AS3 project. Make a more or less empty
class and "Build with FCSH". Nothing, no output, no error, no
feedback, nothing. Build with MXMLC, a window pops up telling me
there's 0 errors and a successful build, but no .swf file was produced
in the deploy/ folder. Try the "Build (custom)" option, it tells me
the script is not executable. Joy. So I run the supplied compile.sh
script manually by opening the script and pressing Apple-R to run it.
TM alerts me that the script is not executable, so I make it so. OK,
so now it runs.
However, still nothing coming out of mxmlc, still 0 errors. What
happens when I run mxmlc on it's own? I get this wonderful error:
-bash: ./mxmlc: /bin/sh^M: bad interpreter: No such file or directory
Joy. That error is familiar, usually found when running a binary
built for a different architecture, but that wasn't the problem.
mxmlc turns out to be a shell script that runs slightly different
commands for windows and unix. Turns out that the default file
supplied by Adobe is also in DOS encoding (funny line endings). So,
open the file in vim and type:
# vim ./mxmlc
:set ff=unix
:wq
And the script now runs mxmlc properly. I also had to chmod a+x in
Flex/bin/* as well.
OK, so building in mxmlc now works but I know that it's slow and I'd
rather use fcsh to do my compiles. So I try building with fcsh and
get even less reponse, no progress bar, no iTerm window, nada. OK,
stay calm...
So I check the encoding of the fcsh script supplied by Flex, it too
was in DOS format so I converted it back to Unix. That script now
fires up the fcsh compiler so that part worked. Next, why was the
build command silently failing? Open up the Bundle Editor and edit
the "Build (fcsh)" command to show output as HTML. This revealed a
syntax error in the build_with_fcsh.sh script. Find the script, open
it in vim and I found the same sort of failed diffs as I found in the
plist file.
This time I just copied the r10513 file over the existing one:
# cd "/Users/gaby/Library/Application Support/TextMate/Bundles/
ActionScript 3.tmbundle/Support/bin/"
# cp build_with_fcsh.sh.r10513 build_with_fcsh.sh
Now the script works, fcsh works, mxmlc works and I have finally got
a .swf file being output into the deploy folder. Sorry for the length
of this rant but my hope is that if anybody else is fighting with AS3
under TextMate, hopefully this might shed some light on problems
they're having.
Gaby
--
Being drunk is feeling sophisticated without being able to say it.
http://www.playr.co.uk/
Hi,
yesterday I installed TM plus some bundles on my new Mac. Among others
I also installed the R bundles. These bundles have some Ruby functions
which insert something into the current doc. Fine. But there's a
"problem" with the Pristine's bundle folder permissions.
I get for instance that warning:
... warning: Insecure world writable dir “DIR” in PATH, mode 040777
This means that the bundle folder has also set the write access rights
to group and others. The way to fix this is to execute: chmod og-w
'DIR' .
My question is whether this is a general thing; and if yes, whether it
could be fixed in TM internally?
Cheers,
--Hans
Hi,
I have a problem. I took the finite example coming from progress.rb to
figure out how to cancel the block running inside of
TextMate.call_with_progress.
If I have a TM Ruby doc with the code and press apple+R the Cancel
button works. If I have the same code in a tmCommand the Cancel button
does not work, even if I store the code as Ruby file somewhere.
Is this something which should be fixed in the future?
Is this my fault? If yes, how is the correct syntax or workaround?
Thanks in advanced,
--Hans
I'm building up a grammar for the Confluence wiki markup, and I'm
having trouble with tags that take a list of parameters.
Tags look like this (all strings are examples only):
{noparams}
{oneparam:key=10}
{twoparams:keyOne=value|keyTwo=2%}
{threeparams:keyA=a value|keyB=another value|keyC=a third value}
So the tag name can stand alone, or if it is followed by ':', it takes
a '|'-delimited list of key=value pairs.
When I use the grammar fragment at the end of this message, noparams,
oneparam, and twoparams are highlighted as I expect. When there are
three or more parameters, the first and last parameters are
highlighted as I expect, but the middle ones are highlighted as plain
entity.confluence.
I'm sure this is a defect in my match= regular expression, but I'm not
seeing it. Could someone enlighten me, please?
— F
{ name = 'entity.confluence';
match = '(?x:
\{
([-[:alnum:]]+)
(:(\w+)=([^|}]+)
(
\|(\w+)=([^|}]+)
)*
)?
\}
)';
captures = {
1 = { name = 'keyword.confluence'; };
3 = { name = 'support.confluence'; };
4 = { name = 'string.confluence'; };
6 = { name = 'support.confluence'; };
7 = { name = 'string.confluence'; };
};
},
I added a bundle for JSFL (Flash JavaScript API) to the review section
of the repository a few weeks ago. Personally I only ever really use
jsfl to batch process images, swfs, video etc, once a month or so but
even with my limited use am sure the bundles solid enough.
If anyone has had chance to test it and has any suggestions please let
me know (and hopefully I can actually get a bundle out of review...).
Cheers,
Simon
Hi,
I'm just playing with Oniguruma's nested levels etc. In principal it
works brilliant, BUT it could happen that the regexp engine runs in an
eternal loop with no chance to cancel that loop.
Example:
<html lang="en">
<body>
<div>
<div id="2">
<p>blah</p>
</div>
</div>
</body>
</html>
regexp: (one line!)
(?-i)(?<element>\g<stag>\g<content>*\g<etag>){0}(?<stag><\g<name>
\s*[^>]*>){0}(?<name>[a-zA-Z_:]+){0}(?<content>[^<&]+(\g<element>|[^<&]
+)*){0}(?<etag></\k<name+1>>){0}\g<element>
Place the caret within the p tag and find previous match (SHIFT+APPLE
+G) and repeat it. Fine this works. The same also works for find next
match.
But the regexp CANNOT handle up to now tags like <img src="foo">.
So if you have e.g.:
<html lang="en">
<body>
<div>
<img src="foo">
<div id="2">
<p>blah</p>
</div>
</div>
</body>
</html>
[ATTENTION TextMate will freeze!!!!]
place the caret inside of the p tag and press three time SHIFT+APPLE+G
and TM freezes. You only can "force quit". Attached is a part of the
error report.
Of course, this is a problem of the regexp but if one wants to develop
such a regexp such errors could appear. The question now is how to
interrupt such an eternal regexp loop??
To be honest I have no idea but maybe one could listen to the keyboard
event (APPLE+.) inside of the regexp function.
Cheers,
--Hans
Error report:
223 __Z18view_find_previousPN4text4viewE + 1075 (in TextMate) [0x9c719]
223 __ZN9oniguruma4findEPtiiPKNS_6ptrn_tEii + 115 (in TextMate)
[0xf6639]
11 _onig_search + 414 (in TextMate) [0x161bba]
1 _onig_is_in_code_range + 67 (in TextMate) [0x15c2c1]
1 _utf16le_mbc_enc_len + 22 (in TextMate) [0x16361a]
1 _utf16le_mbc_enc_len + 11 (in TextMate) [0x16360f]
1 _onig_is_in_code_range + 29 (in TextMate) [0x15c29b]
1 _onig_is_in_code_range + 31 (in TextMate) [0x15c29d]
1 _onig_is_in_code_range + 88 (in TextMate) [0x15c2d6]
1 _onig_is_in_code_range + 11 (in TextMate) [0x15c289]
1 _onig_is_in_code_range + 4 (in TextMate) [0x15c282]
1 _mem_is_in_memp + 4 (in TextMate) [0x15c249]
1 _mem_is_in_memp + 5 (in TextMate) [0x15c24a]
1 _utf16le_mbc_to_code + 17 (in TextMate) [0x163651]
8 _match_at + 3858 (in TextMate) [0x15d291]
7 _match_at + 10242 (in TextMate) [0x15eb81]
7 _match_at + 8800 (in TextMate) [0x15e5df]
7 _match_at + 3848 (in TextMate) [0x15d287]
7 _match_at + 3814 (in TextMate) [0x15d265]
6 _match_at + 8811 (in TextMate) [0x15e5ea]
6 _match_at + 339 (in TextMate) [0x15c4d2]
6 _match_at + 3842 (in TextMate) [0x15d281]
6 _match_at + 10259 (in TextMate) [0x15eb92]
5 _match_at + 8784 (in TextMate) [0x15e5cf]
5 _match_at + 6579 (in TextMate) [0x15dd32]
4 _match_at + 2121 (in TextMate) [0x15cbc8]
4 _match_at + 3834 (in TextMate) [0x15d279]
4 _match_at + 10216 (in TextMate) [0x15eb67]
4 _match_at + 6626 (in TextMate) [0x15dd61]
4 _match_at + 3825 (in TextMate) [0x15d270]
4 _match_at + 6599 (in TextMate) [0x15dd46]
3 _match_at + 341 (in TextMate) [0x15c4d4]
3 _match_at + 8795 (in TextMate) [0x15e5da]
3 _match_at + 11214 (in TextMate) [0x15ef4d]
3 _match_at + 3387 (in TextMate) [0x15d0ba]
3 _match_at + 8790 (in TextMate) [0x15e5d5]
3 _match_at + 8806 (in TextMate) [0x15e5e5]
3 _match_at + 3434 (in TextMate) [0x15d0e9]
3 _match_at + 2195 (in TextMate) [0x15cc12]
3 _match_at + 6614 (in TextMate) [0x15dd55]
2 _match_at + 11317 (in TextMate) [0x15efb4]
2 _match_at + 3816 (in TextMate) [0x15d267]
2 _match_at + 6593 (in TextMate) [0x15dd40]
2 _match_at + 299 (in TextMate) [0x15c4aa]
2 _match_at + 6590 (in TextMate) [0x15dd3d]
2 _match_at + 2108 (in TextMate) [0x15cbbb]
2 _match_at + 1446 (in TextMate) [0x15c925]
2 _match_at + 10232 (in TextMate) [0x15eb77]
2 _match_at + 3811 (in TextMate) [0x15d262]
2 _match_at + 6616 (in TextMate) [0x15dd57]
2 _match_at + 2198 (in TextMate) [0x15cc15]
2 _match_at + 10238 (in TextMate) [0x15eb7d]
2 _match_at + 10227 (in TextMate) [0x15eb72]
2 _match_at + 8798 (in TextMate) [0x15e5dd]
2 _match_at + 10143 (in TextMate) [0x15eb1e]
2 _match_at + 2084 (in TextMate) [0x15cba3]
1 _match_at + 16465 (in TextMate) [0x1603d0]
1 _match_at + 3408 (in TextMate) [0x15d0cf]
1 _match_at + 11320 (in TextMate) [0x15efb7]
1 _match_at + 6548 (in TextMate) [0x15dd13]
1 _match_at + 2146 (in TextMate) [0x15cbe1]
Hello,
which switch do I have to turn on to get more verbose debugging output
from the latex bundle?
I'm using pdftex as the typesetting engine?
Thanks,
Jan
I'm trying to get all my apps to use the same basic keystrokes. After a
random dice roll, I decided on command-{ and } for previous/next tab. But I
can't figure out what to put in KeyBindings.dict; the obvious,
"previousTab:" and "nextTab:", didn't work. Neither did
"selectNextTabViewItem:" and "selectPreviousTabViewItem:".
So:
1. Can someone tell me what the right action is? Or is it not bindable?
2. How could I have found the answer to #1 myself?
Thanks..
Jay Levitt
Hi all-
I got the syntax coloring for my Forth bundle completed yesterday, and
mocked up a little test to verify my understanding of building more
complex entities in a grammar:
<http://pastie.textmate.org/private/45g1m5nirfrnoig1fqyz9w>
<http://pastie.textmate.org/private/3qiprool4ryent1tbcukla>
The above is for the imaginary Forth-like language "ZZZ" and includes a
sample file. If anyone had any comments, suggestions or criticism of my
mockup, I'd be greatly appreciative.
Thanks!
Charles
Hi everybody!
Is there (in TextMate's built-in search) a solution for forming a replace
string for a variable directly followed by a number, ie. $15 (read: $1 and
5, without a space in between)?
Can this somehow be done or is reformulating the search string the only way
in such a case?
Thanks!
Chris
Changes to color schemes (modifications as well as new schemes) don't
save in TextMate. Bundle changes and font choice, etc. do save, so this
problem is specific to color schemes. Having to set my color scheme
every time I open TM is definitely a hassle.
Thanks,
Thomas Allen
TextMate User
Hi,
I've got rspec working in my project ("rake spec") ok. I've downloaded the
rspec bundles into TextMate however however when I go
Bundles/RSpec/RunSingleExample (or RunExamples) I get the following error
dialog that appears...
-----error-----
Missing the Rails 2.1.1 gem. Please `gem install -v=2.1.1 rails`, update
your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
version you do have installed, or comment out RAILS_GEM_VERSION to use the
latest version installed.
---------------
Q1- Any idea how to solve?
Q2 - Why does TextMate not see that (a) the environment.rb file has this
variable set correctly to 2.1.1, and (b) the rails 2.1.1 gem exists as I
downloaded it?
Q3 - How can I confirm what the environment variables are when this test
from within TextMate?
Q4 - Where would I normally set the environments variables for TextMate?
Q5 - What are the relevant TextMate environment variables that exist that
may need to be set?
Macintosh-2:~ greg$ rails -v
Rails 2.1.1
Macintosh-2:~ greg$ ruby -v
ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin9.3.0]
Macintosh-2:~ greg$
Macintosh-2:~ greg$ gem -v
1.2.0
Macintosh-2:~ greg$
Macintosh-2:~ greg$ cat ~/.profile
PATH=$PATH:/usr/local/bin
TERM_PROGRAM=iTerm.app
test -r /sw/bin/init.sh && . /sw/bin/init.sh
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0
Macintosh-2:~ greg$
Macintosh-2:~ greg$ cat /etc/profile
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
Macintosh-2:~ greg$
Thanks
--
View this message in context: http://www.nabble.com/can%27t-run-RSpec--%28get-%22Missing-the-Rails-2.1.1-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
This issue has already been discussed in the lists, but I didn't find any
conclusive answer. Would it be possible to add in the LaTeX bundle the
option to watch a latex file with latexmk (ie with the -pvc option)? I kind
of understood the advantages of the Watch bundle (mainly speed?) but still
want latexmk to do the job for me (to update cross-references and included
documents like figures).
For the moment, I am using
http://www.nabble.com/LaTeX-Watch-td9730030.html#a9814889 Martin's tip , but
I would like a better integration (like stopping watching), and anyway think
it would be worth being included in the standard LaTeX bundle.
--
View this message in context: http://www.nabble.com/LaTeX-Watch-with-latexmk-tp19158764p19158764.html
Sent from the textmate users mailing list archive at Nabble.com.
I use the nightly builds of WebKit and I am having no luck getting CMD-
R to refresh it. I have altered the Refresh Running Browsers Command
in the Bundle Editor to:
# Check if WebKit is running, if so refresh
ps -xc|grep -sq WebKit && osascript -e 'tell app "WebKit"' -e
'activate' -e 'do JavaScript "window.location.reload();" in first
document' -e 'end tell'
Any suggestions would be welcome.
Cheers,
Eric
Again, I *tried* to report this as a bug, but couldn't.
If I hurriedly type:
if ( foo ) {
bar
}
Upon typing the } Textmate (with autoindentation on) changes it to this:
if ( foo ) {
bar
}
instead of:
if ( foo ) {
bar
}
or better yet:
if ( foo ) {
bar
}
The "closed curly brace must reduce indent level by one" is a bit too
simplistic and I find it actively annoying.
--
View this message in context: http://www.nabble.com/Bug-Report-Feature-Request----Bad-Indentation-Heurist…
Sent from the textmate users mailing list archive at Nabble.com.
I was playing `textmate` gem.
I noticed that my bundle I made for fun <http://github.com/samuraicoder/samuraicoder-tmbundle/
> was not findable using `textmate remote` command.
Am I missing something? Maybe naming convention is wrong?
Or are they manually checked by human to avoid miscellaneous bundles
like mine?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Whenever I try to run a Python script using PyMate, I just get the
following error message:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:68:in
`initialize': wrong number of arguments (2 for 1) (ArgumentError) from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:68:in
`new' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:68
I've tried updating bundles and the support folder to no avail. I'm
using the cutting-edge version of TextMate.
Any advice on how to fix this would be greatly appreciated.
Thanks,
Chris
--
Follow the path of the Iguana...
http://rebertia.com
hello.my question is if can i somehow change the ctrl+w shortcut with
command+w, or maybe command+e wich i see is doing nothing.
i never close windows, but the current ctrl+w i'm using very often, and is
not very confortable for me the combination.
--
Cristi
www.ralcr.com
I tried to report this as a bug via the website but I'm being flagged as
spam, even when logged in. (Meta bug?)
Anyway:
If I double-click on the && in the following line of text:
if( transform.position.z > CameraTransitionAltitude && !AboveCamera.active
){
I select " && !" which is definitely not what I want or expect.
I've had similar oddness with double-click selection elsewhere but this set
me off.
--
View this message in context: http://www.nabble.com/Bug-Report----Double-click-selection-tp19295446p19295…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
I've been trying to write an AppleScript to save any open TextMate
file into a specific folder with a filename constructed out of the
current date and time.
There is no problem creating the filename but I can't work out how to
get the path and filename into the TextMate file to be saved.
In the script below I've left out the bit that creates the file_name.
as that bit works fine. The problem is the line "save to file
file_path" which doesn't work :(
It does work with that other text editor for the Mac but of course I
don't use that one anymore :)
Thank you for any assistance you can give.
set file_path to "Macintosh HD:Users:patrick:Temporary:" & file_name
tell application "TextMate"
activate
if document 1 exists then
tell document 1
save to file file_path
end tell
else
display dialog "No open file"
end if
end tell
Patrick
http://www.patrickjames.co.uk
On Sep 2, 2008, at 2:45 AM, Allan Odgaard wrote:
|| [...]
|| and this unexpected result when run from PyMate:
|| PyMate r8111 running Python 2.5.2 (/usr/bin/env python) >>> loc.py
|| C/en_US.UTF-8/C/C/C/C
|| 282929992
| TM itself sets LC_CTYPE since it is only concerned about character
| encoding for the processes it launches (for stdin/out).
| If you want to have LC_ALL set for the processes it launches, set it
| in Preferences ? Advanced ? Shell Variables.
If TM were setting LC_CTYPE correctly, wouldn't PyMate produce the same output (stdout) as I saw in the shell?
Dave
Using 1.5.7 (1464), I realized that the command-shift-A shortcut for Add
New Files... doesn't work to add files to a project. I just get a
system beep.
I've seen no discussion of this here, aside from a 2005 post that said
it should start working once you've manually displayed the menu, so I'm
guessing this isn't a common problem. Yet I'm seeing it on two
different Macs. Command-Shift-N, which is on the File menu as well as
the gear menu, does work. Command-shift-G, which is also on the gear
menu (and not any other menu), doesn't work either.
Is this in fact a known problem? Is there a workaround, other than
QuicKeys/etc? I took a look at KeyBindings.dict, but I'm not sure if I
can add command-keystrokes that way, or what the setting would be
called, etc.
Jay Levitt
I've recently begun learning Erlang, and in the process made some
updates to the Erlang bundle that might be useful to others. I've
created an AppleScript that can perform basic remote control of a
Terminal window running an Erlang shell -- enough to compile a source
file at least.
There's a short screencast and download information on my blog:
http://imbriaco.com/braindump/articles/first-post-erlang-and-textmate/
If the original author of the Erlang bundle reads this, I'd love to
contribute this back to the official bundle. Feel free to contact me
off list.
-Mark
I have asked about this in the obvious places (pgf help forum and
comp.text.tex) and after some initial help, the help has dried up. As
this is going to be a specifically Mac users here, maybe the problem
may be more obvious.
When I try and compile this code (from the manual):
\documentclass[a4paper]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}%
\begin{axis}[
xlabel=$x$,
ylabel=$\sin(x)$,
name=an axis,
]
\addplot plot [id=sin] function{sin(x)};
\end{axis}
\end{tikzpicture}%
\end{document}
I get these errors:
Latex Error: ./PDFPlotTrial2.tex:11 Package pgfplots Error: Sorry, the
gnuplot-result file 'PDFPlotTrial2.sin.table' could not be found.
Maybe you need to enable the shell-escape feature? For pdflatex, this
is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplot
PDFPlotTrial2.sin.table' manually..
! Package pgfplots Warning: You have a plot with empty range.
Replacing it with default and clearing plots.
Latex Error: ./PDFPlotTrial2.tex:13 Extra }, or forgotten \endgroup.
Latex Error: ./PDFPlotTrial2.tex:13 Missing } inserted.
Latex Error: ./PDFPlotTrial2.tex:13 Extra }, or forgotten \endgroup.
Latex Error: ./PDFPlotTrial2.tex:13 Missing } inserted.
Latex Error: ./PDFPlotTrial2.tex:15 LaTeX Error: \begin{tikzpicture}
on input line 5 ended by \end{document}.
I have run pdflatex --shell-escape PDFPlotTrial2.tex from terminal
(which seemed to work as I got pages of text appearing with no obvious
error messages) and I have upgraded to version 2 of pgf. GNUPlot was
installed with fink and runs OK from typing gnuplot in terminal.
I am now stuck, and no idea what to try next. I am pretty new to this
so it could well be something so obvious that no one is suggesting it.
Can anyone help.
Many thanks,
Graham
Hi all-
I'm working on a language grammar for Forth, and am hoping I could get
some advice or pointers for my work. I've read the TextMate manual, and
James Gray's fine book, although I'm sure I haven't extracted every
nugget of info from those texts.
As some of you may be aware, Forth is a stateful language, and there
are certain keywords that are valid only when Forth is compiling. For
example, some words, like IF, THEN and ELSE, can be used only within a
word (function) definition.
So it would be nice to capture this in the scope, and assign these
compile-only words to an "invalid" scope when they are used outside a
function definition. The question is, how to (best) do this?
I've looked at the C language definition a bit, and clearly there are
two modes there: "preprocessing", and "not". But with Forth, I should
be able to assign an invalid scope to the top-level; in essence, have
an invalid scope for source.forth.
Any thoughts?
Best, Charles
Hi,
I've just upgraded the standard Java bundle and TM's support lib for
executor stuff.
I have the following tiny java script:
import java.io.*;
public class test {
public static void main(String args[]){
System.out.println("Hello World");
}
}
saved as test.java
If I compile and run it on a console, no problem.
If I use the Java bundle's "Compile & Run" I get this:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
executor.rb:87:in `run': undefined method `call' for nil:NilClass
(NoMethodError) from /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/io.rb:41:in `call' from /Applications/TextMate.app/
Contents/SharedSupport/Support/lib/io.rb:41:in `exhaust' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb:
41:in `each_line' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/io.rb:41:in `exhaust' from /Applications/
TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:165:in
`run' from /Applications/TextMate.app/Contents/SharedSupport/Support/
lib/tm/executor.rb:99:in `run' from /Applications/TextMate.app/
Contents/SharedSupport/Support/lib/tm/executor.rb:198:in
`process_output_wrapper' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/tm/executor.rb:98:in `run' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
htmloutput.rb:134:in `call' from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/tm/htmloutput.rb:134:in `show' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
executor.rb:83:in `run' from /Applications/TextMate.app/Contents/
SharedSupport/Bundles/Java.tmbundle/Support/bin/javamate.rb:32
I didn't set up any env variables.
I'm running a Intel MacOSX 10.5.4 (very fast;) with TM Version 1.5.7
(1466)
With the 'old' Java bundle ("Compile & Run single script") it works.
Any help available?
The new bundle has a nice feature. "Compile & Run (with args)"
I couldn't try out it yet but if I have a folder containing my Java
script and aFile, and I want to do something with that aFile. Is it
possible to enter only the filename aFile as argument without the
absolute path. In other words, does run the script in that folder?
Many thanks in advance,
--Hans
This Python code:
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
import locale
def main():
print locale.setlocale(locale.LC_ALL, '')
print locale.format("%d", 282929992, grouping=True)
if __name__ == '__main__':
main()
produces the expected result when run under Python 2.5.2 from bash
shell on Mac OS X:
en_US.UTF-8
282,929,992
and this unexpected result when run from PyMate:
PyMate r8111 running Python 2.5.2 (/usr/bin/env python) >>> loc.py
C/en_US.UTF-8/C/C/C/C
282929992
Notice that the integer is formatted into comma-separated groups when
run from the shell, but not when run from PyMate.
Changing this line:
print locale.setlocale(locale.LC_ALL, '')
to this:
print locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
gives the expected results in PyMate.
Dave
Hi all-
I'm trying to match character constants of the form:
&a &B &!
'c' 'D' '!'
"e" "F" "@"
^G ^h ^+
within the match field of a language grammar.
If I use the search dialog box, this regexp will work for characters
enclosed in single apostrophes:
((?<=^)|(?<=\s))(([&^]\S)|(\'\S\'))(?=\s)
But it doesn't work when I get it into the match field, I suspect
because of the framing apostrophes, as in:
{ name = 'constant.character.forth';
match = '((?<=^)|(?<=\s))(([&^]\S)|(\'\S\'))(?=\s)';
},
Any ideas about what I'm doing wrong, or how I can solve my trouble?
I should also point out that the ungainly:
((?<=^)|(?<=\s))
seems to be necessary inside a language grammar as (?<=\s) alone
doesn't work, although it does in the search dialog. It matches within
a line, but not at the beginning of a line. It may be that this is only
the case with begin/end matching, and not single lines...
Thanks! Charles
The syntax highlighting for LaTeX math mode is very good. I have
noticed, however, a discrepancy in the way the highlighting and the
automatic delimiters are treated. I mean, normally typing a $ will
automatically generate a second one (after the cursor) to end the math
mode. However, I have found that this fails when a command in math
mode spans multiple lines. That is, if there is a hard return in math
mode, then the delimiters behave incorrectly eventhough the syntax
highlighting is correct.
Here's an example:
$math stuff
that spans two lines$ when I put a $ here it thinks I'm closing the
math mode from the first dollar sign on this line of code rather than
thinking I'm starting a new math mode.
Keith Penrod
Hi there,
Some people are working on updating Python and HTML-related bundles
for Django, prior to Django's 1.0 release (http://www.bitbucket.org/bkerr/django-textmate-bundles/
), and I've got a bundle command problem where I'm hoping someone can
point the way.
The idea is to provide some kind of automation for importing commonly-
used functions and classes from Django's source code. Many of these
objects are hidden fairly deep inside one module or another, and it's
easy to forget which, leading to long tromps through the source code.
I'd like to provide a command, perhaps similar to the HTML bundle's
code completion command, which lets people either a) hit command-
escape after the name of an object and view/paste its import path or
b) start typing 'from django.', hit a key combo, and see a list of
child modules, ideally letting them drill down into the modules until
they find the object they're looking for.
I haven't written complicated bundle commands before and am not sure
how to start this, in particular whether to go with route a or b. I
can either manually build up a dictionary of objects and their import
paths and then maintain that dict as Django evolves, or I can try for
a command that actually searches Django's source code for the
definition of an object. I'm leaning towards the former for two
reasons: Having a list of objects would also serve for syntax
highlighting, and also many objects are defined in one module, then
imported into the __init__ file of another. They're 'supposed' to be
imported from that second module, but a search function wouldn't know
that.
Anyway, any general pointers and issues to consider would be much
appreciated. I'd be writing the script in Python, naturally!
Thanks,
Eric
Using the latest Java bundle, strings are not highlighted correctly:
public class Foo
{
void bar(Object baz)
{
throw new RuntimeException(baz.toString() + "; void");
}
}
Trevor
I have a problem with Java Bundle. I can't create a new document from
templates.
Steps to reproduce:
1. From "File" menu, choose "New From Template..."
2. And choose a template from the selection.
Environment:
* The latest svn version of Java Bundle
* TextMate Version 1.5.7 (1464)
* Mac OS X Leopard 10.5.4
I was reading the code for the templates in Bundle Editor, but I don't
know what's happening.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi all-
Is there a way to dump the current scopes out? I'm thinking like the
"Show keyboard shortcuts" in the TextMate bundle?
Or is there something that documents the relationship between the
various scopes, and the syntax colors?
For example, there's an appearance attribute named "Preprocessor
Directive", but what scope would lead to something being colored with
that attribute?
I think also I've noticed some conflicting documentation: Is it
<comment.block.documentation> -or- <comment.documentation>?
Thanks as always, Charles
Hi all-
In section 12.4 of the manual, under the comment root group, there are
references to further specifications of the line comment. There's an
interesting italicization of the "character" type, which creates
ambiguity for me.
Does this mean that I should specify:
comment.line.character.<language> -or-
comment.line.<character>.<language> ?
I'm thinking about Forth's backslash \ comments:
comment.line.character.forth -or- comment.line.\.forth
Thanks!
Charles
On Fri, 29 Aug 2008 11:14:45 -0500, James Gray wrote:
> There's no reason to use a shell script. Ruby supports this directly:
>
> ./configure … --program-suffix=18
>
> That would add a 18 suffix to all programs built: ruby18, irb18, etc.
Hi James-
Nice tip, but I was referring to a shell script that would jiggle some
symbolic links in /usr/local/bin so that I could switch "ruby" between
1.9.0, 1.8.6 and MacRuby...
Best, Charles
Hi
I'm not as proficient with text editors as many on this list.
BBEdit has a very handy thing called "Includes"
The easiest way for me to describe them is simply to copy and paste
from BBEdit help:
An include file, or just an "include," is a special form of
placeholder
whose substitution happens to be the contents of another file.
If you
have used C or certain other programming languages, you may
already be
familiar with the concept. Using includes, you can reuse
standard bits
of text content or HTML markup in several templates or clippings
entries without having to revise all of those individual files
whenever
you revise the included text.
Apologies for not only mentioning BBEdit but pasting in something from
the help :)
The reason I want to use includes like this now is that I have quite a
large web-site which uses PHP includes a lot.
I have been asked to put this web-site on a CD and of course the
problem is that a CD doesn't have any PHP.
So, as you have probably guessed, I need to convert the web-site
changing all the PHP includes into the actual chunks of HTML in the
files supplying those PHP includes.
I know that with BBEdit I would do a find/replace changing the PHP
includes in BBEdit includes and do it that way.
However I haven't used BBEdit for quite a while now because I tend
always to use TextMate now of course.
I'm wondering if I can do this in TextMate?
I've been doing searches through the excellent "TextMate: Power
Editing for the Mac" with "includes" and "placeholders" but it doesn't
turn up a description of something similar.
Thank you for any assistance you can give.
Patrick
http://www.patrickjames.co.uk
i've been using textmate for a few months now. i'm a vim convert... ;-)
anyway, i've found a replacement for almost everything except vim's
ability to hit ctrl-o and ctrl-i to go forward and backward in the
"jump history". does anyone know how to accomplish this in textmate?
or maybe just jump back to previous position? i know bookmarks can do
basically the same thing...it's just nice to have when you realized
you forgot to set a bookmark.
thanks.
chad
Let me start by saying that I couldn't live without TextMate...it's the
one program that made my switch from the Windows world (a year and
counting! :) ) permanent. I have just a couple of issues I am looking
for guidance on however.
Firstly, when building Wordpress themes for clients, I generally start
with three files, for which I have my own custom TextMate templates. I
was wondering if there is a way to automatically create these three
files (with correct filenames if possible) from my templates. Ideally,
this would be bound to a keystroke string (command-shift-N would be
nice, since the muscle memory is already there for that string), but
mousing it from the menu would work too.
I had first thought of using a macro, but apparently, you can't use a
macro to create a new file.
Second, the keyboard shortcut for Save As stopped working some time
ago. I thought it might be an issue with a buggy install of Tiger, but
even after upgrading to Leopard (via a clean install), I still don't
have the ability to use the keyboard shortcut. I'm pretty sure it's not
a conflict with the keystroke string being redefined by a bundle or
anything (I've gone through all the bundles I have active, and nothing
is using it), so I'm at a loss.
Any ideas?
Thanks,
Keith
--
Keith Solomon - ksolomon(a)gmail.com
My Blog - http://reciprocity.be/
My Flickr - http://www.flickr.com/photos/zarath0s/
> I'm not seeing the behavior you describe, but this may help me to
> figure out
> what is going on.
>
> Run the following command in your terminal window.
>
> defaults write com.macromates.textmate latexDebug 1
>
> Then run typeset & view again from TextMate. This may help identify
> where
> the delay is coming from. Please send me the output in an offlist
> email
> and if you can, identify where the delays are.
>
> After you have run typeset & view with debug on you can turn it off
> again
> with:
>
> defaults write com.macromates.textmate latexDebug 0
Brad,
Thank you for your message. I apologize for the delay, Mail.app
decided that texmate-list was spam.
I will send you the information in a private email for interest, but
the problem seems to have cleared itself up. In the meantime, I had
removed some unwanted bundles, reset textmate, etc. and now when I
typeset the document of interest, it is nearly instantaneous.
Cheers,
Brian
When I try to start a ruby script, out of
textmate with "#!/usr/local/bin/ruby" which
is the wrong path, I get an error.
So I changed /Library/Application\ Support/TextMate/Support/lib/tm/
process.rb
around line 101 to
if ! File.executable?( cmd[ 0 ] )
puts "Bashbang #{cmd[0]} seems to be not executable"
return [ "Error!", "" ]
end
That's sub-ideal because the error message is written with the puts.
Maybe there is a better way doing this.
Maybe it's helpful
Regards
Karl-Heinz