coddingtonbear / obsidian-local-rest-api

Unlock your automation needs by interacting with your notes in Obsidian over a secure REST API.
MIT License
607 stars 56 forks source link

2.0.5 got incorrectly tagged as a release, now can't install/update #101

Closed luckman212 closed 7 months ago

luckman212 commented 8 months ago

minor: 2.0.5 got incorrectly tagged as a release, now can't install/update from inside Obsidian.

owrede commented 8 months ago

Me too. It shows 2.0.5 update available inside Obsidian – but here on git the last release seems to be still 2.0.4. Update in Obsidian fails.

tangodev commented 8 months ago

This indeed seems to be the issue:

rest-api-update-fail image

littledogboy commented 8 months ago

same error to me

xiel0325 commented 8 months ago

So what should I do?

Tback1 commented 8 months ago

me too~

codethought commented 8 months ago

So what should I do?

As a work around you can manually install by downloading the release from this repo and putting it in the plugins folder for your vault. It won't update.. but at least you can get the install completed.

owrede commented 8 months ago

I tried that ... but I was not succsessful. I do not understand which files I need to be putting into the plugin folder (Sorry).

The plugin folder has four files:

I the repo here I find many other and all code files are TypeScript (.ts) files. I was assuming that Obsidian does some sort of compiling from TypeScript to JavaScript when installing a plugin.

Tback1 commented 8 months ago

@owrede

I tried that ... but I was not succsessful. I do not understand which files I need to be putting into the plugin folder (Sorry).我试过了......但我没有成功。我不明白我需要将哪些文件放入插件文件夹(对不起)。

The plugin folder has four files:插件文件夹有四个文件:

  • data.json
  • main.js 主 .js
  • manifest.json
  • styles.css 样式 .css

I the repo here I find many other and all code files are TypeScript (.ts) files. I was assuming that Obsidian does some sort of compiling from TypeScript to JavaScript when installing a plugin.我在这里的存储库中发现了许多其他代码文件,所有代码文件都是 TypeScript (.ts) 文件。我假设 Obsidian 在安装插件时会从 TypeScript 编译到 JavaScript。

no you just need

styles.css
main.js
data.json
manifest.json
owrede commented 8 months ago

I am not sure what you mean. In this repository here I see styles.css and manifest.json. I do not see data.json or main.js.

What am I missing?

owrede commented 8 months ago

OK. I got it. There was a build error for 2.0.5 that prevented the deployment of the files needed: https://github.com/coddingtonbear/obsidian-local-rest-api/actions/runs/7601968816/job/20701963503

I guess that's why people can't update to 2.0.5.

codethought commented 8 months ago

Well hopefully @coddingtonbear sees this discussion sometime soon and get it fixed.

MatiasVerdier commented 8 months ago

As a temporary solution you can install the previous version of the plugin (2.0.4) using BRAT

  1. Install BRAT plugin image

  2. Add plugin with frozen version image

  3. Paste repo URL and version image

Hope it helps

Tback1 commented 7 months ago

just compile error,but @coddingtonbear may be on vacation, so need wait he back to deal it

coddingtonbear commented 7 months ago

Whoops! So that will teach me for trying to squeeze in a small fix for somebody when I found myself with a (very) few minutes of free time before a vacation.

I've re-released as 2.0.6 (after re-building package-lock.json) and things should install correctly once again.

owrede commented 7 months ago

Update went fine! Thanks (still have a problem though... posted in a new issue)