I'm trying to get TextMate to open some html returned from a perl script with little success.
If I create a new command and type:
echo "<html> ....etc ....etc </html>"
with the Output set to show as HTML everything works fine. However with the results from the perl script nothing happens. The command simply reads:
$TM_BUNDLE_PATH/Tools/returnHtml.pl
When the output is set to "Open as new document" or "Show in separate window" I get to see the raw html without any trouble.
I've check other bundles for examples and searched the archives but can't see where I'm going wrong, can anyone help?
Cheers, Simon
On 09/10/2005, at 12.48, Simon Gregory wrote:
with the Output set to show as HTML everything works fine. However with the results from the perl script nothing happens. The command simply reads:
$TM_BUNDLE_PATH/Tools/returnHtml.pl
No quotes? $TM_BUNDLE_PATH is _very_ likely to contain spaces. Btw: it's deprecated in favor of TM_BUNDLE_SUPPORT, which points to the Support folder of the bundle.
When the output is set to "Open as new document" or "Show in separate window" I get to see the raw html without any trouble.
Maybe somethin in the HTML causes it to render as blank (like an open head element). Try, when you have it as “new document” to Show Web Preview, to see if it renders there.
On 9 Oct 2005, at 11:59, Allan Odgaard wrote:
Thanks Allan.
No quotes? $TM_BUNDLE_PATH is _very_ likely to contain spaces. Btw: it's deprecated in favor of TM_BUNDLE_SUPPORT, which points to the Support folder of the bundle.
Sorry, I was using quotes. I'd caught onto the TM_BUNDLE_SUPPORT concept (using ~/Library over /Library etc) on anther thread and will implement it....
Maybe somethin in the HTML causes it to render as blank (like an open head element). Try, when you have it as “new document” to Show Web Preview, to see if it renders there.
With a "new document" rendered using the Web Preview it works fine.
With "Show as HTML" the web preview window doesn't even open.
On 09/10/2005, at 13.32, Simon Gregory wrote:
Maybe somethin in the HTML causes it to render as blank (like an open head element). Try, when you have it as “new document” to Show Web Preview, to see if it renders there.
With a "new document" rendered using the Web Preview it works fine.
With "Show as HTML" the web preview window doesn't even open.
Okay, maybe you can post the command/bundle (or small example) somewhere for me to have a look upon?
On 9 Oct 2005, at 12:36, Allan Odgaard wrote:
Okay, maybe you can post the command/bundle (or small example) somewhere for me to have a look upon?
There's an example here
http://beta.helvector.org/textmate/
I've commented out the bulk of the perl and replaced it with a simple print and I still have the same problem.
On 09/10/2005, at 14.21, Simon Gregory wrote:
Okay, maybe you can post the command/bundle (or small example) somewhere for me to have a look upon?
There's an example here http://beta.helvector.org/textmate/
Ah, you're using a wrong type for the dontFollowNewOutput key (gives an exception visible in Console.app). The type is a boolean and thus should be <true /> or <false /> (and not a string).
The default is however <true />, so there's no need to set it (in your case).
On 9 Oct 2005, at 13:32, Allan Odgaard wrote:
Ah, you're using a wrong type for the dontFollowNewOutput key (gives an exception visible in Console.app). The type is a boolean and thus should be <true /> or <false /> (and not a string).
The default is however <true />, so there's no need to set it (in your case).
Thanks Allan.
The command was duplicated and the key would have carried from the other version. If I'd created a new command from scratch there wouldn't have been a problem. I'll keep an eye on the console next time.