Giter Club home page Giter Club logo

Comments (4)

cloudsnowe avatar cloudsnowe commented on May 24, 2024 1

Thanks a lot, it works
image

from alfred-tldr.

konoui avatar konoui commented on May 24, 2024

Sorry for the late response.
I was unable to reproduce the error on my end.

My environments are

  • monterey 12.3.1
  • alfred v4

The error means failure to find index json file for tldr database.

Could you please give me more information for further investigation?

  1. If update tldr database, will the issue be resolved?
    tldr --update and return(enter)

  2. following command results
    find ~/ -name tar.md

e.g.)

$ find ~/ -name tar.md
/Users/<username>/Library/Application Support/Alfred/Workflow Data/dev.konoui.alfred-tldr/data/pages.de/common/tar.md
/Users/<username>/Library/Application Support/Alfred/Workflow Data/dev.konoui.alfred-tldr/data/pages.fr/common/tar.md
/Users/<username>/Library/Application Support/Alfred/Workflow Data/dev.konoui.alfred-tldr/data/pages.es/common/tar.md
(snip)
  1. list files in the tldr database directory
$ ls "/Users/<username>/Library/Application Support/Alfred/Workflow Data/dev.konoui.alfred-tldr/data/"
LICENSE.md  pages.bs  pages.fa   pages.it  pages.nl     pages.ro  pages.ta  pages.zh
index.json  pages.ca  pages.fr   pages.ja  pages.no     pages.ru  pages.th  pages.zh_TW
pages       pages.da  pages.hbs  pages.ko  pages.pl     pages.sh  pages.tr
pages.ar    pages.de  pages.hi   pages.ml  pages.pt_BR  pages.sr  pages.uk
pages.bn    pages.es  pages.id   pages.ne  pages.pt_PT  pages.sv  pages.uz

index.json is required for tldr command. The error means the workflow could not stat the index file.
Database files including index.json is downloaded from tldr repository.
https://github.com/konoui/alfred-tldr/blob/v0.8.0/pkg/tldr/pages.go#L28

from alfred-tldr.

cloudsnowe avatar cloudsnowe commented on May 24, 2024

thanks
my this directory is just one file and is zero byte
image

I wanna to know where I can get index.json?

from alfred-tldr.

konoui avatar konoui commented on May 24, 2024

Hi, thank you for your information.
I understand that directory has only tldr.zip file but size is zero.

Expected behavior of the workflow are

  1. the workflow downloads tldr.zip.
  2. the workflow executes unzip the tldr.zip.

If 1. and 2. instructions succeed, the error will not occur since tldr.zip contains index.json and all tldr files

However, your results seems that 1. the workflow downloads tldr.zip. failed.

Could you please confirm your network environment such as a firewall?
The simple way to confirm them is using curl command.

curl -O -vvv https://tldr.sh/assets/tldr.zip

from alfred-tldr.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.