I've discovered today that the "insert template" command for the LaTeX bundle doesn't work. It fails silently. I'm using TextMate 2 beta 11.5 on OS 10.11.5.
Kyle
Hi Kyle,
On 11 Jul 2016, at 15:22 , Kyle Johnson kbj@linguist.umass.edu wrote:
I've discovered today that the "insert template" command for the LaTeX bundle doesn't work. It fails silently. I'm using TextMate 2 beta 11.5 on OS 10.11.5.
the command works for me. I used the following steps (TextMate 2.0-beta.11.5, OS X 10.11.15):
1. Open TextMate 2. Create a new file (`⌘` + `N`) 3. Save the file as `test.tex` inside `~/Downloads` (where `~` is the location of your user directory) 4. Write down the word `temp` inside `test.tex` and hit `⇥` 5. TextMate opens a new window with the title “Insert LaTeX Template” 6. Hit `↩` to insert the first template `Article.tex` at the current position of the caret
The above steps work under my main account and also under a fresh Guest account (after I install the LaTeX bundle inside “Preferences”→“Bundles”).
Do the steps above work for you? If not, do they work if you temporarily activate the Guest account (“System Preferences”→“User & Groups”→“Guest Account”), switch to it and install the LaTeX bundle?
Maybe the probleme is `ruby18`. Does the following work on your machine?
1. Open TextMate 2. Create a new file (`⌘` + `N`) 3. Insert the text `ruby18 -v` in the first line of the file and press `Ctrl` + `R` 4. TextMate inserts the text `ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin13.3.0]` into the second line of the current file
Kyle
Kind regards, René
Thanks René for the speedy reply.
When I reproduce the steps you suggest — create a file in ~/Downloads and use the tab trigger with temp — I don’t get the once familiar menu of template choices. Instead, “temp” is erased and the cursor moves to the beginning of the document.
I’ve also checked that I’m running ruby 1.8.7, by reproducing your steps, and I am. I”m on the same version of TextMate and OSX as you are.
strange. I wonder what’s happened.
Kyle
On Jul 11, 2016, at 10:49 AM, René Schwaiger sanssecours@f-m.fm wrote:
Hi Kyle,
On 11 Jul 2016, at 15:22 , Kyle Johnson kbj@linguist.umass.edu wrote:
I've discovered today that the "insert template" command for the LaTeX bundle doesn't work. It fails silently. I'm using TextMate 2 beta 11.5 on OS 10.11.5.
the command works for me. I used the following steps (TextMate 2.0-beta.11.5, OS X 10.11.15):
- Open TextMate
- Create a new file (`⌘` + `N`)
- Save the file as `test.tex` inside `~/Downloads` (where `~` is the location of your user directory)
- Write down the word `temp` inside `test.tex` and hit `⇥`
- TextMate opens a new window with the title “Insert LaTeX Template”
- Hit `↩` to insert the first template `Article.tex` at the current position of the caret
The above steps work under my main account and also under a fresh Guest account (after I install the LaTeX bundle inside “Preferences”→“Bundles”).
Do the steps above work for you? If not, do they work if you temporarily activate the Guest account (“System Preferences”→“User & Groups”→“Guest Account”), switch to it and install the LaTeX bundle?
Maybe the probleme is `ruby18`. Does the following work on your machine?
- Open TextMate
- Create a new file (`⌘` + `N`)
- Insert the text `ruby18 -v` in the first line of the file and press `Ctrl` + `R`
- TextMate inserts the text `ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin13.3.0]` into the second line of the current file
Kyle
Kind regards, René
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi Kyle,
On 12 Jul 2016, at 12:57 , Kyle Johnson kbj@linguist.umass.edu wrote:
Thanks René for the speedy reply.
When I reproduce the steps you suggest — create a file in ~/Downloads and use the tab trigger with temp — I don’t get the once familiar menu of template choices. Instead, “temp” is erased and the cursor moves to the beginning of the document.
so the command worked before? Did you change any of the templates in the bundle (inside `LaTeX.tmbundle/Support/templates`)? Is there a folder `~/Library/Application Support/LaTeX/Templates` on you machine. If yes, could you please send me the contents of said folder?
Sorry for all the questions.
I’ve also checked that I’m running ruby 1.8.7, by reproducing your steps, and I am. I”m on the same version of TextMate and OSX as you are.
strange. I wonder what’s happened.
Kyle
Kind regards, René
esOn Tue, Jul 12, 2016 at 04:00:48PM +0200, René Schwaiger wrote:
Hi Kyle,
On 12 Jul 2016, at 12:57 , Kyle Johnson kbj@linguist.umass.edu wrote:
Thanks René for the speedy reply.
When I reproduce the steps you suggest — create a file in ~/Downloads and use the tab trigger with temp — I don’t get the once familiar menu of template choices. Instead, “temp” is erased and the cursor moves to the beginning of the document.
so the command worked before? Did you change any of the templates in the bundle (inside `LaTeX.tmbundle/Support/templates`)? Is there a folder `~/Library/Application Support/LaTeX/Templates` on you machine. If yes, could you please send me the contents of said folder?
I am not sure if this is related, but there was a recent change to the Dialog plugin. Can you paste this in a window and run it with Crtl+R?
"$DIALOG" -cmp {} ~/Library/Application\ Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/nibs/Templates.nib
Does it give an error?
-Ron
Sorry for all the questions.
I’ve also checked that I’m running ruby 1.8.7, by reproducing your steps, and I am. I”m on the same version of TextMate and OSX as you are.
strange. I wonder what’s happened.
Kyle
Kind regards, René
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Tue, Jul 12, 2016 at 04:00:48PM +0200, René Schwaiger wrote:
Hi Kyle,
On 12 Jul 2016, at 12:57 , Kyle Johnson kbj@linguist.umass.edu wrote:
Thanks René for the speedy reply.
When I reproduce the steps you suggest — create a file in ~/Downloads and use the tab trigger with temp — I don’t get the once familiar menu of template choices. Instead, “temp” is erased and the cursor moves to the beginning of the document.
so the command worked before? Did you change any of the templates in the bundle (inside `LaTeX.tmbundle/Support/templates`)? Is there a folder `~/Library/Application Support/LaTeX/Templates` on you machine. If yes, could you please send me the contents of said folder?
I am not sure if this is related, but there was a recent change to the Dialog plugin. Can you paste the following intoTextMate and running it with CRTL+R?
"$DIALOG" -cmp {} ~/Library/Application\ Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/nibs/Templates.nib
Does it give any errors?
-Ron
Sorry for all the questions.
I’ve also checked that I’m running ruby 1.8.7, by reproducing your steps, and I am. I”m on the same version of TextMate and OSX as you are.
strange. I wonder what’s happened.
Kyle
Kind regards, René
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Indeed, I get the following error:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>returnCode</key> <integer>-43</integer> </dict> </plist> tm_dialog (async_close): Window '(null)' doesn't exist
On Jul 12, 2016, at 10:41 AM, Ronald Wampler rdwampler@gmail.com wrote:
On Tue, Jul 12, 2016 at 04:00:48PM +0200, René Schwaiger wrote:
Hi Kyle,
On 12 Jul 2016, at 12:57 , Kyle Johnson kbj@linguist.umass.edu wrote:
Thanks René for the speedy reply.
When I reproduce the steps you suggest — create a file in ~/Downloads and use the tab trigger with temp — I don’t get the once familiar menu of template choices. Instead, “temp” is erased and the cursor moves to the beginning of the document.
so the command worked before? Did you change any of the templates in the bundle (inside `LaTeX.tmbundle/Support/templates`)? Is there a folder `~/Library/Application Support/LaTeX/Templates` on you machine. If yes, could you please send me the contents of said folder?
I am not sure if this is related, but there was a recent change to the Dialog plugin. Can you paste the following intoTextMate and running it with CRTL+R?
"$DIALOG" -cmp {} ~/Library/Application\ Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/nibs/Templates.nib
Does it give any errors?
-Ron
Sorry for all the questions.
I’ve also checked that I’m running ruby 1.8.7, by reproducing your steps, and I am. I”m on the same version of TextMate and OSX as you are.
strange. I wonder what’s happened.
Kyle
Kind regards, René
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
On Tue, Jul 12, 2016 at 03:34:09PM -0400, Kyle Johnson wrote:
Indeed, I get the following error:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <dict> <key>returnCode</key> <integer>-43</integer> </dict> </plist> tm_dialog (async_close): Window '(null)' doesn't exist
That's the error I expected. Did you make any changes to Templates.nib or save it with a recent version of Xcode?
The API that we used to previously load nibs was deprecated and the new API only accepts compiled nibs/xib. So either it's in a different .nib package format than the one presently in the Latex.tmbundle repo or it's actually a .xib file.
To resolve the issue you'll need to compile it using the command
ibtool --compile Template.nib.bin Template.nib
followed by,
rm Template.nib; mv Template.nib.bin Template.nib
-Ron
Thanks,
I don’t believe I have Xcode on my computer. I haven’t made any changes to Templates.nib. I’ll run ibtools if you can help me find where Template.nib might be. A simple find from my home directory doesn’t find it. (I’m not a very sophisticated computer user.)
Kyle
On Jul 12, 2016, at 4:16 PM, Ronald Wampler rdwampler@gmail.com wrote:
On Tue, Jul 12, 2016 at 03:34:09PM -0400, Kyle Johnson wrote:
Indeed, I get the following error:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <dict> <key>returnCode</key> <integer>-43</integer> </dict> </plist> tm_dialog (async_close): Window '(null)' doesn't exist
That's the error I expected. Did you make any changes to Templates.nib or save it with a recent version of Xcode?
The API that we used to previously load nibs was deprecated and the new API only accepts compiled nibs/xib. So either it's in a different .nib package format than the one presently in the Latex.tmbundle repo or it's actually a .xib file.
To resolve the issue you'll need to compile it using the command
ibtool --compile Template.nib.bin Template.nib
followed by,
rm Template.nib; mv Template.nib.bin Template.nib
-Ron
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
On Sat, Jul 16, 2016 at 01:08:17PM -0400, Kyle Johnson wrote:
Thanks,
I don’t believe I have Xcode on my computer. I haven’t made any changes to Templates.nib. I’ll run ibtools if you can help me find where Template.nib might be. A simple find from my home directory doesn’t find it. (I’m not a very sophisticated computer user.)
This should be fix in the latest nightly build (beta 11.12). I am sorry for the inconvenience.
-Ron
|> > On 12 Jul 2016, at 12:57 , Kyle Johnson kbj@linguist.umass.edu wrote: |> > |> > Thanks René for the speedy reply. |> > |> > When I reproduce the steps you suggest — create a file in ~/Downloads and use the tab trigger with temp — I don’t get the once familiar menu of template choices. Instead, “temp” is erased and the cursor moves to the beginning of the document. |>
I report the following in case it is related. Disclaimer: my understanding of how software works is limited.
When I switched to TM2 Beta 11.4, the font and color scheme in my .tex files weren't what I expected from the instructions I had in .tm_properties at $HOME level. I didn't use temp+tab however. In any case, I added my theme's UUID to my .tm_properties file
theme = C8C58F9A-35FE-44A4-9BC2-2F3C343DC81D ## sunburst in this case
And everything worked like before. --Gildas