question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parsing fails in Safari

See original GitHub issue

We used chevrotain (v4.6.0) for a new VRML loader in three.js. The loader works fine in Chrome and Firefox, but a user has reported an issue with Safari.

A VRML is a text file that can contain the keywords TRUE and FALSE. A typical example is the definition of a directional light e.g.

DirectionalLight {
    ambientIntensity 0
    color 1 1 1
    on TRUE
}

We use in our loader a token in order to detect the booleans like so:

const BooleanLiteral = createToken( { name: 'BooleanLiteral', pattern: /TRUE|FALSE/ } );

But for some reasons, this does not work in Safari (it throws a MismatchedTokenException). Any ideas what could cause the problem? I’ve debugged this since a while now and I’m not able to find a solution in my code.

You should be able to reproduce the runtime error with Safari with the following URL (exception is logged in the console): https://threejs.org/examples/webgl_loader_vrml

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Mugen87commented, Jun 27, 2019

Many thanks for your support!

1reaction
bd82commented, Jun 27, 2019

I’ll close this for now as it is not a bug in Chevrotain…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix: Cannot Parse Response in Safari Browser?
Cannot parse response means that the web requests made by the website are not interpreted by either the server or the Safari browser...
Read more >
How to Fix Cannot Parse Response in Safari Browser
Cannot parse is an error message that appears in the Safari browser. It means Safari cannot resolve a website into its component parts....
Read more >
How to fix 'cannot parse response' error in Safari?
In this article, we're taking a look at how to fix Safari's “cannot parse response” error and the causes behind the problem.
Read more >
Safari cannot parse response - Apple Community
I'm getting this error message on Safari on my MacBook Pro. It's preventing me viewing a website I've used several times today.
Read more >
Here's How to Fix Cannot Parse Response in Safari: Guide
How To Fix Cannot Parse Response Error? ; Open “Settings” on iOS/ Mac OS; Select “Network Settings” ; Power off your router; Unplug...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found