middleman-search icon indicating copy to clipboard operation
middleman-search copied to clipboard

Replaced therubyracer with ExecJS

Open daniel-rikowski opened this issue 9 years ago • 6 comments

daniel-rikowski avatar Mar 09 '17 12:03 daniel-rikowski

CC: @eemi

matiasgarciaisaia avatar Mar 09 '17 18:03 matiasgarciaisaia

If it helps, we can test it tomorrow in our Windows 7 machines.

eemi avatar Mar 10 '17 01:03 eemi

@daniel-rikowski thanks for the PR!

It Works on my Machine™, although it seems to be yielding different results - which, on first thought, I think it shouldn't. I'll come back later when I'm able to test it a little bit further.

As always, any comments will be appreciated 👍

matiasgarciaisaia avatar Mar 10 '17 12:03 matiasgarciaisaia

I noticed that, too. Different JS engines produce different results, judging from a superficial glance in the editor.

I blamed it on internal differences in the JS interpreters, like different hash algorithms, string collations or other unspecified implementation details. I did not thoroughly check if the results were fundamentally different (like missing keywords and such)

daniel-rikowski avatar Mar 10 '17 13:03 daniel-rikowski

I've tested this branch locally. It fixes issues I was having with middleman hanging when running in dev mode (seems similar to https://github.com/middleman/middleman/issues/1367).

I also generated the index with this branch and with middleman-search 0.10.0 and got the same output.

Would be great if this could be merged.

heathd avatar Nov 01 '17 08:11 heathd

Please merge this PR. I have several issues installing therubyrace it would be really nice to be able to use Nodejs (through) execjs. Execjs and NodeJS are pre-packaged with most Linux distros.

Jeeppler avatar Mar 30 '18 09:03 Jeeppler