der-tobi / obsidian-simple-mention

Obsidian plugin for mentioning people
GNU General Public License v3.0
35 stars 5 forks source link

Installation Problems #1

Closed stoweboyd closed 1 year ago

stoweboyd commented 2 years ago

Went through BRAT. Simple Mention would not toggle to on, and froze Obsidian.

der-tobi commented 2 years ago

I just tried to reproduce this (v0.14.2 on an empty vault) but was not able to. Can you see any console logs or have any other clues? Which Obsidian version did you try with?

mamuso commented 2 years ago

Hi @der-tobi. I was able to reproduce the problem in Obsidian v0.14.2. The plugin doesn't seem to play well with the community plugin Templater.

With Templater active, I can't toggle simple-mention and Obsidian will not turn on the next time around.

The console is error-free.

stoweboyd commented 2 years ago

It just freezes Obsidian for me. I have to quit.

der-tobi commented 2 years ago

Thanks @mamuso for your lead. But could not reproduce that either :-(.

Is there possibly something in the templater configuration, or are there also other plugins installed? Was the plugin used in a large vault (possible performance issues?

mamuso commented 2 years ago

It may be performance! I too had to remove the plugin after making it work.

der-tobi commented 2 years ago

Part of it is certainly a performance issue. 😞. I have created a vault with 500 files. It takes forever to initialize it. Now i need to think about a more efficient caching mechanism. Inform when I have found some time for it.

ashishbhateja commented 2 years ago

Facing the same issue. Uninstalled Templater, but Obsidian still freezes when I try to enable the plugin.

Jopp-gh commented 1 year ago

Amazing simple concept and efficient plugin, thanks :) the only problem: after installing, quitting and relaunching, Obsidian freezes at the loading screen, exactly by workspaces. I do not have templater enabled but indexing must be the problem Obsidian: 1.0.0

der-tobi commented 1 year ago

Hello I hope that I have now found a solution to the problem.

It worked for me with a vault of 5000 files, each with 5 different mentions. The indexing takes quite a long time, but after the initial loading the startup time is decent.

May I ask you to try https://github.com/der-tobi/obsidian-simple-mention/tree/improve-indexing-performance and give me feedback if the behavior is better for your vault too?

Many thanks!

overkill864 commented 1 year ago

Hello I hope that I have now found a solution to the problem.

It worked for me with a vault of 5000 files, each with 5 different mentions. The indexing takes quite a long time, but after the initial loading the startup time is decent.

May I ask you to try https://github.com/der-tobi/obsidian-simple-mention/tree/improve-indexing-performance and give me feedback if the behavior is better for your vault too?

Many thanks!

Is that the latest release? The link takes me back to what seems like the version in the community plugins tab in the app. Tried it about 5 min ago and Obsidian still hangs when turning on the plugin. My vault is only 2k files.

EDIT: just in case I installed this link manually and it crashed my obsidian.

der-tobi commented 1 year ago

Hello @overkill864 No this is not yet a release. It's supposed to test it through BRAT.

der-tobi commented 1 year ago

Version 1.0.0 has just been released (https://github.com/der-tobi/obsidian-simple-mention/tree/1.0.0). With this version the index is now persisted in the indexeddb. The initial indexing may still take some time, but after that it should start much faster. I am closing this for now. Let me know if there are any further problems with this.