obsidian-relative-line-numbers icon indicating copy to clipboard operation
obsidian-relative-line-numbers copied to clipboard

Using a deprecated package: "@codemirror/gutter"

Open vultix opened this issue 2 years ago • 3 comments

Just a heads up, opening the developer console in obsidian with this plugin enabled yields this error message:

Error: [CM6][obsidian-relative-line-numbers] Using a deprecated package: "@codemirror/gutter".
See the stack trace to find the faulty plugin and file an issue with the plugin author. 
Details: https://discuss.codemirror.net/t/release-0-20-0/4302
    at o (app.js:1:1547190)
    at anonymous (plugin:obsidian-relative-line-numbers:59:32)
    at e.<anonymous> (app.js:1:1547485)
    at app.js:1:235078
    at Object.next (app.js:1:235183)
    at s (app.js:1:233922)

vultix avatar Oct 05 '22 20:10 vultix

+1

grantx2016 avatar Oct 09 '22 03:10 grantx2016

Has this plugin has been abandoned?

grantx2016 avatar Oct 27 '22 22:10 grantx2016

Seems like none of the issues could be fixed by @nadavspi. This plugin uses the other one created for the CodeMirror editor and literally just plugs it in Obsidian. So either it should be recreated from scratch or the author of the other plugin should fix it on their end.

https://github.com/nadavspi/obsidian-relative-line-numbers/blob/f0bd4e97485c2414b4483afa3b199085e22870e3/main.ts#L2

d2718nis avatar Nov 05 '22 20:11 d2718nis

I believe this is what was causing Obsidian lag a lot. Hopefully #15 fixes this issue 🤞

sohanglal avatar Feb 18 '23 07:02 sohanglal

The error is still displayed inside Obsidian.

app.js:1 Error: [CM6][obsidian-relative-line-numbers] Using a deprecated package: "@codemirror/gutter".
See the stack trace to find the faulty plugin and file an issue with the plugin author. 
Details: https://discuss.codemirror.net/t/release-0-20-0/4302
    at o (app.js:1:2034861)
    at anonymous (plugin:obsidian-relative-line-numbers:59:32)
    at e.<anonymous> (app.js:1:2035156)
    at app.js:1:237027
    at Object.next (app.js:1:237132)
    at a (app.js:1:235850)

RhvdG avatar Oct 05 '23 14:10 RhvdG

that's because this package is still there

marchank0 avatar Oct 18 '23 14:10 marchank0

I believe this is what was causing Obsidian lag a lot. Hopefully #15 fixes this issue 🤞

That PR appears to have resolved the issue, but it hasn't been part of a release yet (the most recent release predates the merging of that PR). Plugins installed through the Obsidian client will only update when they push a new release.

For now, I've been able to apply the fix by manually building the plugin.

massivebird avatar Oct 30 '23 01:10 massivebird