-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: import declarations may only appear at top level of a module #280
Comments
Good morning @mzur :) I'll try to get this "import declarations" error message for you On question for you below. The logs are very long. I'm trying to narrow down the location of the slippery-fish-elusive "import declarations" error message. Question. In those steps to reproduce above at #280 (comment) When would this error message be likely be added to the logs? For example:
In other words, when does GNOME validate the extension declarations? |
The extension is loaded when GNOME Shell is started, i.e. after the login screen. You should be able to find the error if you search for the "import declarations" message text in the log. However, once I also encountered an extension error message that didn't show up in the usual gnome-shell log. I don't remember where else I found it, unfortunately. Maybe you could try searching all of You could also try to change the multi-line import here to a single-line import. Maybe this causes issues in a newer GNOME Shell version. |
Intro
I created this ticket to facilitate communications about pull request #270. I'm assuming that it is easier to resolve a challenge if there is one challenge per ticket.
Steps to reproduce error
Replaced only the file
thumbnailsBox.js
with commit cb29bcc for gnome-shell-wsmatrix version 38Using Extension Manager, try activating gnome-shell-wsmatrix version 38 with commit cb29bcc This video shows this step at https://vk.com/video-225763421_456239018
The first challenge is that the extension can't be activated. The number 1 in this screenshot below shows this first challenge.
The second challenge is when trying to activate the extension, this error message is display within Extension Manager
import declarations may only appear at top level of a module
. The number 2 in this screenshot above shows error message. This video shows this error at https://vk.com/video-225763421_456239018The needed end result is that users are able to activate the extension without error message. So that this other related challenge is potentitally resolved about Dragging a window to 2nd row or more fails in Overview #274
Used
• gnome-shell-wsmatrix 38 with commit cb29bcc
• Debian 12 Bookworm 64 bits
• GNOME 43.9
• Extension Manager 0.4.3
• Wayland
What I tried that did not work
Deactivated all GNOME extensions. Except gnome-shell-wsmatrix 38 with commit cb29bcc
Fresh GNOME session
Restart device
Used gnome-shell-wsmatrix 38, replaced only the file
thumbnailsBox.js
with commit cb29bccReplaced all files and all folders of gnome-shell-wsmatrix 38. Which included patched file
thumbnailsBox.js
.The text was updated successfully, but these errors were encountered: