[TxMt] R Bundle Bug

Andrew Fernandes andrew at fernandes.org
Thu Jan 21 17:10:00 UTC 2010


(This message was already forwarded to bibiko at eva.mpg.de)

Hello -

I recently upgraded my OS and started having strange problems with the R
bundle. Multiple helper daemons would be spawned every time I typed in a
function name!

The problem code is patched below. I use MacPorts' "R", which does not match
the "/Lib.*" regexp. Instead, it should match "/opt/local/lib/R/bin/exec/R".
Any other patch should work as well.

Without the patch, every time there is an error with the "help" function, a
new "R" is spawned; (see the attached as an example). I had over 20
processes running at once, and was wondering why my fans were on and my
system was slow... :-)

Thanks!
-Andrew.

--
Andrew D. Fernandes, Ph.D. (andrew at fernandes.org)
Departments of Biochemistry and Applied Mathematics
The University of Western Ontario, Canada
Mobile Telephone +1 519 614 8106



Index: Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh
===================================================================
--- Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh (revision 11908)
+++ Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh (working copy)
@@ -1,4 +1,4 @@
-RPID=$(ps aw | grep '[0-9] /Lib.*TMRHelperDaemon' | awk '{print $1}' )
+RPID=$(ps aw | egrep '[0-9]
(/Lib.*TMRHelperDaemon)|(/opt/.*TMRHelperDaemon)' | awk '{print $1}' )
 #check whether Helper daemon runs if not start it
 if [ -z "$RPID" ]; then
  WDIR="$TM_BUNDLE_SUPPORT"/bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100121/e6d9289c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RHelperDaemon.patch
Type: application/octet-stream
Size: 569 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20100121/e6d9289c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: textmate_Rhelper_console.1
Type: application/octet-stream
Size: 890 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20100121/e6d9289c/attachment.1>


More information about the textmate mailing list