TextMate version 2.0-beta.12.4. Ruby bundle dated Sep 6, 2016.
Very recently Bundle control has gone wacky or maybe the Ruby bundle. I see Ruby in the list in Preferences>Bundles and can select it, but Ruby is not available in at the bottom of the window for selection (afraid I don’t know how to describe that better). And Cmd-R doesn’t work (not surprising since I can’t make it a Ruby file). I’ve been using this regularly, but it could have been a week since tried to use Cmd-R. I’ve been using TextMate daily for Rails and haven’t noticed any problems (Ruby on Rails Bundle is still available).
Some combinations of reboot and restart cause Ruby not to be selected in Preferences.
I think I’m also seeing problems with Themes, but I don’t know exactly which them I was using, but it definitely wasn’t correct for my Ruby files. I’m using some black background theme in general and did look at different themes a week or two ago. Might be some connection?
I’m not up on Bundle management, but poked around
~/Library/Application Support/TextMate/Bundles/ — no Ruby bundle ~/Library/Application Support/TextMate/Managed/Bundles/ — no Ruby bundle
~/Library/Application Support/TextMate/Ruby/1.8.7/ — Why is this here? Did I do this or is it part of TextMate?
I searched for “Ruby.tmbundle” and found nothing.
Thanks for any suggestions
Greg
What I'm noticing is a different issue with Ruby. When I run a Ruby script in TextMate 2.0-beta.12.4, it sometimes doesn't stop after the script should come to an end. The Ruby process keeps running behind the scenes, taking over my CPU and causing my fans to blow. I have to restart (with difficulty) to get control of things. It seems like the script runner is not returning properly.
m.
On Sep 12, 2016, at 11:16 AM, Greg web@web.knobby.ws wrote:
TextMate version 2.0-beta.12.4. Ruby bundle dated Sep 6, 2016.
Very recently Bundle control has gone wacky or maybe the Ruby bundle. I see Ruby in the list in Preferences>Bundles and can select it, but Ruby is not available in at the bottom of the window for selection (afraid I don’t know how to describe that better). And Cmd-R doesn’t work (not surprising since I can’t make it a Ruby file). I’ve been using this regularly, but it could have been a week since tried to use Cmd-R. I’ve been using TextMate daily for Rails and haven’t noticed any problems (Ruby on Rails Bundle is still available).
Some combinations of reboot and restart cause Ruby not to be selected in Preferences.
I think I’m also seeing problems with Themes, but I don’t know exactly which them I was using, but it definitely wasn’t correct for my Ruby files. I’m using some black background theme in general and did look at different themes a week or two ago. Might be some connection?
I’m not up on Bundle management, but poked around
~/Library/Application Support/TextMate/Bundles/ — no Ruby bundle ~/Library/Application Support/TextMate/Managed/Bundles/ — no Ruby bundle
~/Library/Application Support/TextMate/Ruby/1.8.7/ — Why is this here? Did I do this or is it part of TextMate?
I searched for “Ruby.tmbundle” and found nothing.
Thanks for any suggestions
Greg
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
This may be premature, but it looks like adding explicit `exit` at the end of my Ruby script may be helping.
m.
On Sep 13, 2016, at 8:26 AM, Matt Neuburg matt@tidbits.com wrote:
What I'm noticing is a different issue with Ruby. When I run a Ruby script in TextMate 2.0-beta.12.4, it sometimes doesn't stop after the script should come to an end. The Ruby process keeps running behind the scenes, taking over my CPU and causing my fans to blow. I have to restart (with difficulty) to get control of things. It seems like the script runner is not returning properly.
m.
On Sep 12, 2016, at 11:16 AM, Greg web@web.knobby.ws wrote:
TextMate version 2.0-beta.12.4. Ruby bundle dated Sep 6, 2016.
Very recently Bundle control has gone wacky or maybe the Ruby bundle. I see Ruby in the list in Preferences>Bundles and can select it, but Ruby is not available in at the bottom of the window for selection (afraid I don’t know how to describe that better). And Cmd-R doesn’t work (not surprising since I can’t make it a Ruby file). I’ve been using this regularly, but it could have been a week since tried to use Cmd-R. I’ve been using TextMate daily for Rails and haven’t noticed any problems (Ruby on Rails Bundle is still available).
Some combinations of reboot and restart cause Ruby not to be selected in Preferences.
I think I’m also seeing problems with Themes, but I don’t know exactly which them I was using, but it definitely wasn’t correct for my Ruby files. I’m using some black background theme in general and did look at different themes a week or two ago. Might be some connection?
I’m not up on Bundle management, but poked around
~/Library/Application Support/TextMate/Bundles/ — no Ruby bundle ~/Library/Application Support/TextMate/Managed/Bundles/ — no Ruby bundle
~/Library/Application Support/TextMate/Ruby/1.8.7/ — Why is this here? Did I do this or is it part of TextMate?
I searched for “Ruby.tmbundle” and found nothing.
Thanks for any suggestions
Greg
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On 13 Sep 2016, at 17:26, Matt Neuburg wrote:
What I'm noticing is a different issue with Ruby. When I run a Ruby script in TextMate 2.0-beta.12.4, it sometimes doesn't stop after the script should come to an end. The Ruby process keeps running behind the scenes, taking over my CPU and causing my fans to blow. I have to restart (with difficulty) to get control of things. It seems like the script runner is not returning properly.
Could this possibly be your script?
When it happens, you should check in Activity Monitor what process is actually using the CPU.
When you close the output window, do you get the ability to stop the command, and if so, does that result in the window closing, but still a process gone haywire?
On Sep 14, 2016, at 12:13 AM, Allan Odgaard mailinglist@textmate.org wrote:
On 13 Sep 2016, at 17:26, Matt Neuburg wrote:
What I'm noticing is a different issue with Ruby. When I run a Ruby script in TextMate 2.0-beta.12.4, it sometimes doesn't stop after the script should come to an end. The Ruby process keeps running behind the scenes, taking over my CPU and causing my fans to blow. I have to restart (with difficulty) to get control of things. It seems like the script runner is not returning properly.
Could this possibly be your script?
When it happens, you should check in Activity Monitor what process is actually using the CPU.
When you close the output window, do you get the ability to stop the command, and if so, does that result in the window closing, but still a process gone haywire?
That process in Activity Monitor is ruby. After a couple of hours of work I can end up with several copies of ruby in Activity Monitor, and that's when the fans get so loud that I realize something is up.
Closing the output window does not stop it. Sometimes the activity spinner in the output window is still going, when this happens, but usually not; it usually looks like the script has finished properly, which again is why I don't notice the problem until the fans spin up.
What I'm now doing is (1) I've ended the script with explicit `exit` and (2) I keep Activity Monitor open while I'm working so I can glance at the CPUs.
What I'm wondering is whether something changed about how the ruby script runner works. m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On 14 Sep 2016, at 16:17, Matt Neuburg wrote:
Could this possibly be your script?
That process in Activity Monitor is ruby. After a couple of hours of work I can end up with several copies of ruby in Activity Monitor, and that's when the fans get so loud that I realize something is up.
But your script is written in ruby, right? Given that you can close the HTML output window, it does sound like your script is the one sticking around.
Do you use threads or fork in your script?
You should be able to see what parameters are given to the ruby process that stuck around, perhaps not in Activity Monitor, but from a terminal try run:
ps aux|grep ruby
Another very useful command is `pstree` but this is an optional install (e.g. `brew install pstree`).
What I'm wondering is whether something changed about how the ruby script runner works. m.
I don’t see anything that could cause this.
On Sep 14, 2016, at 8:36 AM, Allan Odgaard mailinglist@textmate.org wrote:
Do you use threads or fork in your script?
Not that I'm aware of. I do call into the shell with `%x{...}`. m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On 12 Sep 2016, at 20:16, Greg wrote:
Very recently Bundle control has gone wacky or maybe the Ruby bundle. I see Ruby in the list in Preferences>Bundles and can select it, but Ruby is not available in at the bottom of the window for selection (afraid I don’t know how to describe that better).
You say you can “select it” in Preferences → Bundles, but is the checkbox checked?
Did you try to uncheck and recheck the checkbox?
If this did not help, try delete this file and relaunch TextMate:
~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
I think I’m also seeing problems with Themes, but I don’t know exactly which them I was using, but it definitely wasn’t correct for my Ruby files. I’m using some black background theme in general and did look at different themes a week or two ago. Might be some connection?
Changing themes should not cause bundles to disappear. You say you are seeing “problems with Themes”, does that mean, that the Themes bundle also has gone missing?
I’m not up on Bundle management, but poked around
~/Library/Application Support/TextMate/Bundles/ — no Ruby bundle ~/Library/Application Support/TextMate/Managed/Bundles/ — no Ruby bundle
The first one should not have one, the second one should, if Ruby is checked in Preferences → Bundles.
Is any component of your path possibly a symbolic link to a syncing service?
~/Library/Application Support/TextMate/Ruby/1.8.7/ — Why is this here? Did I do this or is it part of TextMate?
This is something TextMate installs on-demand. Currently a lot of bundles require it.
I searched for “Ruby.tmbundle” and found nothing.
A final place to look is:
~/Library/Application Support/Avian/Bundles
However, this would be user customizations, and if you have none, should be empty.
And just for the records, here are all the things to delete to get back to factory defaults: https://github.com/textmate/textmate/wiki/Reverting-To-Defaults
Item 4 and 5 on that list though should not affect bundles.