TextMate toggle comment macro is broken

前端 未结 4 1317
误落风尘
误落风尘 2021-01-02 14:29

My laptop crashed and when it rebooted, \"cmd /\" (toggle comment) was broken. When I try to toggle comments on a line that only contains \"foo\", I get this output in my c

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-02 14:48

    I ran into the same issue and figured out a workaround. Reinstalling TextMate did not help in my case.

    Bundles -> Bundle Editor -> Edit Commands --> Source --> Comment Line / Selection

    At the top of the script you should see this:

    #!/usr/bin/env ruby
    

    I changed this to use another installation of Ruby. In my case I'm using RVM to manage different Ruby versions, so I have:

    #!/Users/_username_/.rvm/rubies/ruby-1.8.7-p334/bin/ruby
    

    So it seems something got screwed up with the default system Ruby.

提交回复
热议问题