Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Citations not working on Obsidian Canvas #217

Open
ghost opened this issue Feb 12, 2023 · 1 comment · May be fixed by #239
Open

Citations not working on Obsidian Canvas #217

ghost opened this issue Feb 12, 2023 · 1 comment · May be fixed by #239
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Feb 12, 2023

Describe the bug
When I try to insert a citation from my litterature on a canvas file in Obsidian, it doesn't do anything.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a canvas file
  2. Double-click on the canvas anywhere to create a text box
  3. Bring up the command panel and click on "Citations: Insert litterature note content in the current pane"
  4. Nothing is inserted.

Console output
app.js:1 Obsidian Developer Console
plugin:obsidian-auto-link-title:250 loading obsidian-auto-link-title
plugin:obsidian-banners:28 Loading Banners...
plugin:dataview:20685 Dataview: version 0.5.47 (requires obsidian 0.13.11)
plugin:obsidian-charts:79 loading plugin: Obsidian Charts
plugin:customjs:163 Loading CustomJS
plugin:obsidian-task-collector:539 loading Task Collector (TC)
plugin:dataview:13951 Dataview: all 296 files have been indexed in 0.171s (296 cached, 0 skipped).
TypeError: Cannot read properties of null (reading 'replaceRange')
at CitationPlugin.eval (plugin:obsidian-citation-plugin:85866:29)
at step (plugin:obsidian-citation-plugin:92:23)
at Object.eval [as next] (plugin:obsidian-citation-plugin:73:53)
at eval (plugin:obsidian-citation-plugin:66:71)
at new Promise ()
at __awaiter (plugin:obsidian-citation-plugin:62:12)
at CitationPlugin.insertLiteratureNoteContent (plugin:obsidian-citation-plugin:85862:16)
at InsertNoteContentModal.onChooseItem (plugin:obsidian-citation-plugin:14823:21)
at InsertNoteContentModal.t.onChooseSuggestion (app.js:1:1726362)
at InsertNoteContentModal.t.selectSuggestion (app.js:1:1725912)
Promise.catch (async)
InsertNoteContentModal.onChooseItem @ plugin:obsidian-citation-plugin:14823
t.onChooseSuggestion @ app.js:1
t.selectSuggestion @ app.js:1
e.useSelectedItem @ app.js:1
e.onSuggestionClick @ app.js:1
s @ enhance.js:1

Expected behavior
I expect to insert my chosen citation onto the canvas in the newly created text box.

Platform

  • OS: [Windows 11]
  • Obsidian version [1.1.9]
  • Plugin version [0.4.5]
@ghost ghost added the bug Something isn't working label Feb 12, 2023
@ypislon ypislon linked a pull request Jul 9, 2023 that will close this issue
@andredelft
Copy link

I've also seen this issue since the introduction of canvas on my mac (current OS version: 14.0). Would love to see this fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant