obsidian-git icon indicating copy to clipboard operation
obsidian-git copied to clipboard

[Bug]: TypeError:: Cannot read property 'checkIsRep' of undefined

Open chad-bennett opened this issue 3 years ago • 12 comments

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

chad-bennett avatar Jan 20 '22 14:01 chad-bennett

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 avatar Apr 10 '22 01:04 zhamdoctor

@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.

Vinzent03 avatar Apr 10 '22 08:04 Vinzent03

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 avatar Apr 10 '22 09:04 zhamdoctor

@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

zhamdoctor avatar Apr 10 '22 09:04 zhamdoctor

Everytime I open the Obsidian, this error appears, and the only solution is uninstall and reinstall the Obsidian, I do not know why😰

KnightCicada avatar May 05 '22 10:05 KnightCicada

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.

chad-bennett avatar May 05 '22 13:05 chad-bennett

@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 avatar May 06 '22 16:05 Vinzent03

@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 avatar May 07 '22 05:05 KnightCicada

@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.

Vinzent03 avatar May 07 '22 09:05 Vinzent03

@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!

zhamdoctor avatar May 07 '22 09:05 zhamdoctor

@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 avatar May 09 '22 06:05 KnightCicada

@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 :-)

KnightCicada avatar May 09 '22 08:05 KnightCicada