Upgrade @lezer/lr #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm using CodeMirror but I think the underlying issue is in the lezer language repos, so posting here.
This is my editor code:
But when I run it I get this error:
I had a hard time creating a stand-alone repro of the issue, but eventually I found that the error occurs with
@lezer/lr@1.3.1but not@lezer/lr@1.3.4.I tried upgrading CodeMirror a couple times over the last few months but it didn't fix the issue so I had syntax highlighting disabled in the meantime. I didn't think of manually upgrading
@lezer/lror removing package-lock.json and reinstalling.Currently
@lezer/htmldepends on^1.0.0– would it be possible to upgrade to a newer version?I think this would also apply to other repos like
@lezer/cssand@codemirror/language.No.
^1.0.0matches1.3.4. I have no interest in re-releasing every dependent package every time a package gets an update in order to restrict the version ranges to the latest version.If you've found that the error doesn't occur with the latest @lezer/lr, then I'm not sure why you are reporting this here.
I spent over 8 hours looking into the issue I was facing, so I wanted to report it in case others face the same problem and to see if there's some way to fix it so that when someone upgrades Codemirror they automatically get the working version of lr as well.
I don't usually reset package-lock.json. Would you recommend doing that when upgrading Codemirror?
Yes. Unfortunately, npm is really dumb about partial upgrades.