obsidian-vale icon indicating copy to clipboard operation
obsidian-vale copied to clipboard

TypeError: r.getAllMarks

Open channingwalton opened this issue 4 years ago β€’ 16 comments
trafficstars

Obisidian version v0.13.0

Uncaught TypeError: r.getAllMarks is not a function
    at eval (eval at <anonymous> (app.js:1), <anonymous>:367:59524)
    at Y8.withCodeMirrorEditor (eval at <anonymous> (app.js:1), <anonymous>:367:60241)

channingwalton avatar Nov 11 '21 20:11 channingwalton

Thanks for reporting! I'll try to look into this later this week.

marcusolsson avatar Nov 12 '21 10:11 marcusolsson

Same here on v0.13.6 image

kmaustral avatar Dec 01 '21 21:12 kmaustral

Same error message here. image

vincentteoh avatar Dec 02 '21 04:12 vincentteoh

Seems like the API has changed in v13.x. I'll have time to look at this next week. Thanks for reporting this!

marcusolsson avatar Dec 02 '21 07:12 marcusolsson

I believe that once Obsidian 13 is officially released, it'll have a Legacy Editor option to support plugins that depend on features that haven't yet been made available to plugins in 13.x. I'll look for a proper fix, but at least the plugin will continue to work with the new option.

marcusolsson avatar Dec 09 '21 21:12 marcusolsson

I've added a Troubleshooting section in the README on how to enable the Legacy Editor for now.

marcusolsson avatar Dec 10 '21 21:12 marcusolsson

Hi Marcus! I'm a big fan of Valeβ€” just wanted to check whether you still plan on supporting CM6 now that Obsidian 13 is officially released. This is such a phenomenal tool

rushikb avatar Dec 21 '21 23:12 rushikb

Hey! I'm definitely planning to upgrade the plugin. I haven't had the chance to look into it yet, but AFAIK the new Editor API has yet to achieve feature parity with CM5, and doesn't support markers yet. If there's a way to grab the CM6 instance somewhere, that might also work. If anyone knows how, I'd be happy to prioritize this. Otherwise, I'll try and find some time for this in the coming weeks.

marcusolsson avatar Dec 22 '21 08:12 marcusolsson

yeah I came here to report the same thing – it seems the new editor is not supported :(

Screenshot 2021-12-22 21 23 53

chrisgrieser avatar Dec 22 '21 20:12 chrisgrieser

@chrisgrieser Sorry 'bout that πŸ™ I'll try and look into this next week.

marcusolsson avatar Dec 23 '21 09:12 marcusolsson

Just to give an update. I've been reading up on how to migrate from CM5 to CM6, and unfortunately there doesn't seem to be an easy fix to this.

If anyone want to experiment, here's the best resources I've found so far:

Seems like we'd need to build a CodeMirror extension rather than calling methods for adding marks.

I haven't given up on this, but right now this seems to require more time than I have at the moment. Seems like I need to read the CodeMirror docs more closely before I give this another try.

Thanks for the patience! πŸ™

marcusolsson avatar Jan 09 '22 13:01 marcusolsson

Thanks for including the experimentation tips! I'll include this in the Roundup :)

eleanorkonik avatar Jan 11 '22 15:01 eleanorkonik

Hi! Thank you for creating such an awesome extension. While it works like a breeze in the legacy editor, I simply can't leave the features of the new editor like a live preview. Any update on this?

mohitmujawdiya avatar Jun 12 '22 15:06 mohitmujawdiya

Thank you @mohitmujawdiya! No updates unfortunately.

I definitely want to fix this, though I haven't yet found the time to work on it. I don't have any estimate on when I'll be able to.

marcusolsson avatar Jun 14 '22 09:06 marcusolsson

hi Marcus! no problem, i'll wait. (will keep using linter and language tool plugins for now)

mohitmujawdiya avatar Jun 15 '22 13:06 mohitmujawdiya

Hi there, any updates on this?

Jayy001 avatar Oct 31 '22 19:10 Jayy001