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 connect to MeCab anymore as of 23.11.10.0 #320

Closed
uhp00 opened this issue Nov 12, 2023 · 10 comments
Closed

Cannot connect to MeCab anymore as of 23.11.10.0 #320

uhp00 opened this issue Nov 12, 2023 · 10 comments
Labels
kind/bug The issue or PR is regarding a bug

Comments

@uhp00
Copy link

uhp00 commented Nov 12, 2023

Description
Yomitan used to be able to connect to MeCab on 23.10.25.0 by using Yomichan MeCab Installer and replacing Yomichan's extension ID with Yomitan's in yomichan_mecab.json.
This doesn't work anymore on the latest 23.11.10.0 and 23.11.12.0 versions, doing the same steps results in a "Cannot connect to native MeCab component" error when testing.

Browser version
Brave 1.60.114 but Brave's native messaging is a mess so I also tried on Chrome 119.0.6045.124 to make sure the problem indeed came from Yomitan. Same result on both browsers

Yomitan version
23.11.10.0 and 23.11.12.0

@uhp00 uhp00 added the kind/bug The issue or PR is regarding a bug label Nov 12, 2023
@jbukl
Copy link

jbukl commented Nov 12, 2023

Had some troubles setting it up (didn't understand nativeMessaging at all and broke something on my end 😅) but I ended up getting it to work on my end.
My guess it's because of https://github.com/themoeway/yomitan/pull/314/files#diff-4c6a2b1872323412a1d1319aca6d1933e328b745aa5b79d54be77bf8f86e5777R222
You just need to change yomichan_mecab to yomitan_mecab in your registry (or whatever is created for your OS), or replace yomichan_mecab with yomitan_mecab in the installer file (lines 32, 35 in this file: https://github.com/siikamiika/yomichan-mecab-installer/blob/master/install_mecab_for_yomichan.py#L32) and rerun the installer.

Probably should keep this issue open though so it gets noted somewhere in the README (or the repo is forked/cloned and updated) at the very least

@uhp00
Copy link
Author

uhp00 commented Nov 12, 2023

Had some troubles setting it up (didn't understand nativeMessaging at all and broke something on my end 😅) but I ended up getting it to work on my end. My guess it's because of https://github.com/themoeway/yomitan/pull/314/files#diff-4c6a2b1872323412a1d1319aca6d1933e328b745aa5b79d54be77bf8f86e5777R222 You just need to change yomichan_mecab to yomitan_mecab in your registry (or whatever is created for your OS), or replace yomichan_mecab with yomitan_mecab in the installer file (lines 32, 35 in this file: https://github.com/siikamiika/yomichan-mecab-installer/blob/master/install_mecab_for_yomichan.py#L32) and rerun the installer.

Probably should keep this issue open though so it gets noted somewhere in the README (or the repo is forked/cloned and updated) at the very least

Worked, thank you!

@koiyakiya
Copy link

Because it seems like the old author isn't active anymore, I changed those small things in a fork. Firefox doesn't work right now because I don't know what to do with the extension ids. Could anyone assist?
https://github.com/starxeras/yomitan-mecab-installer

@jbukl
Copy link

jbukl commented Nov 12, 2023

Because it seems like the old author isn't active anymore, I changed those small things in a fork. Firefox doesn't work right now because I don't know what to do with the extension ids. Could anyone assist? https://github.com/starxeras/yomitan-mecab-installer

might be this https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings in the firefox manifest variant

@koiyakiya
Copy link

Because it seems like the old author isn't active anymore, I changed those small things in a fork. Firefox doesn't work right now because I don't know what to do with the extension ids. Could anyone assist? https://github.com/starxeras/yomitan-mecab-installer

might be this https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings in the firefox manifest variant

Tried to put {cb7c0bec-7085-4f84-8422-7b55a7c4467c} and all sorts of variations into it and it doesn't seem to work (even taking the id directly from yomitan firefox)

@jbukl
Copy link

jbukl commented Nov 14, 2023

Because it seems like the old author isn't active anymore, I changed those small things in a fork. Firefox doesn't work right now because I don't know what to do with the extension ids. Could anyone assist? https://github.com/starxeras/yomitan-mecab-installer

might be this https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings in the firefox manifest variant

Tried to put {cb7c0bec-7085-4f84-8422-7b55a7c4467c} and all sorts of variations into it and it doesn't seem to work (even taking the id directly from yomitan firefox)

I just installed the firefox-dev release (although any should probably work) from the Releases page in Firefox (nightly), uncommented the firefox code from your fork and ran it with the extension id from this page:

image
and it worked.

@koiyakiya
Copy link

I have fixed the repository and included a step-by-step guide. This issue should be marked as resolved.
https://github.com/starxeras/yomitan-mecab-installer

@djahandarie
Copy link
Collaborator

@starxeras Thank you, could you also open a PR to link to this new repo from the README?

@koiyakiya
Copy link

@starxeras Thank you, could you also open a PR to link to this new repo from the README?

Sure. Do you also want me to link it in the settings page where yomichan-mecab-installer is mentioned?

@djahandarie
Copy link
Collaborator

Fixed by #326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

No branches or pull requests

4 participants