From bibiko@eva.mpg.de Mon Jan 26 18:29:24 2015 From: =?utf-8?q?Hans-J=C3=B6rg?= Bibiko To: textmate@lists.macromates.com Subject: [TxMt] Strange behaviour: HTML output window - loading non-existing css leads to a timeout Date: Mon, 26 Jan 2015 19:29:18 +0100 Message-ID: <59F6B83C-DC2A-4174-9596-C461A57B2658@eva.mpg.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5213139783699551717==" --===============5213139783699551717== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I bumped into a problem while checking the R bundle. There's a command which outputs HTML source to display the result within TM's= HTML output window. If I start TM and execute this command everything will be displayed correctly= . Then I close the HTML window, I modify some code, and invoke the same comma= nd again to come up with an HTML output window I only see the spinning wheel = and a blank window. After ~30s the HTML window displays the correct picture. I was able to narrow down the problem and attached is a test environment (as = a tmCommand). The problem is a non-existing CSS resource. If you invoke this = command for the very first time, the HTML output window machinery simply igno= res the non-existing CSS file and displays the content correctly. Fine. If yo= u re-invoke the same command the HTML output keeps blank for half a minute. I= f you then delete the 4th "echo"-line containing R.css everything works perfe= ctly. Here the test code #!/usr/bin/env bash [[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/b= ash_init.sh" echo "" echo "R: Phonetic algorithms" echo "" echo "" echo "" echo "TEST" echo "" ****************************************************** Hans-Joerg Bibiko Max Planck Institute for Evolutionary Anthropology Department of Linguistics Deutscher Platz 6 phone: +49 (0) 341 3550 341 D-04103 Leipzig fax: +49 (0) 341 3550 333 Germany e-mail: bibiko [at] eva.mpg.de ****************************************************** --===============5213139783699551717== Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.tmCommand" MIME-Version: 1.0 PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHBsaXN0IFBV QkxJQyAiLS8vQXBwbGUvL0RURCBQTElTVCAxLjAvL0VO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go8L3BsaXN0Pgo= --===============5213139783699551717==-- From bibiko@eva.mpg.de Mon Jan 26 18:44:26 2015 From: =?utf-8?q?Hans-J=C3=B6rg?= Bibiko To: textmate@lists.macromates.com Subject: [TxMt] Re: Strange behaviour: HTML output window - loading non-existing css leads to a timeout Date: Mon, 26 Jan 2015 19:44:25 +0100 Message-ID: In-Reply-To: <59F6B83C-DC2A-4174-9596-C461A57B2658@eva.mpg.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4249686567666269081==" --===============4249686567666269081== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ... sorry, I forgot some essentials: I'm using: - Mac OS 10.10.1 - TextMate version 2.0-beta.6.7 Cheers, Hans :) ****************************************************** Hans-Joerg Bibiko Max Planck Institute for Evolutionary Anthropology Department of Linguistics Deutscher Platz 6 phone: +49 (0) 341 3550 341 D-04103 Leipzig fax: +49 (0) 341 3550 333 Germany e-mail: bibiko [at] eva.mpg.de ****************************************************** --===============4249686567666269081==-- From mailinglist@textmate.org Sun Feb 1 10:53:40 2015 From: Allan Odgaard To: textmate@lists.macromates.com Subject: [TxMt] Re: Strange behaviour: HTML output window - loading non-existing css leads to a timeout Date: Sun, 01 Feb 2015 17:53:35 +0700 Message-ID: In-Reply-To: <59F6B83C-DC2A-4174-9596-C461A57B2658@eva.mpg.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2950208913559674606==" --===============2950208913559674606== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On 27 Jan 2015, at 1:29, Hans-Jörg Bibiko wrote: > If I start TM and execute this command everything will be displayed > correctly. Then I close the HTML window, I modify some code, and > invoke the same command again to come up with an HTML output window I > only see the spinning wheel and a blank window. After ~30s the HTML > window displays the correct picture […] Thanks for the test case. The issue was with relative URLs, these would be sent to my custom URL handler which wasn’t prepared to handle a “not found”, so no data was provided, causing WebKit to stall until its timeout had been reached. It worked first time because a non-integer URL (sent to the custom URL scheme) was parsed as “job zero”, which would be the job ID of the first command with HTML output. Next build has the issue fixed. --===============2950208913559674606==--