Giter Site home page Giter Site logo

Support from foo import * about semshi HOT 2 OPEN

numirias avatar numirias commented on June 20, 2024 1
Support from foo import *

from semshi.

Comments (2)

numirias avatar numirias commented on June 20, 2024

It bothers me too! And it can certainly be done. However, there are a few things to consider. Off the top of my head:

  • Semshi reparses the code on every change. This is fast when just looking at the current file. But resolving imports (potentially recursively), may take quite long. So we'd need to think of a smart mechanism to do that without affecting usability. Also, how do we detect if an imported name has become available, etc.? Do we re-check at certain intervals?

  • How complex and error-prone is static resolving of Python imports? (I'm thinking of different PATHs and entry points. How much time does it take? (Maybe we should look at other completion/refactoring plugins that do that. Maybe we can even hook them?)

Also, right now, I got some important refactorings/improvements regarding Semshi in mind, so I'm not sure how soon I will be able to tackle this given I'm currently the only author. :)

from semshi.

lkhphuc avatar lkhphuc commented on June 20, 2024

Thank you. Please keep on writing any news about it here.
I will try to look at the code and see what can I do to help out, or maybe someone with more experience decide to help :).

from semshi.

Related Issues (20)

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.