isamert / gedi Goto Github PK
View Code? Open in Web Editor NEWa python code completion plugin for gedit3+
License: GNU General Public License v3.0
a python code completion plugin for gedit3+
License: GNU General Public License v3.0
hi,
** (gedit:82182): WARNING **: 03:21:17.608: Error initializing Python Plugin Loader: PyGObject initialization failed
ImportError: could not import gobject (error was: ModuleNotFoundError("No module named 'gi'"))
** (gedit:82182): WARNING **: 03:21:17.608: Please check the installation of all the Python related packages required by libpeas and try again
(gedit:82182): libpeas-WARNING **: 03:21:17.609: Loader 'python3' is not a valid PeasPluginLoader instance
it not show the complete popups. here is my traceback. is it usefull?
Traceback (most recent call last):
File "/home/xxx/.local/share/gedit/plugins/gedi/gedi.py", line 87, in do_populate
self.get_icon_for_type(completion.type.lower()),
File "/home/arion/.local/share/gedit/plugins/gedi/gedi.py", line 105, in get_icon_for_type
return theme.load_icon(Gtk.STOCK_ADD, 16, 0)
GLib.Error: gtk-icon-theme-error-quark: Icon 'gtk-add' not present in theme Adwaita (0)
Hi,
I notice that gedi very slow to show pop completion when using pop up on dot is enabled. Here is the minimum example,
import numpy as np
a = np.random.randint(0, 9, 1)
On the second line, after pressing the first dot, the delay about 10 seconds before the pop up show. In .vimrc
, I used the following configuration to disable jedi pop up on dot.
let g:jedi#popup_on_dot = 0
let g:jedi#popup_select_first = 0
The second line is to disable jedi to select the first list on pop (default).
Is it possible to set that kind of config in Gedi...? If it is not in the default setting, can we set it manually?
Thank you very much on your work for this great Gedit plugin.
Is there a way to get Gedi to read the site-packages based on the currently activated python virtualenv? The natural idea of running gedit from within the virtualenv doesn't seem to recognize the virtualenv's site-packages.
OS: ubuntu 14.04
Install method:
apt-get install python-jedi
(python-jedi (0.7.0-1))
Placed 2 scripts in path /.local/share/gedit/plugins/
script-names:
The plugin 'Gedi' could not be loaded
An error occurred: Failed to load
How do I debug this?
After updating from git, I need to comment line 99-101 and unindent once line 102 in gedi.py to make it works on Gedit 3.18.3 on Ubuntu 16.04.6
97 for completion in Jedi.get_script(document).completions():
98 complete = completion.name
99 #if jedi.__version__ <= (0,7,0):
100 # doc=completion.doc
101 #else:
102 doc=completion.docstring()
The reason is the following error message:
jedi is not found
Thanks again for your great works!
Let's make gEdit great again.
I already install the plugin along with its requirements. It seems OK but nothing happens.
Just curious, is there any shortcut (Ctrl/tab/etc+) needed to trigger the completion...?
First of all, thanks for making this.
Unfortunately It doesn't seem to do anything on my machine. I am running Arch, which recently updated to Gedit 3.20.1.
I installed and enabled the Gedi plugin. I then made a new document and set the highlighting mode to Python 3. If I start Gedit from the command line I can see a "Gedi is activated" message, but there no code completion popups appear.
Is this not supported yet for Gedit 3.20.1, or is there some additional troubleshooting I can do?
Thanks!
In the "How to update" section, it should say "git pull" instead of "git update".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.