obsidian-git
obsidian-git copied to clipboard
[Bug]: TypeError:: Cannot read property 'checkIsRep' of undefined
Describe the bug
I get an error pop-up when I first open the vault.
TypeError:: Cannot read property 'checkIsRep' of undefined
I can click the error and it disappears. The sync seems to be working fine. Is this something to worry about? Is there a way to easily fix it?
Relevant errors (if available)
No response
Steps to reproduce
error only shows when first opening vault.
Expected Behavior
No response
Addition context
No response
Operating system
Windows
bro,this is because obsidian only cache git config when installing git plugin,so whenerer you change git config after installing,it is useless.the way to solve this is that reinstall the git plugin after you finish git init->git commit->and your git remote repo config
@zhamdoctor I don't understand how that could solve this issue. The plugin doesn't cache any git config. Show me your sources to prove your statement. If the plugin cached settings, a restart would be enough.
I cant prove this,however.last day ,when I reconfigured my git remote repo and user/email.git cmd returns the old version before I updated. first step:git init->git config --global user.name='123' and git add remote etc,second step:install git plugin,third:reconfigure git user.name='321'.then i found out it is still '123' when you push md doc until reinstall git plugin. maybe an unique situation for me,It really works without any evidence,and a restart doesnt work at all! I tried more than 4 times
@zhamdoctor I don't understand how that could solve this issue. The plugin doesn't cache any git config. Show me your sources to prove your statement. If the plugin cached settings, a restart would be enough.
oh ,I saw another issue like this ,It must be reasonable! And until reinstall,checkIsRepo error occured!you can search that issue
Everytime I open the Obsidian, this error appears, and the only solution is uninstall and reinstall the Obsidian, I do not know why😰
i still get it sometimes but have noticed the issue is related to whether i'm connected to the internet. i'll get the error only when my device is disconnected. so i connect to the web and restart obsidian and the error goes away. at least that's been my experience.
@KnightCicada Did you reinstall Obsidian or this plugin? Did any of you change the "Base path" setting. E.g. make sure there is not even one space.
@KnightCicada Did you reinstall Obsidian or this plugin? Did any of you change the "Base path" setting. E.g. make sure there is not even one space. @Vinzent03 I reinstall this plugin and it is fixed, and next time I open the Obsidian, I still find this error notice, I need to reinstall the plugin again. I did't reinstall Obsidian. I will try it. Thanks :-)
@KnightCicada You don't need to reinstall Obsidian. Please don't change the base path setting unless your git repository is below your Obsidian vault root. I've released an update to clarify the setting.
@KnightCicada You don't need to reinstall Obsidian. Please don't change the base path setting unless your git repository is below your Obsidian vault root. I've released an update to clarify the setting.
just reinstall the git plugin and restart obsidian,everything works fine!
@KnightCicada You don't need to reinstall Obsidian. Please don't change the base path setting unless your git repository is below your Obsidian vault root. I've released an update to clarify the setting.
Ok, I get
@KnightCicada You don't need to reinstall Obsidian. Please don't change the base path setting unless your git repository is below your Obsidian vault root. I've released an update to clarify the setting.
Thanks, it works fine. I find my base path config is wrong :-)