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

Cannot Load Obsidian Plugin #338

Open
stephenstubbs opened this issue Dec 30, 2024 · 12 comments
Open

Cannot Load Obsidian Plugin #338

stephenstubbs opened this issue Dec 30, 2024 · 12 comments
Assignees
Labels
bug Something isn't working obsidian-plugin Related to the Harper Obsidian integration

Comments

@stephenstubbs
Copy link

I just wanted to say thank you for this amazing project. I am really keen on trying this out. After installing and enabling the plugin I do not get any error highlighting like I think I should be getting. When restarting Obsidian It hangs and says: plugin "harper" is taking long to load. This is on MacOS.

@elijah-potter
Copy link
Collaborator

That's not great! To figure this out, would you mind doing three things for me?

  1. Make sure you're using the latest version, which (at the time of writing) should be v0.13.0.
  2. Type out This is an test in an open file. Do you get any red underlines?
  3. Take a screenshot of the problem, including the developer console. You can do this on MacOS by pressing Cmd+Option+I at the same time.

@mxgrn
Copy link

mxgrn commented Dec 31, 2024

Not OP, but having the same exact issues.

Image

Using v.0.13.0.

Seeing that the plugin loads for too long, I disabled it. Now it always loads disabled.

Blank config panel:
Image

@murtuzaalisurti
Copy link

murtuzaalisurti commented Dec 31, 2024

@elijah-potter same for me, on macOS, latest version 0.13.0

Image

@elijah-potter
Copy link
Collaborator

elijah-potter commented Dec 31, 2024

Hmmm, I'm not able replicate the issue on my end. @mxgrn would you take a similar screenshot, but swap over to the "Console" tab at the top of the developer tools? We'll get this fixed in a jiffy.

@mxgrn
Copy link

mxgrn commented Dec 31, 2024

Image

... and after scrolling down a page:

Image

@elijah-potter
Copy link
Collaborator

Alright. I've created a new release of the Obsidian plugin that might fix your issue. Go ahead and update to v0.14.0.

If it doesn't immediately start working, try disabling Web Worker usage in settings. At worst, I'll get a better understanding of the issue. I'm still unable to replicate it on my end (on MacOS or any other platform), so thank you for all information you've been able to give me.

@mxgrn
Copy link

mxgrn commented Jan 1, 2025

First, a dev console screenshot
Image

@mxgrn
Copy link

mxgrn commented Jan 1, 2025

Not seeing Harper in Obsidian settings:

Image

Maybe due to:

Image

@stephenstubbs
Copy link
Author

stephenstubbs commented Jan 1, 2025

Hi,

I have just tried updating it to v0.14.0 and am getting this error when I enable the plugin.

Image

I then have the same issue when I restart and have to disable it. Same as screenshot provided by @mxgrn.

@murtuzaalisurti
Copy link

murtuzaalisurti commented Jan 2, 2025

@elijah-potter worked for me on a new installation of obsidian on a new machine (Windows)

OS: Windows 11
Obsidian v1.7.7
Harper v0.14.0

Image

@elijah-potter elijah-potter added the obsidian-plugin Related to the Harper Obsidian integration label Jan 3, 2025
@elijah-potter elijah-potter self-assigned this Jan 3, 2025
@elijah-potter elijah-potter added the bug Something isn't working label Jan 3, 2025
@murtuzaalisurti
Copy link

unfortunately, it doesn't work on macOS.

@brisu
Copy link

brisu commented Jan 9, 2025

Experiencing a similar issue. The plugin doesn't block startup but will return the same TypeError when I try to activate the plugin manually.

OS: Mac OS Sequoia 15.2 (24C101) Apple Silicon
Obsidian v1.7.7
Harper v0.15.0

Troubleshooting:

  1. Turn off all plugins (also tried creating a brand new vault)
  2. Install Harper
  3. Enable breakpoints for erros
  4. Enabling Harper leads to the following errors Error: ENOENT: no such file or directory, open '/Users/xxx/Desktop/test obsidian/test/.obsidian/plugins/harper/data.json' at async open (node:internal/original-fs/promises:636:25) at async Object.readFile (node:internal/original-fs/promises:1246:14)
  5. I've tried copying data.json from a Windows installation to the indicated directory. It returns the error attached below.
plugin:harper:2278 Switching to `WorkerLinter`
plugin:harper:2402 (3) [e, e, Array(4)]
1b2ac272-4336-4dcf-9ca4-37629ba4ae48:722 Uncaught (in promise) TypeError: WebAssembly.instantiate(): Argument 0 must be a buffer source
    at ft (1b2ac272-4336-4dcf-9ca4-37629ba4ae48:722:33)
    at Object.H [as default] (1b2ac272-4336-4dcf-9ca4-37629ba4ae48:865:44)
    at async k (1b2ac272-4336-4dcf-9ca4-37629ba4ae48:16:10)
    at async et.initialize (1b2ac272-4336-4dcf-9ca4-37629ba4ae48:25:17)
    at async et.setup (1b2ac272-4336-4dcf-9ca4-37629ba4ae48:30:5)
    at async _t (1b2ac272-4336-4dcf-9ca4-37629ba4ae48:118:11)
ft @ 1b2ac272-4336-4dcf-9ca4-37629ba4ae48:722
H @ 1b2ac272-4336-4dcf-9ca4-37629ba4ae48:865
await in H (async)
self.onmessage @ 1b2ac272-4336-4dcf-9ca4-37629ba4ae48:123

Would love to have this working on MacOS. Any way to help or look further into this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working obsidian-plugin Related to the Harper Obsidian integration
Projects
None yet
Development

No branches or pull requests

5 participants