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]: Custom base path is wrongly handled in Diff View #397

Closed
cjunekim opened this issue Dec 7, 2022 · 0 comments
Closed

[Bug]: Custom base path is wrongly handled in Diff View #397

cjunekim opened this issue Dec 7, 2022 · 0 comments

Comments

@cjunekim
Copy link

cjunekim commented Dec 7, 2022

Describe the bug

If you use custom base path, Open diff view doesn't work. It seems to search under a wrong place : custombase\custombase

Relevant errors (if available)

Suppose there is Document under custombase and it's a folder and a custom base.

This is the error you get when the custom base path is customebase, for example:

Uncaught TypeError: Cannot read properties of null (reading 'path')
    at S.onActiveLeafChangeHandler (plugin:obsidian-dynamic-toc:2:411)
    at t.e.tryTrigger (app.js:1:1027924)
    at t.e.trigger (app.js:1:1027857)
    at t.trigger (app.js:1:1648741)
    at t.activeLeafEvents (app.js:1:1634569)
    at s (app.js:1:692224)
    at l (app.js:1:692330)
......
Show 32 more frames
app.js:1 Error: ENOENT: no such file or directory, open 'G:\My Documents\Obsidian\Thoughts\custombase\custombase\Document.md'
......

Steps to reproduce

Create a folder called custombase in Obsidian under root. Set it to a git folder. Create a document called Document under custombase. Set the custom base path to custombase.

Run Open diff view.

Expected Behavior

No response

Addition context

No response

Operating system

Windows

Plugin version

2.12.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant