Skip to content

Conversation

zikunw
Copy link

@zikunw zikunw commented Sep 3, 2023

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

retext-english now provides a Parser object. The previous code will not run with the current version of retest-english, which will trigger the warning TypeError: Cannot call a class constructor without |new| in runtime.

The solution is import the Parser object from the package and use it instead when generating the syntax tree.

retext-english now provides a Parser object. The previous code will not run with the current version.
@wooorm
Copy link
Member

wooorm commented Sep 24, 2023

Sorry for the wait, thanks for your patience.

I’ve been working on the releases. The parsers are now no longer exported.

I think you can get it from the parse-english package. Could you try updating to that?

@wooorm
Copy link
Member

wooorm commented Aug 16, 2024

Thanks for your patience.

I rewrote all guides in 97178c6. See it live here!

@wooorm wooorm closed this Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants