プラグインの公開失敗について

バグ?報告

  • プラグインを公開したが https://my.inkdrop.app/plugins/ の検索に表示されない
    • Inkdrop -> Preferences -> Plugins -> Install で検索すると表示される
  • 公開したプラグインを ipm install で指定すると404エラーが返ってくる

利用環境

  • Platform: (macOS)
  • Platform version: (Catallina/10.15.6)
  • App Version: (5.0.0)

再現方法

昨日、作成したプラグインを ipm publish で公開しました。

しかしこちらの試行錯誤中のミスにより、バージョン 2.0.3 でpublishしてしまいました。
その後、元々設定したかったバージョンを指定し、publishしました。
ipm publish 0.2.0

その後、Inkdrop 5.0.0内蔵のプラグイン検索で intellij が引っかかることを確認したのですが、Webの検索では一致するものがないと表示されています。
https://my.inkdrop.app/plugins/search?q=intellij

また、Inkdropから直接検索、インストールはできたのですが、コマンドからインストールしようとすると失敗します。

% ipm install intellij-keybindings-for-mac
Installing intellij-keybindings-for-mac to /Users/xxx/Library/Application Support/inkdrop/packages ✗

npm ERR! code E404
npm ERR! 404 Not Found - GET https://codeload.github.com/kitwtnb/inkdrop-intellij-for-mac/legacy.tar.gz/v2.0.3
npm ERR! 404
npm ERR! 404  'https://api.inkdrop.app/v1/packages/intellij-keybindings-for-mac/versions/2.0.3/tarball' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404  1. name can only contain URL-friendly characters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/xxx/Library/Application Support/inkdrop/.ipm/_logs/2020-09-03T04_01_41_343Z-debug.log

ログを見る限り、初回のpublishで2.0.3を指定してしまい、その後0.2.0をpublishしてしまったため不整合が起きているのではないかと推測しています。
もし解決の糸口があればご教示いただけないでしょうか?
よろしくお願いします。

今日、修正がありpublishしたので、最新バージョンは 0.2.1 となっております。

Keitaさん

こんにちは。ご報告ありがとうございます。
一覧に表示されない件はプラグインレジストリ側のバグでした!
只今修正しました。
それと、誤ってpublishされた 2.0.3 はこちらで削除しました。
手元でインストールしてみましたが、正しくインストールできました。

プラグインの開発ありがとうございます!

Takuyaさん

ありがとうございます!!
検索で表示されること、コマンドからインストールできることを確認できました!

シンプルなmarkdownエディタにプラグインで拡張できるところがInkdropのお気に入りのポイントなので、がんばって開発を続けます!

1 Like

直ってよかったです!
ぜひ一緒にInkdropを便利にしていきましょう😄