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

AttributeError: 'module' object has no attribute 'log_error' #986

Closed
oerp-odoo opened this issue Aug 15, 2018 · 2 comments
Closed

AttributeError: 'module' object has no attribute 'log_error' #986

oerp-odoo opened this issue Aug 15, 2018 · 2 comments

Comments

@oerp-odoo
Copy link

oerp-odoo commented Aug 15, 2018

I tried to use command github: open repo

Please include the following information when filing a bug:

  • Console error output:
Traceback (most recent call last):
  File "/home/oerp/.config/sublime-text-3/Packages/GitSavvy/github/commands/open_on_remote.py", line 114, in <lambda>
    sublime.set_timeout_async(lambda: self.run_async(remote))
  File "/home/oerp/.config/sublime-text-3/Packages/GitSavvy/github/commands/open_on_remote.py", line 123, in run_async
    open_repo(self.remotes[remote])
  File "/home/oerp/.config/sublime-text-3/Packages/GitSavvy/github/github.py", line 104, in open_repo
    github_repo = parse_remote(remote)
  File "/home/oerp/.config/sublime-text-3/Packages/GitSavvy/github/github.py", line 69, in parse_remote
    util.log_error('Invalid github url: %s' % url)
AttributeError: 'module' object has no attribute 'log_error'
  • A description of the problem.
    When I try to open repository on github with command github: open repo, it silently throws error in console, without any indication (in interface) if something went wrong.
  • Steps to reproduce, if possible
    I had this repo URL set as remote: git@github.com:/oerp-odoo/oerp-odoo.git
    It seems GitSavvy does not recognize first slash / after :. Though I can push to remote with such URL just fine (even using GitSavvy).

I would say this is two fold problem. First it does not recognize correct URL and when it does not recognize it, its logging functionality (that is supposed to catch incorrect URL) is not working, as seen from traceback.

P.S. Now I modified my URL by removing extra slash, so it is working without problems, but I think logging would fail if someone would write really incorrect URL (they would not see anything unless they would open sublime console).

@randy3k
Copy link
Collaborator

randy3k commented Aug 15, 2018

Thanks for bringing it up.

I think it is a better idea to keep the remote url standardized (who knows how many variations could be here). A fix to the log_error has been pushed through.

@oerp-odoo
Copy link
Author

oerp-odoo commented Aug 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants