vihanb / PPCG-Design

A redesign of the PPCG website
codegolf.stackexchange.com
35 stars 13 forks source link

TryItOnline link has some problems #40

Closed addisoncrump closed 8 years ago

addisoncrump commented 8 years ago

One: the link does not always automatically form the tryitonline output:

screen shot 2016-02-09 at 6 09 41 pm

Two: Try it online links seem to make the user script not load fully:

screen shot 2016-02-09 at 6 31 55 pm

RikerW commented 8 years ago

The userscript load thing happens a lot of places for me... Like every question older than about a year.

ETHproductions commented 8 years ago

I haven't seen either of these issues, but often it produces wrong output for me, namely Jelly and Retina (with the latter, newlines are always preceded by Â)

vihanb commented 8 years ago

That's weird. Does TryItOnline not use UTF-8?

vihanb commented 8 years ago

The loading bug is due to it erroring out. Are you running the latest version? I pushed a change would should prevent that

addisoncrump commented 8 years ago

Alright, that fixed the loading issue. But the TryItOnline link still doesn't always output:

screen shot 2016-02-10 at 2 52 04 pm 1

addisoncrump commented 8 years ago

I don't think I've even seen it work on Safari 8.1.

screen shot 2016-02-10 at 2 53 12 pm

screen shot 2016-02-10 at 2 53 44 pm

vihanb commented 8 years ago

That is weird..., could you check the XHR response and values?

addisoncrump commented 8 years ago

I don't know how to do that. D: Also, the loading problem is back:

screen shot 2016-02-11 at 8 46 14 am

Same question, on a link to my Vitsy answer. It may be a problem with my specific answer (it has no bytes involved and outputs a lot.

vihanb commented 8 years ago

Hopefully it's not different on Safari 8 but open up the console, Resources -> All Resources. Under "Stylesheets" there should be a folder named "XHRs", look for "backend". Or just check for any errors.

For the loading problem. I've figured that out, it's due to bad URL parsing :|

vihanb commented 8 years ago

That should fix it, in terms of errors in the response. Those are probably issues with TIO's response

addisoncrump commented 8 years ago

Is debug on by default?