Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Serhii Ruskykh
    @srusskih
    Hi
    manoj
    @manojinvisible
    already solved
    thanks
    Margus Kerma
    @kerma
    Hello. qq, am I right that find usages only works within one view? I didn't dig that deep but at the first clance it seems that only the active view source is passed to jedi engine?
    was hoping, that I get rid of the "cmd+d on class name, cmd+shift+f, enter" -> looking at all find results..
    Serhii Ruskykh
    @srusskih
    Hi. No, find usages trying to find all over the "project" modules.
    Serhii Ruskykh
    @srusskih
    Just made a test, jedi found usages only inside one package. But I didn't made any project settings.
    Margus Kerma
    @kerma

    hi!

    a somewhat simplified example, I have an top level package with a structure:

    ├── __init__.py
    ├── conf.py
    ├── export
    │   ├── mixpanel
    │   │   └── __init__.py
    │   └── salesforce
    │       ├── __init__.py
    │       └── multiquote.py
    └── lib
        ├── __init__.py
        └── api
            ├── __init__.py
            └── salesforce.py

    I have a class defined in lib.api.salesforce which is used in export.salesforce.multiquote. running the find usages on the class name just gives me the same file.

    so this is the "inside one package" limit, right?

    Serhii Ruskykh
    @srusskih
    I'm not sure that there is a "limit". Will set up project properly and will share the result (with project settings). Thanks for "test case".
    Utkarsh
    @utkjad
    Hi @srusskih Serhii and all,
    I was wondering if Inheritance in Jedi-Python works. It looks like Jedi - Python does not support the same.
    For example - In
    class Blah(Foo):
    if I do self. it does not show me the methods of Foo.
    Is there any way I can achieve that?
    Eddy Ernesto del Valle Pino
    @edelvalle

    Hi @srusskih how is it going? Did you see there is a new jedi version? 0.12.0, so I was trying to integrate it and using the current setup it does not work. It incorporates a new way to configure jedi.Script, using Environments... so basically you create an Environment telling the path to a virtualenv and then you pass that to jedi.Script script and it does ll the magic.

    The good thing is that you don't need the daemon any more because you could run jedi inside the Sublime Python interpreter and configure the Envioroment depending on the project so you can have direct communication with Jedi.

    The bad is that that will require some heavy work in the integration between the plugin and the new jedi.

    What do you thin? Any idea?

    Serhii Ruskykh
    @srusskih
    @edelvalle hi. I didn't look at 0.12 yet. Looks like lots of changes are there. I'll spend today evening to look in to update to be on the same page with you. OK?
    Eddy Ernesto del Valle Pino
    @edelvalle
    Ok, I can help you to implement to update... the most radical thing I see is that the configuration file of the plugin will have to point to the virtualenv and not to the python interpreter.... but, let's see, you look at it first and then tell me...
    Serhii Ruskykh
    @srusskih
    ok, I see want you mean now.
    Serhii Ruskykh
    @srusskih
    @edelvalle just updated to jedi 0.12.0 & parso 0.2.0 - and all works fine as I can see
    but you are right we can use a new feature with environments and update the way how we are working with jedi
    also if we are going to move on 0.12.0 users who using python2.6 would be locked on old SublimeJedi version (:
    Serhii Ruskykh
    @srusskih
    to move on 0.12 I think we should review the method of how we are sending request to a demon, in another words - rewrite Demon implementation without braking publish method "request" and keep demon result format
    Eddy Ernesto del Valle Pino
    @edelvalle
    Let me pull, and see how it goes
    @srusskih I made this change in and run the dependency make thing.. :P
    --- a/Makefile
    +++ b/Makefile
    @@ -12,8 +12,8 @@ dummy:
     dependencies:
            rm -rf dependencies/
            mkdir dependencies/
    -       $(call get_dependency,jedi,https://github.com/davidhalter/jedi,v0.11.1)
    -       $(call get_dependency,parso,https://github.com/davidhalter/parso,v0.1.1)
    +       $(call get_dependency,jedi,https://github.com/davidhalter/jedi,v0.12.0)
    +       $(call get_dependency,parso,https://github.com/davidhalter/parso,v0.2.0)
    Using a virtualenv jedi does not autocomplete packages that I have installed inside the virtual env.... Example, if I type
    from django.| asking for autocompletion fallsback to the sublime completion
    I will try something soon and make you a PR, so can reject it ;)
    Serhii Ruskykh
    @srusskih
    also
    I have found that it looks like
    91998 ?? S 0:00.39 /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python ../dependencies/jedi/evaluate/compiled/subprocess/__main__.py ../dependencies
    I worry about ../dependencies
    Eddy Ernesto del Valle Pino
    @edelvalle
    me too...
    Serhii Ruskykh
    @srusskih
    actually a have tests a completion on jedi plugin, maybe it worker because of related import paths
    Eddy Ernesto del Valle Pino
    @edelvalle
    I ran jedi in the python CLI, loaded the env I have created, gave it a snippet to autocomplete
    and it did well
    It seems that runing env it with just the interpreter does not work any more, it really needs this new env configuration to work
    Serhii Ruskykh
    @srusskih
    also we should consider about extra paths that we allowed to include in sys.path
    I can't find a way how we can add them to jedi's Environment
    Eddy Ernesto del Valle Pino
    @edelvalle
    yes, I know because people using buildout or something weird like that will complain hahahaha
    Serhii Ruskykh
    @srusskih
    (8
    Eddy Ernesto del Valle Pino
    @edelvalle
    well this was also a decision of the jedi developer, should the plugin will have to adopt it at some point, what do you think?
    Serhii Ruskykh
    @srusskih
    I see lots of TODO in a code, maybe we can wait and update jedi a bit later, for now we can try to figure out how we can work with latest (breaking) changes :smile:
    Eddy Ernesto del Valle Pino
    @edelvalle
    Good idea
    I will go to sleep then... I guess un Ukraine is even later, so I suggest yo do the same... ;)
    Good night!
    Serhii Ruskykh
    @srusskih
    Good night!
    11pm here
    Eddy Ernesto del Valle Pino
    @edelvalle
    right, here 10pm
    Serhii Ruskykh
    @srusskih
    (:
    Eddy Ernesto del Valle Pino
    @edelvalle
    @srusskih Here you go, srusskih/SublimeJEDI#240
    It works in my computer..... lol
    check it, try it, use it....
    Serhii Ruskykh
    @srusskih
    @edelvalle merged in master, after some beta-testing we can release it. Great job!
    Eddy Ernesto del Valle Pino
    @edelvalle
    Well, I'm using it daily, we should get some feedback from someone with Sublime 2