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

Unable to edit local file

Open ksdavidc opened this issue 1 year ago • 0 comments

unable to annotate local file.

If I view the markdown, and then try to see the annotation again I get message like

app.js:1 DOMException: Failed to execute 'setAttribute' on 'Element': '"href":"vault:/2023 Spring Camp/Paris/This is Paris.pdf"' is not a valid attribute name.
    at t.setAttrs (app://obsidian.md/app.js:1:329058)
    at t.sync (app://obsidian.md/app.js:1:329308)
    at t.e.sync (app://obsidian.md/app.js:1:321831)
    at t.sync (app://obsidian.md/app.js:1:329378)
    at t.e.sync (app://obsidian.md/app.js:1:321831)
    at t.sync (app://obsidian.md/app.js:1:342839)
    at t.e.sync (app://obsidian.md/app.js:1:321831)
    at app://obsidian.md/app.js:1:361615
    at e.ignore (app://obsidian.md/app.js:1:433743)
    at t.updateInner (app://obsidian.md/app.js:1:361411)
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
s @ app.js:1
Promise.then (async)
l @ app.js:1
a @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
v @ app.js:1
t.loadFile @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
v @ app.js:1
t.setState @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
v @ app.js:1
t.setState @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
v @ app.js:1
t.setViewState @ app.js:1
eval @ plugin:obsidian-excalidraw-plugin:19
r @ plugin:obsidian-excalidraw-plugin:19
eval @ plugin:obsidian-hover-editor:18
E @ plugin:obsidian-hover-editor:14
eval @ plugin:obsidian-enhancing-mindmap:37652
wrapper @ plugin:obsidian-enhancing-mindmap:54
eval @ plugin:obsidian-markmind:63
o @ plugin:obsidian-markmind:15
eval @ plugin:obsidian-kanban:77
o @ plugin:obsidian-kanban:23
eval @ plugin:obsidian-annotator:71632
o @ plugin:obsidian-annotator:22
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
v @ app.js:1
t.openFile @ app.js:1
x4 @ plugin:file-tree-alternative:15
n @ plugin:file-tree-alternative:24
onClick @ plugin:file-tree-alternative:24
W5 @ plugin:file-tree-alternative:7

my file looks like this:

---
annotation-target: /2023 Spring Camp/Paris/This is Paris.pdf
---




>%%
>```annotation-json
>{"created":"2023-03-23T08:04:34.322Z","text":"Many famous Frenchmen are buried here: \nRousseau, Voltaire, Victor Hugo and lots \nof others. \n27 \n","updated":"2023-03-23T08:04:34.322Z","document":{"title":"This is Paris","link":[{"href":"urn:x-pdf:e4a99a3a2c7202ce31fdc9937e8bf73a"},{"href":"vault:/2023 Spring Camp/Paris/This is Paris.pdf"}],"documentFingerprint":"e4a99a3a2c7202ce31fdc9937e8bf73a"},"uri":"vault:/2023 Spring Camp/Paris/This is Paris.pdf","target":[{"source":"vault:/2023 Spring Camp/Paris/This is Paris.pdf","selector":[{"type":"TextPositionSelector","start":3676,"end":3690},{"type":"TextQuoteSelector","exact":" the Pantheon.","prefix":"%100%125%150%200%300%400%Here is","suffix":" Many famous Frenchmen are burie"}]}]}
>```
>%%
>*%%PREFIX%%%100%125%150%200%300%400%Here is%%HIGHLIGHT%% ==the Pantheon.== %%POSTFIX%%Many famous Frenchmen are burie*
>%%LINK%%[[#^7htffbflrox|show annotation]]
>%%COMMENT%%
>Many famous Frenchmen are buried here: 
>Rousseau, Voltaire, Victor Hugo and lots 
>of others. 
>27 
>
>%%TAGS%%
>
^7htffbflrox

ksdavidc avatar Mar 23 '23 08:03 ksdavidc