-
Notifications
You must be signed in to change notification settings - Fork 5
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
First Two Characters of File Path Are Missing, Causing Errors (Show Git Diff view for active file) #29
Comments
+ I tried disabling/enabling the version history diff plugin, deleting/reinstalling it, all to no avail. |
What are your Obsidian installer and app versions? |
If you're referring to the installer on the first install, the Obsidian installer is v1.5.12, and the current version is the same. latest. (OS: Windows 11) |
Has this issue always occurred or is this just happening now? (Have you been using the plugin for some time already or did you just try it out.) |
This issue has been happening since the first time I used the plugin (I installed it for the first time yesterday). |
I cannot reproduce the issue. I am on the early access version (same installer though), but that shouldn’t change anything. I don’t know what would cause this. |
Thank you for reviewing this issue. I will also continue to investigate it further. Could you please tell me which file contains the code for retrieving the file path? |
obsidian-version-history-diff/src/main.ts Line 30 in 8243469
|
If you figure out what the issue is, please let me know. Thanks! |
Obsidian Git, version: 2.24.2
Version History Diff, version 2.2.0
Both are the latest versions.
The .git folder is located directly inside my vault.
Error
When running the command "Show Git Diff view for active file" on the file Myvault/123456.md, an error popup appears along with the following console error:
As you can see, the first two characters ("12") of the file path ("/123456.md") are missing, resulting in an error because "/3456.md" does not exist.
I conducted several experiments to investigate this issue.
1. Creating "/3456.md" and then running the command on "/123456.md":
2. Creating "xx123456.md" and then running the command:
This issue occurs with all files in the vault that are already committed.
For example, running the command on "/testfolder/123456.md" results in an error because the first two characters of the path ("te") are missing, leading to an error that "stfolder/123456.md" cannot be found.
How can I resolve this issue?
The text was updated successfully, but these errors were encountered: