Comments (10)
Great! Let me know if you need any help!
from jedi.
@svaiter I have interested in. made a fork of your repo today
@davidhalter Does "jedi" allow using virtualenvs ?
from jedi.
@srusskih: Very good question... To be honest: I didn't think about it. I will try it. But I probably need ~1-2 weeks (many other more important issues). If I don't report back, just feel free to ask again.
from jedi.
@davidhalter @srusskih as long as the virtualenv directory is in the PYTHONPATH, it should work, right?
from jedi.
@gwrtheyrn: I doubt that there are any problems with virtualenvs and Jedi. But editors like VIM use probably just one Python version (and don't respect virtualenvs). The problem is basically that VIM starts its own Python. And I have absolutely no idea how it behaves (I have to look into it).
from jedi.
@davidhalter To determine whether a virtualenv was activated, see https://groups.google.com/forum/?fromgroups=#!topic/python-virtualenv/4wApsuUK4Xo
from jedi.
What reason can be for "jedi", if it does not works ?
>>> import jedi
>>> import os
>>> source = """
... import json
... json.l"""
>>>
>>> script = jedi.Script(source, 2, 6, os.devnull)
>>> completions = script.complete()
>>> completions
[<Completion: importlib>]
UPD:
All Tests pass without fails.
from jedi.
@srusskih: indent starts with index 0: https://github.com/davidhalter/jedi#api-design-for-ides
Therefore you are on the import statement and not on os
. Just increase 6
to 7
and it works.
(btw: this is still a bug, because the completion should be []
not [<Completion: importlib>]
. But I know where to find that.)
from jedi.
@davidhalter, thanks! Works now :)
>>> jedi.Script(source, 3, 6, '').complete()
[<Completion: loads>, <Completion: load>]
from jedi.
I'm closing this, because your plugin is being mentioned on the front page (README). I'd love to see a good Sublime plugin!
from jedi.
Related Issues (20)
- AssertionError completing a trailer with a space after dot HOT 1
- Test failures with Python 3.12 HOT 4
- Drop support for running on legacy Python? HOT 1
- Tab complete for class __call__ not working HOT 1
- I would like to contribute as translator HOT 2
- allow users to set cache_directory via env-var HOT 9
- Jedi.names is not working HOT 3
- Missing docstring for pandas functions HOT 1
- Add support for `TypeAlias` HOT 4
- Addition of type annotation breaks tab completion in jedi>=0.19.0
- kwargs forwarding? HOT 1
- `LazyKnownValues` has no attribute `string_name`? HOT 4
- Enum name auto-completion without parentheses HOT 1
- Jedi searches the python interpreter in the wrong path. HOT 8
- Unhandled Exception with Unnamed Lambdas When Analyzing References Using dynaconf
- Add support for async pytest fixtures
- Is it possible to generate completion for `argparse.Namespace`? HOT 5
- TypedDict : Suggestion issues HOT 2
- Python stubs loaded from extensions folder even when using an explicit interpreter HOT 8
- Error when trying to detect environment HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jedi.