[TxMt] Re: Can TextMate::UI.alert etc. be used with the ruby20 shim?
Jacob Carlborg
doob at me.com
Sat Aug 20 18:52:13 UTC 2016
The Ruby code in bundle support has never been verified to work on anything else than Ruby 1.8.
--
/Jacob Carlborg
> On 20 aug 2016, at 12:19, Stefan Daschek <stefan at daschek.net> wrote:
>
> Following up on https://github.com/noniq/Markdown-MathJax.tmbundle/commit/6d003d9c9808acc95414a1b0618640de2380b646#commitcomment-18635004 I created a very simple test script:
>
> #!/usr/bin/env ruby20
> require "#{ENV['TM_SUPPORT_PATH']}/lib/ui"
> TextMate::UI.alert(:warning, 'Title', 'Message', 'OK')
>
> Running this gives an “ArgumentError: An object in the argument tree could not be converted” in method to_plist in ui.rb at line 54.
>
> If I change the script to use the `ruby18` shim, it works as intended.
> Is this expected behaviour or am I doing something wrong?
>
>
> Stefan
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list