Code Monkey home page Code Monkey logo

browserbookmarks's People

Contributors

svenfraeys avatar

Watchers

 avatar  avatar

Forkers

bergtholdt

browserbookmarks's Issues

NameError: global name 'bookmarkFile' is not defined

There seems to be a bug in your code here because the variable bookmarkFile is not previously defined anywhere within this local funciton:

https://github.com/svenfraeys/BrowserBookmarks/blob/master/BrowserBookmarks.py#L308

Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 1052, in run_
    return self.run()
  File "/home/id/Mega/dotfiles/ubuntu/.config/sublime-text-3/Installed Packages/BrowserBookmarks.sublime-package/BrowserBookmarks.py", line 488, in run
  File "/home/id/Mega/dotfiles/ubuntu/.config/sublime-text-3/Installed Packages/BrowserBookmarks.sublime-package/BrowserBookmarks.py", line 458, in collectBookmarks
  File "/home/id/Mega/dotfiles/ubuntu/.config/sublime-text-3/Installed Packages/BrowserBookmarks.sublime-package/BrowserBookmarks.py", line 327, in bookmarks
  File "/home/id/Mega/dotfiles/ubuntu/.config/sublime-text-3/Installed Packages/BrowserBookmarks.sublime-package/BrowserBookmarks.py", line 308, in _findJsonFilepath
NameError: global name 'bookmarkFile' is not defined

[Bug] UnicodeDecodeError

Summary

I can not begin to use BrowserBookmarks. I get error in console.

Expected behavior

Expected behavior

Actual behavior

command: show_bookmarks
Traceback (most recent call last):
  File "E:\Sublime Text 3\sublime_plugin.py", line 797, in run_
    return self.run()
  File "BrowserBookmarks in E:\Sublime Text 3\Data\Installed Packages\BrowserBookmarks.sublime-package", line 488, in run
  File "BrowserBookmarks in E:\Sublime Text 3\Data\Installed Packages\BrowserBookmarks.sublime-package", line 446, in collectBookmarks
  File "BrowserBookmarks in E:\Sublime Text 3\Data\Installed Packages\BrowserBookmarks.sublime-package", line 404, in bookmarks
  File "./python3.3/json/__init__.py", line 268, in load
  File "./python3.3/encodings/cp1251.py", line 23, in decode
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 422: character maps to <undefined>

Steps to reproduce

The problem is reproduced for me in a version of Sublime Text without plugins and user settings.

I install BrowserBookmarks via Package Control → I restart Sublime Text → Ctrl+Shift+PBrowserBookmarks: Show Bookmarks → I get stack trace.

Environment

Operating system and version:
Windows 32-bit 10.0.14393
Sublime Text:
Build 3126
Firefox:
Portable 49.0.2

Thanks.

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.