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="===============3709726754689438313==" --===============3709726754689438313== 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 ****************************************************** --===============3709726754689438313== 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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