Hello,
I have 1.5.7 (1464) running on MacOs 10.5.5. I've been trying to use
the Code Completion command in the CSS bundle.
First, With the default key equivalent activation (Option+Esc) nothing
happened, I then changed the activation keys to (Cmd+Esc) and I get
the following error when I run the command:
#####################################
/Users/rvega/Library/Application
Support/TextMate/Support/lib/codecompletion.rb:318:in /bin/bash: -c:
line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of filemap' for
nil:NilClass (NoMethodError)
from /Users/rvega/Library/Application
Support/TextMate/Support/lib/codecompletion.rb:87:in /bin/bash: -c:
line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from /Users/rvega/Library/Application
Support/TextMate/Support/lib/codecompletion.rb:59:in
#####################################
I also checked out the latest version of the css bundle and the TM
support folder fro svn but the error is the same.
I noticed that the html bundle uses the same completions ruby script
but the html code completion command works fine.
In case someone knows how the codecompletion script works, here are
the Code Completion commands in my css bundle:
#####################################
##########################
#CODE COMPLETION CSS:
##########################
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
preference = 'Completions'
choices = []
parsed_choices = TextmateCompletionsParser.new(nil, :scope => :css).to_ary
choices += parsed_choices if parsed_choices
choices += ['--']
plist_choices = TextmateCompletionsPlist.new(
"#{ENV['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences"
).to_ary
choices += plist_choices if plist_choices
print TextmateCodeCompletion.new(choices,STDIN.read, :scope => :css).to_snippet
#####################################
#CODE COMPLETION CSS PROPERTIES:
#####################################
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
TextmateCodeCompletion.plist('Property Completions')
###########################################
#CODE COMPLETION CSS PROPERTY VALUES:
###########################################
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
preference = 'Property Value Completions'
choices = []
parsed_choices = TextmateCompletionsParser.new(nil, :scope =>
:css_values).to_ary
choices += parsed_choices if parsed_choices
choices += ['--']
plist_choices = TextmateCompletionsPlist.new(
"#{ENV['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences"
).to_ary
choices += plist_choices if plist_choices
print TextmateCodeCompletion.new(choices,STDIN.read).to_snippet
#####################################
Thanks for any help!
Hey everyone,
I noticed the php autocompletions script does not seem to be correctly
marking optional parameters with [] except for the last param. I searched
around and found the list of completions in the php bundle support but that
looks good to me, so I'm guessing it's the way the ruby script is breaking
them up. I can somewhat figure out what it's doing but I don't know any ruby
so I don't know how to fix it. If anyone could take a look and maybe fix
that small issue (or tell me its my fault and how to fix it), I'd be very
grateful. (I updated my tm support folder just in case it had been fixed but
it didnt seem to help)
Thanks!
Quine
Consider, with Input = Selected text or Line,
#!/usr/bin/env ruby
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
TextMate.exit_insert_snippet ENV["TM_CURRENT_LINE"]
This changes
asd $ \\
into
asd \
and I am not surprised. But what is the cleanest way
to get back the original line unchanged? I can manage
the slashes but not the dollar. And e_sh is not
a solution since it adds spurious slashes which I have
to take care of.
Thanks,
Piero
PS what I need is a way to pass to TextMate.exit_insert_snippet
a string containing dollars slashes etc in such a way that the
strings is inserted without any change. I know someone can do
this
Ok
this post from October did help me:
------------------------------
Message: 6
Date: Mon, 13 Oct 2008 20:06:33 +0200
From: Alex Ross <tm-alex(a)rosiba.com>
Subject: [TxMt] Re: Latex Bundle Stop to work on MacTex 2008 installed
To: TextMate users <textmate(a)lists.macromates.com>
Message-ID: <601AFE08-73AB-402B-98F9-BD4DABC66805(a)rosiba.com>
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
delsp=yes
On Oct 13, 2008, at 7:07 PM, Jose Lobato wrote:
>
> Hi,
>
> I completely removed the MacTex 2007 and install 2008. Once this is
> done it
> stops working when I try to build (cmd+R) Get a big red mesage:
>
> Error: Could not open to check for packages
> This is most likely a problem with TM_LATEX_MASTER
>
> The text is over a small message that says something like (I have
> hardly
> read it):/bin/sh: kpsewich: cdmmarck not open
>
> ( please do not trust this last sentece because as I say I can not
> see it
> well)
>
> So, on: echo $PATH I have:
> /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/
> usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
TextMate no longer sources the shell profile so you need to set PATH
in TextMate's preferences. Just copy the above PATH to TextMate's
Shell Variables preference pane and all should be working again.
?Alex
I did copy the results from PATH into the TM Shell Variables PrefPane
and it seems to work ok now.
Sorry for this little flury of emails...
Cheers!
Claus
On 16-Oct-08, at 2:00 PM, textmate-request(a)lists.macromates.com wrote:
> Message: 4
> Date: Wed, 15 Oct 2008 22:00:09 +0200
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: problem running latex after svn up
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <FDE0695F-B385-4188-A09C-341AC2CD0B2B(a)rosiba.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On Oct 15, 2008, at 9:43 PM, Claus wrote:
>
>> Hi,
>> after svn updating all my *.tmbundle, including the latex bundle,
>> after running a previously working latex-project, I got after cmd-R:
>>
>> /tmp/temp_textmate.hXj0XQ:3:in `require': no such file to load -- /
>> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
>> process (LoadError) from /tmp/temp_textmate.hXj0XQ:3
>>
>> I looked around, and found that likely I have to also svn up the
>> "Support Folder":
>> cd /Library/Application\ Support/TextMate
>> svn co http://macromates.com/svn/Bundles/trunk/Support
>>
>> so I did, however, when I run
>> echo "$TM_SUPPORT_PATH"
>> I get
>> /Users/clausman/Library/Application Support/TextMate/Support
> What have you got in this directory? You can just delete /Users/
> clausman/Library/Application Support/TextMate/Support and I bet things
> will start working.
Hi again,
so, it turns out that some things work again, for example a python
script from the templates runs fine (which didn't work before the
checkout).
My key issue is still with compiling latex. Even with a file from the
templates, without a project it gives the error shown in the attached
screenshot.
Cheers,
Claus
On 17-Oct-08, at 6:40 AM, textmate-request(a)lists.macromates.com wrote:
> Message: 2
> Date: Thu, 16 Oct 2008 16:13:16 +0200
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: textmate Digest, Vol 5, Issue 25
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <C95F684D-7D16-4914-BE2C-85ED5D71A67D(a)rosiba.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
>
> On Oct 16, 2008, at 3:53 PM, Claus wrote:
>
>> Hm,
>> when I delete that folder (move it to a different place), I get the
>> original error:
>> /tmp/temp_textmate.78au0T:3:in `require': no such file to load -- /
>> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
>> process (LoadError) from /tmp/temp_textmate.78au0T:3
>>
>> when I move the folder back, I still get the
>> Error: Could not open to check for packages
>>
>> This is most likely a problem with TM_LATEX_MASTER
>>
>> /bin/sh: kpsewhich: command not found
>>
>> Note: I didn't see the third line last night, cause it was printed
>> white on white in the latex/textmate output window.
>>
>> Inside /Users/clausman/Library/Application Support/TextMate/Support
>> there are 5 folders:
>> Bundles
>> PlugIns
>> Pristine Copy
>> Support
>> Themes
>
> So you have a checkout of the entire textmate repository in your
> Support folder.
>
> Erase the folder /Users/clausman/Library/Application Support/TextMate/
> and do a clean svn checkout with:
>
> cd ~/Application\ Support/
> svn co http://macromates.com/svn/Bundles/trunk TextMate
>
> ?Alex
On 17-Oct-08, at 6:40 AM, textmate-request(a)lists.macromates.com wrote:
> Message: 2
> Date: Thu, 16 Oct 2008 16:13:16 +0200
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: textmate Digest, Vol 5, Issue 25
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <C95F684D-7D16-4914-BE2C-85ED5D71A67D(a)rosiba.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
>
> On Oct 16, 2008, at 3:53 PM, Claus wrote:
>
>> Hm,
>> when I delete that folder (move it to a different place), I get the
>> original error:
>> /tmp/temp_textmate.78au0T:3:in `require': no such file to load -- /
>> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
>> process (LoadError) from /tmp/temp_textmate.78au0T:3
>>
>> when I move the folder back, I still get the
>> Error: Could not open to check for packages
>>
>> This is most likely a problem with TM_LATEX_MASTER
>>
>> /bin/sh: kpsewhich: command not found
>>
>> Note: I didn't see the third line last night, cause it was printed
>> white on white in the latex/textmate output window.
>>
>> Inside /Users/clausman/Library/Application Support/TextMate/Support
>> there are 5 folders:
>> Bundles
>> PlugIns
>> Pristine Copy
>> Support
>> Themes
>
> So you have a checkout of the entire textmate repository in your
> Support folder.
>
> Erase the folder /Users/clausman/Library/Application Support/TextMate/
> and do a clean svn checkout with:
>
> cd ~
> svn co http://macromates.com/svn/Bundles/trunk TextMate
>
> ?Alex
Alex,
I did what you said, assuming you meant I should check out textmate into
~/Library/Application\ Support/
unfortunately, the same problem is still there, even if I compile a
very minimalistic latex test file.
>> Error: Could not open to check for packages
>>
>> This is most likely a problem with TM_LATEX_MASTER
>>
>> /bin/sh: kpsewhich: command not found
Does anybody have any more ideas?
Thanks,
Claus
I work thoroughly in Mathematica and in LaTeX and would enjoy the
following capability:
select some tex-math. Use a macro on it to do the following:
--expand out any short-hand I use as specified in an arbitrary style
file.
--call MathKernel on the TeX line.
--Convert from the TeX to Mathematica standard form using
Mathematica's ToExpression.
--Evaluate the math
--use Mathematica's TeXForm to convert the math output into LaTeX
--insert the result into the file or into the clipboard.
my Mathematica installation came with a command-line MathKernel
program which I've been trying to call with
MathKernel -noprompt <<EOF
TeX expression that I want evaluated
EOF
However, when I tried this in bash, the escaping of the TeX
backslashes on the way in and then again on the way out of the
MathKernel program was causing major headaches.
Has anyone ever interfaced the two programs in this way? Anyone have
any advice as to how to approach this problem? I can't seem to find
any Mathematica interaction bundle for TM.
Thanks very much,
Evan Berkowitz
--------------------------------------------------
Physics is like sex. Sure, it may give some practical results, but
that's not why we do it.
Richard Feynman
Hm,
when I delete that folder (move it to a different place), I get the
original error:
/tmp/temp_textmate.78au0T:3:in `require': no such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
process (LoadError) from /tmp/temp_textmate.78au0T:3
when I move the folder back, I still get the
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
/bin/sh: kpsewhich: command not found
Note: I didn't see the third line last night, cause it was printed
white on white in the latex/textmate output window.
Inside /Users/clausman/Library/Application Support/TextMate/Support
there are 5 folders:
Bundles
PlugIns
Pristine Copy
Support
Themes
inside Support there are quite a few more folders:
bin
css
images
lib
nibs
script
Sound
themes
and a file called version which contains the number 9280... anyways,
in bin there are a few files which I guess are related to latex:
LatexCitekeys.rb
LateXCommandCompletions.rb
LatexLabelCompletions.rb
Hm, so textmate can still not compile latex. I also have tried python,
and that doesn't work either. Trying to run the default script from
the templates, I get:
/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
Hm, does this mean that things are too messed up... and a clean
install is necessary? What files would I have to delete? And which
ones should I backup?
Or are there any other options?
Thanks for your help,
Claus
On 16-Oct-08, at 2:00 PM, textmate-request(a)lists.macromates.com wrote:
> Message: 4
> Date: Wed, 15 Oct 2008 22:00:09 +0200
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: problem running latex after svn up
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <FDE0695F-B385-4188-A09C-341AC2CD0B2B(a)rosiba.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On Oct 15, 2008, at 9:43 PM, Claus wrote:
>
>> Hi,
>> after svn updating all my *.tmbundle, including the latex bundle,
>> after running a previously working latex-project, I got after cmd-R:
>>
>> /tmp/temp_textmate.hXj0XQ:3:in `require': no such file to load -- /
>> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
>> process (LoadError) from /tmp/temp_textmate.hXj0XQ:3
>>
>> I looked around, and found that likely I have to also svn up the
>> "Support Folder":
>> cd /Library/Application\ Support/TextMate
>> svn co http://macromates.com/svn/Bundles/trunk/Support
>>
>> so I did, however, when I run
>> echo "$TM_SUPPORT_PATH"
>> I get
>> /Users/clausman/Library/Application Support/TextMate/Support
> What have you got in this directory? You can just delete /Users/
> clausman/Library/Application Support/TextMate/Support and I bet things
> will start working.
Hi,
after svn updating all my *.tmbundle, including the latex bundle,
after running a previously working latex-project, I got after cmd-R:
/tmp/temp_textmate.hXj0XQ:3:in `require': no such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
process (LoadError) from /tmp/temp_textmate.hXj0XQ:3
I looked around, and found that likely I have to also svn up the
"Support Folder":
cd /Library/Application\ Support/TextMate
svn co http://macromates.com/svn/Bundles/trunk/Support
so I did, however, when I run
echo "$TM_SUPPORT_PATH"
I get
/Users/clausman/Library/Application Support/TextMate/Support
and not
/Library/Application Support/TextMate/Support
as I should according to
http://manual.macromates.com/en/bundles
Now, at first this didn't bother me too much,
but when I tried to cmd-R on my latex project, I got
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
(I have TM_LATEX_MASTER set under cmd-I)
interestingly, this error even occurs when I try to compile a single,
basic latex file like the following four lines (and I thought
TM_LATEX_MASTER is only necessary when using projects?)
\documentclass[article]
\begin{document}
Hello World
\end{document}
Can anybody help me how to get latex running again?
Is the "$TM_SUPPORT_PATH" the problem?
Or is there anything major different in the latex bundle recently
(last half year or so)?
Thanks for your help,
Claus