[gnome-builder: 96/139] jedi: port to libide-gui worker design
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder: 96/139] jedi: port to libide-gui worker design
- Date: Thu, 10 Jan 2019 04:25:23 +0000 (UTC)
commit 13c7922d6369a45c1d819b7789ac26afb7f51498
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 9 17:28:02 2019 -0800
jedi: port to libide-gui worker design
src/plugins/jedi/jedi.plugin | 11 ++++++-----
src/plugins/jedi/jedi_plugin.py | 9 ++-------
src/plugins/jedi/meson.build | 4 ++--
3 files changed, 10 insertions(+), 14 deletions(-)
---
diff --git a/src/plugins/jedi/jedi.plugin b/src/plugins/jedi/jedi.plugin
index b99fc5985..091e361eb 100644
--- a/src/plugins/jedi/jedi.plugin
+++ b/src/plugins/jedi/jedi.plugin
@@ -1,9 +1,10 @@
[Plugin]
-Module=jedi_plugin
-Loader=python3
-Name=Python Auto-Completion (Jedi)
-Description=Provides autocompletion features for the Python programming language.
Authors=Christian Hergert <christian hergert me>
-Copyright=Copyright © 2015 Christian Hergert
Builtin=true
+Copyright=Copyright © 2015-2019 Christian Hergert
+Description=Provides autocompletion features for the Python programming language.
+Loader=python3
+Module=jedi_plugin
+Name=Python Auto-Completion (Jedi)
+X-Builder-ABI=@PACKAGE_ABI@
X-Completion-Provider-Languages=python,python3
diff --git a/src/plugins/jedi/jedi_plugin.py b/src/plugins/jedi/jedi_plugin.py
index 985c1f605..119832e88 100644
--- a/src/plugins/jedi/jedi_plugin.py
+++ b/src/plugins/jedi/jedi_plugin.py
@@ -4,7 +4,7 @@
# jedi_plugin.py
#
# Copyright 2015 Elad Alfassa <elad fedoraproject org>
-# Copyright 2015 Christian Hergert <chris dronelabs com>
+# Copyright 2015-2019 Christian Hergert <chris dronelabs com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -35,11 +35,6 @@ import os.path
import sqlite3
import threading
-gi.require_version('GIRepository', '2.0')
-gi.require_version('Gtk', '3.0')
-gi.require_version('GtkSource', '4')
-gi.require_version('Ide', '1.0')
-
from collections import OrderedDict
from gi.importer import DynamicImporter
@@ -484,7 +479,7 @@ class JediCompletionProvider(Ide.Object, Ide.CompletionProvider):
begin, end = buffer.get_bounds()
- task.filename = buffer.get_file().get_file().get_path()
+ task.filename = buffer.get_file().get_path()
task.line = iter.get_line()
task.line_offset = iter.get_line_offset()
#if task.line_offset > 0:
diff --git a/src/plugins/jedi/meson.build b/src/plugins/jedi/meson.build
index 55ce52d6e..ef7a4e113 100644
--- a/src/plugins/jedi/meson.build
+++ b/src/plugins/jedi/meson.build
@@ -1,11 +1,11 @@
-if get_option('with_jedi')
+if get_option('plugin_jedi')
install_data('jedi_plugin.py', install_dir: plugindir)
configure_file(
input: 'jedi.plugin',
output: 'jedi.plugin',
- copy: true,
+ configuration: config_h,
install: true,
install_dir: plugindir,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]