unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#45272: GNOME Builder: Global search, autocompletion, documentation don't work
@ 2020-12-16 17:24 Luis Felipe via Bug reports for GNU Guix
  2020-12-18 11:53 ` Leo Prikler
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Luis Felipe via Bug reports for GNU Guix @ 2020-12-16 17:24 UTC (permalink / raw)
  To: 45272

Various features described in GNOME Builder documentation (https://builder.readthedocs.io/en/latest/exploring.html) don't seem to work, even though their corresponding extensions are enabled (in Settings → Extensions).

So far, I've only identified Global search, autocompletion, documentation on hover. I tried these in Python code only.

I assumed these features are failing for the same reason, so I'm reporting them together.


## Steps to reproduce: Search for a function in your Python project

1. Start GNOME Builder
2. Click on the "Select a Folder..." button
3. Locate the folder of your project and click "Open"
4. Press Ctrl + . to focus the search box
5. Start typing the name of a function you know is defined in the project source code

## Expected result

You see the function suggested in the results.

## Unexpected result

The suggested results don't include the function. Searching only seems to suggest filenames that include your search terms; definitions in the source code, like classes and functions, seem to be excluded.



## Steps to reproduce: Autocompletion in a Python file

1. Open a Python file
2. Type "Hello". (that's hello in double quotes, followed by a dot)

## Expected result

A list of methods for string objects is displayed after you type the dot.

## Unexpected result

The list is not displayed at all.



## Steps to reproduce: Documentation on hovering over a Python method

1. Open a Python file
2. Type "Hello {}".format("World")
3. Hover over the "format" method or place the caret on it and press F2

## Expected result

A box appears over the method displaying its documentation.

## Unexpected result

The box is not displayed at all.



## System information

guix 08d8c2d
gnome-builder 3.36.1



## Additional information

I see the following output when I start gnome-builder from a terminal:

```
$ gnome-builder
sh: getent: command not found
11:21:17.5362                   ide-application-plugins[ 18651]: CRITICAL: Cannot enable Python 3 plugins: Typelib file for namespace 'Dazzle', version '1.0' not found
11:21:17.5405                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5407                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5407                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5407                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5407                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5408                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5408                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5409                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5409                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5410                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5410                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5410                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5411                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5411                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5411                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5412                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5412                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5412                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5419                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5420                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5480                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5505                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5507                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:17.5507                                   libpeas[ 18651]:  WARNING: The 'python3' plugin loader has not been enabled
11:21:19.8003                        ide-device-manager[ 18651]:  WARNING: GbpQemuDeviceProvider: binfmt is missing from /proc/mounts
11:21:20.0893               gbp-sysprof-workspace-addin[ 18651]:  WARNING: Sysprof-3 is not supported, will not enable profiler: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Sysprof3 was not provided by any .service files
```


---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#45272: GNOME Builder: Global search, autocompletion, documentation don't work
  2020-12-16 17:24 bug#45272: GNOME Builder: Global search, autocompletion, documentation don't work Luis Felipe via Bug reports for GNU Guix
@ 2020-12-18 11:53 ` Leo Prikler
  2020-12-18 14:16 ` bug#45272: [PATCH] gnu: gnome-builder: Disable jedi plugin Leo Prikler
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Leo Prikler @ 2020-12-18 11:53 UTC (permalink / raw)
  To: Luis Felipe; +Cc: 45272

Hello Luis,

After long trial and error I have failed to find a way of enabling this
feature.  Getting the necessary environment variables into GNOME
Builder is doable, albeit not without issues.  In particular, naively
setting GI_TYPELIB_PATH from build – which would normally be the sane
thing to do – sets you up for a runtime error.  However, even after
you've somehow weasled the correct paths into all the environment
variables, getting them propagated into the IDE workers is a nightmare,
that I wish no one.  I tried deleting the line, that unsets the
environment, I tried explicitly setting it to false; nothing works.

If someone else wants to take this bug, go ahead, otherwise I suggest
dropping Python support from our builds of GNOME Builder so as to not
cause confusion in such a manner.

Regards,
Leo

Am Mittwoch, den 16.12.2020, 17:24 +0000 schrieb Luis Felipe:
> Various features described in GNOME Builder documentation (
> https://builder.readthedocs.io/en/latest/exploring.html) don't seem
> to work, even though their corresponding extensions are enabled (in
> Settings → Extensions).
> 
> So far, I've only identified Global search, autocompletion,
> documentation on hover. I tried these in Python code only.
> 
> I assumed these features are failing for the same reason, so I'm
> reporting them together.
> 
> 
> ## Steps to reproduce: Search for a function in your Python project
> 
> 1. Start GNOME Builder
> 2. Click on the "Select a Folder..." button
> 3. Locate the folder of your project and click "Open"
> 4. Press Ctrl + . to focus the search box
> 5. Start typing the name of a function you know is defined in the
> project source code
> 
> ## Expected result
> 
> You see the function suggested in the results.
> 
> ## Unexpected result
> 
> The suggested results don't include the function. Searching only
> seems to suggest filenames that include your search terms;
> definitions in the source code, like classes and functions, seem to
> be excluded.
> 
> 
> 
> ## Steps to reproduce: Autocompletion in a Python file
> 
> 1. Open a Python file
> 2. Type "Hello". (that's hello in double quotes, followed by a dot)
> 
> ## Expected result
> 
> A list of methods for string objects is displayed after you type the
> dot.
> 
> ## Unexpected result
> 
> The list is not displayed at all.
> 
> 
> 
> ## Steps to reproduce: Documentation on hovering over a Python method
> 
> 1. Open a Python file
> 2. Type "Hello {}".format("World")
> 3. Hover over the "format" method or place the caret on it and press
> F2
> 
> ## Expected result
> 
> A box appears over the method displaying its documentation.
> 
> ## Unexpected result
> 
> The box is not displayed at all.
> 
> 
> 
> ## System information
> 
> guix 08d8c2d
> gnome-builder 3.36.1
> 
> 
> 
> ## Additional information
> 
> I see the following output when I start gnome-builder from a
> terminal:
> 
> ```
> $ gnome-builder
> sh: getent: command not found
> 11:21:17.5362                   ide-application-plugins[ 18651]:
> CRITICAL: Cannot enable Python 3 plugins: Typelib file for namespace
> 'Dazzle', version '1.0' not found
> 11:21:17.5405                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5407                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5407                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5407                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5407                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5408                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5408                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5409                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5409                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5410                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5410                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5410                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5411                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5411                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5411                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5412                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5412                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5412                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5419                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5420                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5480                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5505                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5507                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:17.5507                                   libpeas[
> 18651]:  WARNING: The 'python3' plugin loader has not been enabled
> 11:21:19.8003                        ide-device-manager[
> 18651]:  WARNING: GbpQemuDeviceProvider: binfmt is missing from
> /proc/mounts
> 11:21:20.0893               gbp-sysprof-workspace-addin[
> 18651]:  WARNING: Sysprof-3 is not supported, will not enable
> profiler: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The
> name org.gnome.Sysprof3 was not provided by any .service files
> ```
> 
> 
> ---
> Luis Felipe López Acevedo
> https://luis-felipe.gitlab.io/
> 





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#45272: [PATCH] gnu: gnome-builder: Disable jedi plugin.
  2020-12-16 17:24 bug#45272: GNOME Builder: Global search, autocompletion, documentation don't work Luis Felipe via Bug reports for GNU Guix
  2020-12-18 11:53 ` Leo Prikler
@ 2020-12-18 14:16 ` Leo Prikler
  2020-12-18 16:49   ` Ludovic Courtès
  2020-12-18 17:01 ` bug#45272: [PATCH v2] " Leo Prikler
  2020-12-19 11:50 ` bug#45272: [PATCH v3] " Leo Prikler
  3 siblings, 1 reply; 8+ messages in thread
From: Leo Prikler @ 2020-12-18 14:16 UTC (permalink / raw)
  To: 45272; +Cc: luis.felipe.la

As pointed out in #45272, it is broken.

* gnu/packages/gnome.scm (gnome-builder)[#:configure-flags] Add
-Dplugin_jedi=false.
---
 gnu/packages/gnome.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 5a166d1b86..9f37c605be 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11876,6 +11876,7 @@ libraries.  Applications do not need to be recompiled--or even restarted.")
                                "-Dplugin_clang=false"
                                "-Dplugin_flatpak=false"
                                "-Dplugin_glade=false"
+                               "-Dplugin_jedi=false"
                                ;; ... except this one.
                                "-Dplugin_update_manager=false")
        #:phases
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* bug#45272: [PATCH] gnu: gnome-builder: Disable jedi plugin.
  2020-12-18 14:16 ` bug#45272: [PATCH] gnu: gnome-builder: Disable jedi plugin Leo Prikler
@ 2020-12-18 16:49   ` Ludovic Courtès
  2020-12-18 17:10     ` Leo Prikler
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2020-12-18 16:49 UTC (permalink / raw)
  To: Leo Prikler; +Cc: 45272, luis.felipe.la

Hi!

Leo Prikler <leo.prikler@student.tugraz.at> skribis:

> As pointed out in #45272, it is broken.

Please add this as a comment above “-Dplugin_jedi=false” (refer to the
bug by URL so there’s no ambiguity).

> * gnu/packages/gnome.scm (gnome-builder)[#:configure-flags] Add
> -Dplugin_jedi=false.

Otherwise LGTM, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#45272: [PATCH v2] gnu: gnome-builder: Disable jedi plugin.
  2020-12-16 17:24 bug#45272: GNOME Builder: Global search, autocompletion, documentation don't work Luis Felipe via Bug reports for GNU Guix
  2020-12-18 11:53 ` Leo Prikler
  2020-12-18 14:16 ` bug#45272: [PATCH] gnu: gnome-builder: Disable jedi plugin Leo Prikler
@ 2020-12-18 17:01 ` Leo Prikler
  2020-12-19 11:50 ` bug#45272: [PATCH v3] " Leo Prikler
  3 siblings, 0 replies; 8+ messages in thread
From: Leo Prikler @ 2020-12-18 17:01 UTC (permalink / raw)
  To: 45272; +Cc: luis.felipe.la

As pointed out in #45272, it is broken.

* gnu/packages/gnome.scm (gnome-builder)[#:configure-flags] Add
-Dplugin_jedi=false.
---
 gnu/packages/gnome.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 5a166d1b86..a533480b42 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11876,6 +11876,7 @@ libraries.  Applications do not need to be recompiled--or even restarted.")
                                "-Dplugin_clang=false"
                                "-Dplugin_flatpak=false"
                                "-Dplugin_glade=false"
+                               "-Dplugin_jedi=false"   ; disabled due to #45272
                                ;; ... except this one.
                                "-Dplugin_update_manager=false")
        #:phases
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* bug#45272: [PATCH] gnu: gnome-builder: Disable jedi plugin.
  2020-12-18 16:49   ` Ludovic Courtès
@ 2020-12-18 17:10     ` Leo Prikler
  0 siblings, 0 replies; 8+ messages in thread
From: Leo Prikler @ 2020-12-18 17:10 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 45272, luis.felipe.la

Am Freitag, den 18.12.2020, 17:49 +0100 schrieb Ludovic Courtès:
> Hi!
> 
> Leo Prikler <leo.prikler@student.tugraz.at> skribis:
> 
> > As pointed out in #45272, it is broken.
> 
> Please add this as a comment above “-Dplugin_jedi=false” (refer to
> the
> bug by URL so there’s no ambiguity).
I feel like a side comment as in v2 would be wiser, so as to not
disrupt the sentence started before and to keep the sentiment, that it
should be enabled once someone has figured out, how to do so.  
Of course, the side does not offer enough space for the full URL, so
that's bad.  Would it suffice to add the URL to the commit message, so
one could `git blame` me?

Regards,
Leo





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#45272: [PATCH v3] gnu: gnome-builder: Disable jedi plugin.
  2020-12-16 17:24 bug#45272: GNOME Builder: Global search, autocompletion, documentation don't work Luis Felipe via Bug reports for GNU Guix
                   ` (2 preceding siblings ...)
  2020-12-18 17:01 ` bug#45272: [PATCH v2] " Leo Prikler
@ 2020-12-19 11:50 ` Leo Prikler
  2020-12-21 14:30   ` Ludovic Courtès
  3 siblings, 1 reply; 8+ messages in thread
From: Leo Prikler @ 2020-12-19 11:50 UTC (permalink / raw)
  To: 45272; +Cc: luis.felipe.la

As pointed out in #45272, it is broken.

* gnu/packages/gnome.scm (gnome-builder)[#:configure-flags] Add
-Dplugin_jedi=false.
---
 gnu/packages/gnome.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 5a166d1b86..f90c0b92a6 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11876,6 +11876,9 @@ libraries.  Applications do not need to be recompiled--or even restarted.")
                                "-Dplugin_clang=false"
                                "-Dplugin_flatpak=false"
                                "-Dplugin_glade=false"
+                               ;; XXX: This one has been shown not to work in
+                               ;;      <https://issues.guix.gnu.org/45272>
+                               "-Dplugin_jedi=false"
                                ;; ... except this one.
                                "-Dplugin_update_manager=false")
        #:phases
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* bug#45272: [PATCH v3] gnu: gnome-builder: Disable jedi plugin.
  2020-12-19 11:50 ` bug#45272: [PATCH v3] " Leo Prikler
@ 2020-12-21 14:30   ` Ludovic Courtès
  0 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2020-12-21 14:30 UTC (permalink / raw)
  To: Leo Prikler; +Cc: luis.felipe.la, 45272-done

Hi,

Leo Prikler <leo.prikler@student.tugraz.at> skribis:

> As pointed out in #45272, it is broken.
>
> * gnu/packages/gnome.scm (gnome-builder)[#:configure-flags] Add
> -Dplugin_jedi=false.

Perfect.  :-)

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-12-21 14:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 17:24 bug#45272: GNOME Builder: Global search, autocompletion, documentation don't work Luis Felipe via Bug reports for GNU Guix
2020-12-18 11:53 ` Leo Prikler
2020-12-18 14:16 ` bug#45272: [PATCH] gnu: gnome-builder: Disable jedi plugin Leo Prikler
2020-12-18 16:49   ` Ludovic Courtès
2020-12-18 17:10     ` Leo Prikler
2020-12-18 17:01 ` bug#45272: [PATCH v2] " Leo Prikler
2020-12-19 11:50 ` bug#45272: [PATCH v3] " Leo Prikler
2020-12-21 14:30   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).