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

Bug: Auto-correct Common Misspellings" encountered an unknown error: Cannot read properties of null (reading 'open') #1274

Open
2 tasks done
liuh886 opened this issue Feb 17, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@liuh886
Copy link

liuh886 commented Feb 17, 2025

  • I have verified that I am on the latest version (1.28.0) of the Linter

Describe the Bug

Error "Auto-correct Common Misspellings" encountered an unknown error: Cannot read properties of null (reading 'open')
TypeError: Cannot read properties of null (reading 'open')
at Object.o (plugin:pdf-plus:47:94426)
at Object.a [as open] (plugin:pdf-plus:47:94580)
at bb (plugin:obsidian-linter:72:41517)
at Fo (plugin:obsidian-linter:72:41415)
at Ul (plugin:obsidian-linter:74:684)
at $l (plugin:obsidian-linter:74:2266)
at yp (plugin:obsidian-linter:74:18298)
at ge (plugin:obsidian-linter:74:18443)
at Gv (plugin:obsidian-linter:121:1368)
at ke (plugin:obsidian-linter:121:913)
at rs.apply (plugin:obsidian-linter:121:3487)
at et.applyIfEnabledBase (plugin:obsidian-linter:126:600)
at Zn.applyIfEnabled (plugin:obsidian-linter:126:1845)
at Fs.runBeforeRegularRules (plugin:obsidian-linter:297:2537)
at Fs.lintText (plugin:obsidian-linter:297:820)
at $s.runLinterEditor (plugin:obsidian-linter:308:4229)
at originalSaveCallback.i.callback (plugin:obsidian-linter:307:6015)
at pj (app://obsidian.md/app.js:1:1965818)
at e.executeCommand (app://obsidian.md/app.js:1:1967383)
at e.onTrigger (app://obsidian.md/app.js:1:1211043)
at e.handleKey (app://obsidian.md/app.js:1:773731)
at e.handleKey (app://obsidian.md/app.js:1:773844)

How to Reproduce

Steps to reproduce the behavior:

The save (Ctril+S) triggers the error after updating to 1.28.0

Device

  • Desktop
@liuh886 liuh886 added the bug Something isn't working label Feb 17, 2025
@pjkaufman
Copy link
Collaborator

Hey @liuh886. Thanks for reporting this. Please provide your data.json for the plugin so that I can attempt to reproduce the issue.

@pjkaufman
Copy link
Collaborator

Also, could you explain why the stack trace seems to include PDF plus? It seems like that plugin is somehow executed by the Linter or executing the Linter. Neither should be happening during autocorrect misspellings.

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

No branches or pull requests

2 participants