Giter Site home page Giter Site logo

sublimeshellexec's People

Contributors

creativej avatar

Watchers

 avatar

sublimeshellexec's Issues

Issues to address from package control PR

  • Don't hardcode folder separators
  • Don't override default types, not even locally. This also happens a lot with file btw.
  • Use with open(file, "w") as f: is one of the best things in Python
  • There could be a better way to get the current function name in python 3?
  • Use __package__ instead of very long construct using the inspect module. Can just access __file__ for most cases. (There is also __package__ which will be more useful for the next point.)
  • Plugin won't not work currently when installed by Package Control. This is because all packages are zipped by default and stored in the Installed Packages directory.
    Possible solution:

you can override specific files from within the Packages dir and a folder with the same name as the corresponding PackageName.sublime-package - without extension ofc. So, what you should do is to check whether os.path.join(sublime.packages_path(), __package__) exists, create that if necessary and then write into a file there.

More details wbond/package_control_channel#3391

Issues to address from package control PR

  • Don't hardcode folder separators
  • Don't override default types, not even locally. This also happens a lot with file btw.
    with open(file, "w") as f: is one of the best things in Python
  • There could be a better way to get current function name in Python 3?
  • Use package instead of very long construct using the inspect module. Can just access file for most cases. (There is also package which will be more useful for the next point.)
  • Plugin won't not work currently when installed by Package Control. This is because all packages are zipped by default and stored in the Installed Packages directory.
    Possible solution:

you can override specific files from within the Packages dir and a folder with the same name as the corresponding PackageName.sublime-package - without extension ofc. So, what you should do is to check whether os.path.join(sublime.packages_path(), package) exists, create that if necessary and then write into a file there.

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.