Kevin Newton

Results 59 comments of Kevin Newton

Interesting... this looks like it has to do with call chain formatting. If I turn that off it formats in half a second. I'll take a look.

I haven't had the time yet. It looks like the issue is somewhere in the call chain formatter (https://github.com/ruby-syntax-tree/syntax_tree/blob/066dc61237900341dfda7ce165ce870b0ec2bb83/lib/syntax_tree/node.rb#L2339). If I comment out the part that checks if it's a...

@valscion this is not yet fixed, but you can turn off the deeply nested behavior by setting the `STREE_FAST_FORMAT=1` environment variable. Obviously it's not a long-term solution, but it should...

@valscion I'm going to track this over in syntax tree since that's the source of the issue.

Yes it is! But only with Ruby 3.2. So in the future that’ll be a great solution. On Fri, Jul 22, 2022 at 9:12 PM JounQin ***@***.***> wrote: > Is...

Right... I don't know what I was talking about. I will try this!

So this now works in https://github.com/ruby-syntax-tree/node-syntax-tree. Except that it doesn't support RBS yet, because it's very difficult to compile non-bundled native extensions: https://twitter.com/kateinoigakukun/status/1555202638064799750?s=20&t=9wXaP7QoPngehSIujvUGFw. The other difficulty is that loading WASM...

@JounQin I did! I couldn't get it to work. To be honest I'm not sure what I was doing wrong, but it would just hang no matter what I tried.

@JounQin sure! The branch is here: https://github.com/prettier/plugin-ruby/tree/synckit.

Nice, now I'm just getting some cloning errors.