obsidian-topic-linking icon indicating copy to clipboard operation
obsidian-topic-linking copied to clipboard

[bug?]err while generating md

Open STOI123 opened this issue 10 months ago • 5 comments

`


plugin:obsidian-topic-linking:50619
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'g_d3_f1') at PDFContentExtractor.processPDF (plugin:obsidian-topic-linking:50619:36) at async PDFContentExtractor.extract (plugin:obsidian-topic-linking:51123:7) at async Object.callback (plugin:obsidian-topic-linking:51798:9)
  | PDFContentExtractor.processPDF | @ | plugin:obsidian-topic-linking:50619 -- | -- | -- | --   | await in PDFContentExtractor.processPDF (async) |   |     | oK | @ | app.js:1   | t.onChooseItem | @ | app.js:1   | t.onChooseSuggestion | @ | app.js:1   | t.selectSuggestion | @ | app.js:1   | e.useSelectedItem | @ | app.js:1   | e.onSuggestionClick | @ | app.js:1   | s | @ | enhance.js:1

`

STOI123 avatar Apr 15 '24 16:04 STOI123

Same here

wenlzhang avatar Apr 18 '24 10:04 wenlzhang

Same here Try add null check where the everywhere err happen, works for me. And there's commit fix some bugs yet not merged, try them also.

STOI123 avatar Apr 18 '24 10:04 STOI123

Try add null check where the everywhere err happen, works for me.

Can you be more specific about this? How to do this exactly?

And there's commit fix some bugs yet not merged, try them also.

Which commit do you refer to?

Thanks!

wenlzhang avatar Apr 18 '24 12:04 wenlzhang

Try add null check where the everywhere err happen, works for me.

Can you be more specific about this? How to do this exactly?

And there's commit fix some bugs yet not merged, try them also.

Which commit do you refer to?

Thanks!

I would guess my open PR: #14.

Razboy20 avatar Apr 18 '24 21:04 Razboy20

pull the only branch in pull request. Copy the code into obsidian plugin folder. Run npm run serve. Click Generate md from pdf in OB. Open development console using ctrl+shift+I, check console output see where the err happened and add null check something like "obj.attr1.attr2" to "obj?.atrr1.attr2"

PT123123 avatar Apr 18 '24 21:04 PT123123