Parsing fails in Safari
See original GitHub issueWe 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:
- Created 4 years ago
- Comments:16 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Many thanks for your support!
I’ll close this for now as it is not a bug in Chevrotain…