atlas-engineer / nyxt

Nyxt - the hacker's browser.
https://nyxt-browser.com/
9.68k stars 407 forks source link

the `nyxt-version` throws error #3133

Closed mmahmoudian closed 10 months ago

mmahmoudian commented 10 months ago

Describe the bug

Precise recipe to reproduce the issue

Running nyxt --version in terminal works fine, but doing M-x nyxt-version in nyxt would throw the following error:

WARN - Warning: Error on separate thread: Subprocess #<UIOP/LAUNCH-PROGRAM::PROCESS-INFO {1007ED96B3}>
 with command ("wl-copy")
exited with error code 1

image

Information

image

If you can't run show-system-information, try nyxt --system-information from a shell. It this still does not work, please provide the following:

Output when started from a shell

❯  ./nyxt
Nyxt version 4
<INFO> [11:27:26] Source location: #P"/home/mehrad/tmp/git_clones/nyxt/nyxt/"
<INFO> [11:27:26] Loading Lisp file #P"/home/mehrad/.config/nyxt/auto-config.4.lisp".
<INFO> [11:27:26] Listening to socket: #P"/run/user/1000/nyxt/nyxt.socket"

** (nyxt:1124737): WARNING **: 11:27:26.144: Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory

** (nyxt:1124737): WARNING **: 11:27:26.145: Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory

** (nyxt:1124737): WARNING **: 11:27:26.145: Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory

<INFO> [11:27:26] GTK extensions directory: #P"/home/mehrad/tmp/git_clones/nyxt/nyxt/libraries/web-extensions/"
<INFO> [11:27:26] GTK extensions directory: #P"/home/mehrad/tmp/git_clones/nyxt/nyxt/libraries/web-extensions/"
<INFO> [11:27:26] Loading #P"/home/mehrad/.local/share/nyxt/history/default.lisp".
<INFO> [11:27:26] Restoring 1 buffer from history.
<INFO> [11:27:26] Loading #P"/home/mehrad/.local/share/nyxt/auto-rules.lisp".
<INFO> [11:27:26] Loading "https://nyxt.atlas.engineer/".
<INFO> [11:27:27] Finished loading "https://nyxt.atlas.engineer/".
<WARN> [11:27:30] Warning: Error on separate thread: Subprocess #&lt;UIOP/LAUNCH-PROGRAM::PROCESS-INFO {1007ED96B3}&gt;
 with command (&quot;wl-copy&quot;)
 exited with error code 1
<WARN> [11:35:14] Warning: Error while processing the "nyxt:" URL: Subprocess #&lt;UIOP/LAUNCH-PROGRAM::PROCESS-INFO {1009E7AD63}&gt;
 with command (&quot;wl-copy&quot;)
 exited with error code 1
<INFO> [11:35:14] Failed to load URL nyxt:show-system-information in buffer 9574.
aadcg commented 10 months ago

@mmahmoudian it's a known bug, thanks for reporting. See #3101. PR #3126 will fix it.

Let me guess: you're running Xorg and have wl-clipboard installed in your system, correct?

To test the fix, you can try to build Nyxt from the update-trivial-clipboard branch. Otherwise, you may delete wl-clipboard from your system.

mmahmoudian commented 10 months ago

Let me guess: you're running Xorg and have wl-clipboard installed in your system, correct?

Correct. I'm on Plasma x11 and I also have both wl-clipboard and xsel installed.

To test the fix, you can try to build Nyxt from the update-trivial-clipboard branch.

Nice. I confirm that in the 92e041b8 (currently head of update-trivial-clipboard branch), both nyxt-version and show-system-information work correctly. (I kept both wl-clipboard and xsel installed).

Thanks 🚀

aadcg commented 10 months ago

Good, closing!