-
Notifications
You must be signed in to change notification settings - Fork 94
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
Unable to compute dictionary path #251
Comments
I'm getting the same bug. I found a workaround, if you manually create In my case on MacOS I needed to do
Stack trace
The save logic for the dictionary does create the intermediate directories as well, but the code isn't getting there, because the load doesn't support a missing user dictionary - https://sourcegraph.com/github.com/Automattic/harper/-/blob/harper-ls/src/dictionary_io.rs?L11 |
This might be a good first issue for someone to fix this. 😅 |
I'm surprised you were able to get it working by making a config directory. This shouldn't have anything to do with the config directory as far as I can tell, since it looks to be file dictionaries and not the user dictionary that have the problem. The issue appears to be with harper/harper-ls/src/backend.rs Line 58 in f4ba4d0
So maybe an invalid url is introduced to the The documentation for
|
You're right, I thought I had stopped it from crashing, but I later realised I hadn't been testing it properly and it was still hanging and crashing for me! |
yea I get same error on Mac OS 14.5 with VSCode harper plugin 13.0 [Info - 10:53:07 PM] Server initialized! |
@mrfragger can you test if the following commands help?
I tried enabling RUST_BACKTRACE and adding some debug statements to a custom |
I've gone ahead and improved the error handling here. This should no longer be an issue in the next release. Hopefully we can find out what buffer opens on MacOS that triggers it. Once the release it out, I'll ping you here so we can confirm the fix is working. |
@elijah-potter Thanks! |
yea I checked and those directories already exist. BTW, I should've said harper did work for 5 or 10 mins and I started adding about 10 words to the global dictionary. I decided I wanted to start keeping track of which ones I was adding. As soon as I created a new file in VSCode that's when harper crashed. No matter what I did disabled extension and restart extensions. Then re-enable. Uninstalled and then re-installed. Looking forward to new release to see if that fixes it or not. ok : 3 hours later....it's working fine now and I can't get it to crash. Ultimately what made it work for me again was deleting dictionary.txt (the global dictionary file). Sidenote: It doesn't do 4.2MB (80 hours of transcription) markdown files that well. I'd suggest sticking to under 200KB is probably best. edit: ok finally got it to crash again this happened when I switch to a plain text new document and pasted a word in VSCode |
I've just ran a release with the fixes. Would you mind checking if this problem persists with |
elijah-potter.harper-0.12.0-darwin-arm64
The text was updated successfully, but these errors were encountered: