Git Product home page Git Product logo

gfzs's People

Contributors

yukihirop avatar

Watchers

 avatar  avatar

gfzs's Issues

Configure workflow

Summary

  • Prepare the archive when the tag is issued
  • Allows installation with homebrew
$ brew tap yukihirop/homebrew-tap
$ brew install gfzs

Paginate and Overhand Error Bugs

Summary

  • Page turning does not work at 6(per_page+1) pages
  • Error when resize
$ bin/gfzs demo
Error: addwstr() returned ERR
  • abstract does not break with proper width

Modify Singleton Class

Summary

Quit inheriting the Singleton class.

It seems that import of python will be Singleton, so use that property.

class Singleton(object):
    @classmethod
    def get_instance(cls):
        if not hasattr(cls, "_instance"):
            cls._instance = cls()
        return cls._instance

Bugs about logger.error(e)

Steps to reproduce

$ ggr github pyoxidi
Traceback (most recent call last):
  File "/Users/yukihirop/PythonProjects/gfzs/.venv/bin/gfzs", line 8, in <module>
    sys.exit(main())
  File "/Users/yukihirop/PythonProjects/gfzs/.venv/lib/python3.7/site-packages/gfzs/cli.py", line 170, in main
    logger.error(error)
  File "/Users/yukihirop/PythonProjects/gfzs/.venv/lib/python3.7/site-packages/gfzs/utils/logger.py", line 182, in error
    self._add(ERROR, self.progname, msg)
  File "/Users/yukihirop/PythonProjects/gfzs/.venv/lib/python3.7/site-packages/gfzs/utils/logger.py", line 217, in _add
    stack,
  File "/Users/yukihirop/PythonProjects/gfzs/.venv/lib/python3.7/site-packages/gfzs/utils/logger.py", line 230, in _format_message
    severity, datetime, progname, msg, stack
  File "/Users/yukihirop/PythonProjects/gfzs/.venv/lib/python3.7/site-packages/gfzs/utils/logger.py", line 59, in call
    adjusted_msg = self._msg2str(msg)
  File "/Users/yukihirop/PythonProjects/gfzs/.venv/lib/python3.7/site-packages/gfzs/utils/logger.py", line 94, in _msg2str
    msg.message,
AttributeError: 'Exception' object has no attribute 'message'

Refactor module && class

Summary

  • rename module from config to runtime
  • rename class from AppConfig to RuntimeConfig
  • rename class from RuntimeConfig to RuntimeOpts
  • Change demo rust.json(ja) to python.json(en)

Error if you press enter twice with Not Found displayed

Summary

$ python3 gfzs/controller.py
Traceback (most recent call last):
  File "gfzs/controller.py", line 209, in <module>
    choice = controller.run()
  File "gfzs/controller.py", line 159, in run
    self.execute_when_enter(self.search_result.current_selected)
  File "gfzs/controller.py", line 87, in execute_when_enter
    webbrowser.open(result[current_selected].get("url"), new=2)
IndexError: list index out of range

Error when python mismatch in pyenv

Summary

pyenv global 3.9.4
pyenv rehash

โ†“

$ gfzs demo
/usr/local/Cellar/pyenv/2.0.6/libexec/pyenv-exec: /Users/yukihirop/.local/bin/gfzs: /Users/yukihirop/.local/pipx/venvs/gfzs/bin/python: bad interpreter: No such file or directory
/usr/local/Cellar/pyenv/2.0.6/libexec/pyenv-exec: line 48: /Users/yukihirop/.local/bin/gfzs: Undefined error: 0
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>

System configuration

gfzs version: 0.2.3

Python version: 3.9.4

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.