I just made some structural changes to the completion commands in the LaTeX bundle, both bibliography and label. It might be a bit slower, and more importantly I might have broken some stuff. So those of you brave enough to try it out, and without a paper deadline in 3 days, please update via svn (both the bundle and the global support directory) and let me know if you encounter any problems.
The reason for this change was to remove the large amount of code duplication that existed in these commands.
Haris
Charilaos Skiadas <skiadas@...> writes:
I just made some structural changes to the completion commands in the LaTeX bundle, both bibliography and label. It might be a bit slower, and more importantly I might have broken some stuff. So those of you brave enough to try it out, and without a paper deadline in 3 days, please update via svn (both the bundle and the global support directory) and let me know if you encounter any problems.
The reason for this change was to remove the large amount of code duplication that existed in these commands.
Haris
Well… That's very fine for me :-) Both completion commands works fine. I like those contextual menu better.
Thanks
Charilaos Skiadas <skiadas@...> writes:
please update via svn (both the bundle and the global support directory) and let me know if you encounter any problems.
Haris
Ok so let's make it clear. What do you mean by global support? On my computer I have:
1) /TextMate/Contents/SharedSupport/Support
2) /Library/Application Support/TextMate/Support
3) ~/Library/Application Support/TextMate/Support
and maybe something else (who knows). Which one should I update? should I erase the stuff in the others? which one prevails over the others?
I think this is really one of the weak points about TextMate. It is not serious to have so many locations to check, using the command line, with no way to know for sure if the update was successful.
I want a big red button "UPDATE" and that's it!
Piero
PS this is out of frustration, I "updated" and bib completion do not work any more. I'm sure I updated badly, but how badly exactly?
These are all the global support directory. More specifically: On Dec 21, 2006, at 2:47 AM, Piero D'Ancona wrote:
Ok so let's make it clear. What do you mean by global support? On my computer I have:
- /TextMate/Contents/SharedSupport/Support
This is what comes bundled with TM. You should never edit that.
- /Library/Application Support/TextMate/Support
This is what you checked out from svn. You should update that.
- ~/Library/Application Support/TextMate/Support
This is a local version of this folder that shouldn't be there at all. In the case of bundles this holds local modifications, in the case of the global support directory you should remove it. Then things should start working again, if you also update 2 via svn.
The order in which these take efffect is: If 3 is there, then that is being used. If not, and 2 is there, then that is being used. If they are not there , then 1 is being used.
For bundles the order is similar, except with a twist. Say the command is called foo.tmCommand and lives in the LaTeX bundles. Then the three files under discussion would be:
1) /TextMate/Contents/SharedSupport/Bundles/Latex.tmbundles/Commands/ foo.tmCommand
2) /Library/Application Support/TextMate/Bundles/Latex.tmbundles/ Commands/foo.tmCommand
3) ~/Library/Application Support/TextMate/Bundles/Latex.tmbundles/ Commands/foo.tmCommand
The order again is 3 > 2 > 1, except when 3 is a "delta" file, in which case it is being merged with the next file that's there.
Normally none of these is a problem if you follow the instructions from section 5.7.3 of the manual.
It is not an easy problem to solve really, if it is to allow you the flexibility of being able to edit any commands you like to your heart's content. I think Allan has found a decent balance and most of the time you do not need to worry about such details at all.
The big red button saying UPDATE is there, and it is the one coming up when TM is updated and asks you if you want to install the new version, and if you have not messed with svn much that's all you would need to do. If you have messed with svn, then the button is called "svn up". These normally work
In your case, the presence of ~/Library/Application Support/TextMate/ Support will give you trouble no matter what, since it should never have been there in the first place.
Haris
Charilaos Skiadas <skiadas@...> writes:
In your case, the presence of ~/Library/Application Support/TextMate/ Support will give you trouble no matter what, since it should never have been there in the first place.
Haris
Thank you for the patient explanation, which makes the theory much more clear. I have the feeling this might be useful for other newbies also...
Now back to practice.
1) The folder Support in my home library was created by the GetBundle "Update all Bundles" command. I just trashed it, and it was recreated under my eyes. So at least I'm not guilty for that, or am I? How can I set the location for that command? or is it deprecated and should I use svn exclusively?
2) So my understanding is: a) what's inside TextMate.app: never touch! b) /Library/Application Support/TextMate: update via svn c) ~/Library/Application Support/TextMate: put your personal experiments, additional themes, etc here so they will not be wiped out by svn; erase them if you want to be sure to use the repository version.
3) What is the best (read: simplest) way to update using svn? E.g. suppose I want to download all bundles, plugins, support, everything. Then I open a terminal window, cd /Library/Application Support/Textmate then give the command export LC_CTYPE=en_US.UTF-8 then give the command svn co http://macromates.com/svn/Bundles/trunk ./ Right?
4) What if I just want to update everything I have without downloading new stuff? This is probably the most common operation and might deserve a menu item, or at least should be fully automated... The GetBundle is a very nice try, but updates only Bundles and creates the wrong folder (see 1), maybe it should be improved? And what are the correct commands if I just want to update global support?
5) I just cleaned up my home dir, re-installed TextMate from scratch, erased the TextMate folder in the /Library, did step 3 above. The automatic updater updated to r1349. Now label completion works again, while reference completion says Library/Application Support/TextMate/Support /lib/LaTeXUtils.rb:31:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileparse_bibfile' (several times)
Thank you, Piero
On Dec 21, 2006, at 12:04 PM, Piero D'Ancona wrote:
Charilaos Skiadas <skiadas@...> writes: Thank you for the patient explanation, which makes the theory much more clear. I have the feeling this might be useful for other newbies also... Now back to practice.
- The folder Support in my home
library was created by the GetBundle "Update all Bundles" command. I just trashed it, and it was recreated under my eyes. So at least I'm not guilty for that, or am I? How can I set the location for that command? or is it deprecated and should I use svn exclusively?
Ah, you are using the GetBundle bundle. I've never used that so I can't comment on it, perhaps its developer can say more about it. All I know about it is that it is only supposed to be used with bundles that don't come "bundled" with TM, so in particular not with the LaTeX bundle.
Of course if it is updating the global support directory, this may cause problems for the bundles that come bundled with TM, since they might be left to older versions.
It it does update it however, then the only thing left is updating the LaTeX bundle, whose newer version hopefully you have under subversion under /Library/......
- So my understanding is:
a) what's inside TextMate.app: never touch! b) /Library/Application Support/TextMate: update via svn c) ~/Library/Application Support/TextMate: put your personal experiments, additional themes, etc here so they will not be wiped out by svn; erase them if you want to be sure to use the repository version.
Correct. Except for what GetBundle does, which I don't know about.
- What is the best (read: simplest) way to
update using svn? E.g. suppose I want to download all bundles, plugins, support, everything. Then I open a terminal window, cd /Library/Application Support/Textmate then give the command export LC_CTYPE=en_US.UTF-8 then give the command svn co http://macromates.com/svn/Bundles/trunk ./ Right?
correct, if you want everything in the repository, which is what I've done but it might be too much for most people.
- What if I just want to update everything I have
without downloading new stuff? This is probably the most common operation and might deserve a menu item, or at least should be fully automated... The GetBundle is a very nice try, but updates only Bundles and creates the wrong folder (see 1), maybe it should be improved? And what are the correct commands if I just want to update global support?
http://skiadas.dcostanet.net/afterthought/2006/12/20/subversion-and- textmate/
- I just cleaned up my home dir, re-installed
TextMate from scratch, erased the TextMate folder in the /Library, did step 3 above. The automatic updater updated to r1349. Now label completion works again, while reference completion says Library/Application Support/TextMate/Support /lib/LaTeXUtils.rb:31:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileparse_bibfile' (several times)
Can you send me a minimal example demonstrating the problem? At the very least your bib file?
Thank you, Piero
Haris
On 12/21/06, Charilaos Skiadas skiadas@hanover.edu wrote:
I just made some structural changes to the completion commands in the LaTeX bundle, both bibliography and label. It might be a bit slower, and more importantly I might have broken some stuff. So those of you brave enough to try it out, and without a paper deadline in 3 days, please update via svn (both the bundle and the global support directory) and let me know if you encounter any problems.
The reason for this change was to remove the large amount of code duplication that existed in these commands.
Haris
The label completion works fine. Using the bibliography completion, I get the error:
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:44:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filemap' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:33:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:134:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filerecursive_scan' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:110:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filerecursive_scan' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:102:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filerecursive_scan' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:101:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:101:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filerecursive_scan' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:139:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileget_citations' from /tmp/temp_textmate.Q4cx7B:7
Btw, I'm using revison 6373 and TextMate 1.5.4 build 1349.
Best regards,
Morten
Hi!
I get errors for label completion and for citation.
\cite{/Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:17:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filefind_file' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:94:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filecall' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:105:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_pair' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:102:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_with_index' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:101:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_with_index' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:101:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:11:in }
\ref{/Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:17:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filefind_file' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:94:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filecall' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:105:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_pair' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:102:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_with_index' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:101:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_with_index' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:101:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filelabel_scan' from /Users/helge/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:8:in }
Helge
Charilaos Skiadas <skiadas@...> writes:
Same here. Please send me reproducible examples, ideally with minimal text.
Haris
I get the error while trying to complete the citation in the following example:
\documentclass{article} \begin{document} \cite{dan} \bibliography{/Users/pieroal/Documents/Biblioteca/-bib/bibliodatabase.bib} \bibliographystyle{plain} \end{document}
I hope this is minimalistic enough :) The bib file contains only one entry:
@article{DAnconaFanelli07-c, Author = {D'Ancona, Piero and Fanelli, Luca}, Journal = {Commun. Pure Appl. Anal.}, Title = {Decay estimates for the wave and Dirac equations with a magnetic potential}, Year = {2007}}
If I comment out the bibliography line the same happens. If I erase it, nothing happens (no error, nothing)
Piero
The following example:
\documentclass[]{article} \usepackage[utf8]{inputenc} \title{A LaTeX Article} \begin{document} \section{Kap 1}\label{sec:kap_1} % (fold)
% section kap_1 (end)
\section{Kap 2}\label{sec:kap_2} % (fold) % section kap_2 (end)
\section{Kap3}\label{sec:kap3} % (fold)
% section kap3 (end) \bibliographystyle{plain} \bibliography{/Users/helge/Desktop/LatexMate2/lit} \end{document}
Content of lit.bib:
@BOOK{Merritt1989, title = {Building Expert Systems in Prolog}, publisher = {Springer}, year = {1989}, author = {Dennis Merritt}, timestamp = {2006.03.30}, url = {http://www.amzi.com/products/learning_products.htm%7D, }
for citation I get: /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:31:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filefind_file' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:169:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filecall' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:140:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:139:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_pair' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:138:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_pair' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:131:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_with_index' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:130:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_with_index' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:130:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:23:in
References work as long as there is only one source file.
Helge
Charilaos Skiadas schrieb:
On Dec 21, 2006, at 1:39 PM, Helge Hartmann wrote:
Hi!
I get errors for label completion and for citation.
Same here. Please send me reproducible examples, ideally with minimal text.
Haris
I forgot: It's TextMate 1.5.4 (1324) and Revision 6378 of the Latex Bundle.
Helge Hartmann schrieb:
The following example:
\documentclass[]{article} \usepackage[utf8]{inputenc} \title{A LaTeX Article} \begin{document} \section{Kap 1}\label{sec:kap_1} % (fold)
% section kap_1 (end)
\section{Kap 2}\label{sec:kap_2} % (fold) % section kap_2 (end)
\section{Kap3}\label{sec:kap3} % (fold)
% section kap3 (end) \bibliographystyle{plain} \bibliography{/Users/helge/Desktop/LatexMate2/lit} \end{document}
Content of lit.bib:
@BOOK{Merritt1989, title = {Building Expert Systems in Prolog}, publisher = {Springer}, year = {1989}, author = {Dennis Merritt}, timestamp = {2006.03.30}, url = {http://www.amzi.com/products/learning_products.htm%7D, }
for citation I get: /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:31:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filefind_file' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:169:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filecall' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:140:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:139:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_pair' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:138:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_pair' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:131:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_with_index' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:130:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of fileeach_with_index' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:130:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `'' /bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan' from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:23:in
References work as long as there is only one source file.
Helge
Charilaos Skiadas schrieb:
On Dec 21, 2006, at 1:39 PM, Helge Hartmann wrote:
Hi!
I get errors for label completion and for citation.
Same here. Please send me reproducible examples, ideally with minimal text.
Haris