Skip to content

fix parsing on windows #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2019
Merged

fix parsing on windows #92

merged 1 commit into from
Oct 27, 2019

Conversation

pvormste
Copy link
Contributor

Schema parsing on Windows is broken, because the carriage return (CR, "\r") is tokenized as IDENT instead of a whitespace.

So when parsing the default schema the parser throws following error:

starting testServer...
2019/10/26 16:12:48 external: unexpected token - got: IDENT want one of: [COLON], locations: [{Line:2 Column:5}], path: []

This PR should fix this issue and the parser should work now on Windows.
Tests has been added too.

@jensneuse jensneuse merged commit 89f9bfa into wundergraph:next Oct 27, 2019
jensneuse pushed a commit that referenced this pull request Feb 15, 2021
* add failing test in graphql package

* fix argument templates not being resolved when not having spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants