Package Details: espanso-x11 2.2.1-4

Git Clone URL: https://aur.archlinux.org/espanso.git (read-only, click to copy)
Package Base: espanso
Description: Cross-platform Text Expander written in Rust (built for X11)
Upstream URL: https://github.com/espanso/espanso
Keywords: expand expander rust shortcut text xorg
Licenses: GPL-3.0-only
Conflicts: espanso
Provides: espanso
Replaces: espanso
Submitter: Scrumplex
Maintainer: carsme
Last Packager: carsme
Votes: 38
Popularity: 0.009326
First Submitted: 2019-10-03 16:10 (UTC)
Last Updated: 2024-01-28 22:33 (UTC)

Pinned Comments

carsme commented on 2024-01-21 08:25 (UTC)

NOTICE: The standalone espanso-wayland package has been merged into this pkgbase, which now builds two distinct packages:

  • espanso-x11: Espanso built for X11, replaces the former espanso package.
  • espanso-wayland: Espanso built for Wayland, identical to the former standalone espanso-wayland package.

This change simplifies maintenance and ensures the packages are kept in sync. It does however incur slightly longer build times, as Espanso is compiled twice during the build process.

Your AUR helper will hopefully handle the upgrade/migration automatically.

Let me know if you encounter any issues.

Latest Comments

1 2 3 Next › Last »

shawnyeager commented on 2024-12-11 14:13 (UTC) (edited on 2024-12-11 14:15 (UTC) by shawnyeager)

I'm running into a problem on both my Intel (ThinkPad X1 Carbon) and AMD (Framework 13) machines. Both produce the below warnings during compilation, which would seem to be the cause of the behaviors I'm experiencing. espanso service register && espanso service start produces a generic gear logo icon in the dock (see screenshot), as well as a square (failed dialog rendering?) and pixel artifacts on screen (see screenshot)

https://paste.pics/e36f3f390735788f3f1fdc2657f202c7

https://paste.pics/5ca6f0e346329d533cd2b592bf2f35bc

Partial output of yay -S espanso-wayland:

   Compiling espanso v2.2.1 (/home/shawn/.cache/yay/espanso/src/espanso-2.2.1/espanso)
warning: field `show_in_dock` is never read
  --> espanso/src/cli/mod.rs:49:7
   |
42 | pub struct CliModule {
   |            --------- field in this struct
...
49 |   pub show_in_dock: bool,
   |       ^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: method `get_default_config` is never used
  --> espanso/src/cli/worker/context/mod.rs:31:6
   |
30 | pub trait ConfigContext {
   |           ------------- method in this trait
31 |   fn get_default_config(&self) -> Arc<dyn Config>;
   |      ^^^^^^^^^^^^^^^^^^

warning: field `search_icon` is never read
  --> espanso/src/icon.rs:52:7
   |
50 | pub struct IconPaths {
   |            --------- field in this struct
51 |   pub form_icon: Option<PathBuf>,
52 |   pub search_icon: Option<PathBuf>,
   |       ^^^^^^^^^^^
   |
   = note: `IconPaths` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

warning: `espanso` (bin "espanso") generated 3 warnings
    Finished `release` profile [optimized] target(s) in 2m 11s
warning: the following packages contain code that will be rejected by a future version of Rust: fs_extra v1.2.0, html5ever v0.25.1, xml5ever v0.16.1
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`

astehlik commented on 2024-03-28 21:36 (UTC) (edited on 2024-03-30 11:18 (UTC) by astehlik)

Can you replace the dependencies wxwidgets-common and wxwidgets-gtk3 with wxwidgets only?

This would allow to either select wxwidgets-gtk3 or wxwidgets-qt5 depending on which desktop environment is used.

I tested it locally with makepkg and it seems to work.

Edit: I just realized that I manually had to create a symlink from /usr/bin/wx-config to /usr/bin/wx-config-qt to make the build work. Not sure how to solve this :(

Edit2: I created a pull request to fix this: https://github.com/espanso/espanso/pull/1918

MorganDGK commented on 2024-03-14 16:22 (UTC)

@psto the linked issue should now be resolved on dev.

carsme commented on 2024-03-09 16:39 (UTC)

@NathanU unfortunately I cannot reproduce this build failure, can you try building in a clean chroot?

NathanU commented on 2024-03-07 19:00 (UTC) (edited on 2024-03-21 21:45 (UTC) by NathanU)

espanso-wayland build fails:

error[E0658]: use of unstable library feature 'is_some_with'
   --> espanso-engine/src/process/middleware/disable.rs:131:6
    |
131 |     .is_some_and(|key| key == &event.key)
    |      ^^^^^^^^^^^
    |
    = note: see issue #93050 <https://github.com/rust-lang/rust/issues/93050> for more information

error[E0277]: can't compare `&Key` with `Key`
   --> espanso-engine/src/process/middleware/disable.rs:131:28
    |
131 |     .is_some_and(|key| key == &event.key)
    |                            ^^ no implementation for `&Key == Key`
    |
    = help: the trait `PartialEq<Key>` is not implemented for `&Key`
    = help: the trait `PartialEq` is implemented for `Key`
    = note: required for `&&Key` to implement `PartialEq<&Key>`

Some errors have detailed explanations: E0277, E0658.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `espanso-engine` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: espanso-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
espanso-wayland - exit status 4

EDIT: I just needed to update rust and the build was successful.

carsme commented on 2024-01-21 08:25 (UTC)

NOTICE: The standalone espanso-wayland package has been merged into this pkgbase, which now builds two distinct packages:

  • espanso-x11: Espanso built for X11, replaces the former espanso package.
  • espanso-wayland: Espanso built for Wayland, identical to the former standalone espanso-wayland package.

This change simplifies maintenance and ensures the packages are kept in sync. It does however incur slightly longer build times, as Espanso is compiled twice during the build process.

Your AUR helper will hopefully handle the upgrade/migration automatically.

Let me know if you encounter any issues.

psto commented on 2024-01-04 18:34 (UTC)

@carsme everything works, thank you!

This version introduces a bug for me where the Espanso Sync Tool window cannot be closed. If anyone has the same issue, you can track it on github: Espanso Sync Tool window not rendering correctly on wayland.

carsme commented on 2024-01-04 15:10 (UTC)

@psto, thanks for reporting, it should be fixed in 2.2.1-2.

psto commented on 2024-01-04 14:14 (UTC) (edited on 2024-01-04 14:15 (UTC) by psto)

Thank you for adopting the package @carsme. I have the same test error while updating as noted in the main espanso package (which you have already fixed).

running 1 test
test tests::test_migration::simple_case ... FAILED

failures:

---- tests::test_migration::simple_case stdout ----
thread 'tests::test_migration::simple_case' panicked at 'assertion failed: `(left == right)`

Diff < left / right > :
 [
<    "/config/default.yml",
     "/match/base.yml",
>    "/config/default.yml",
 ]

', espanso-migrate/src/lib.rs:231:7
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    tests::test_migration::simple_case

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 4 filtered out; finished in 0.00s

error: test failed, to rerun pass `-p espanso-migrate --lib`
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'espanso-wayland-2.2.1-1':
error: packages failed to build: espanso-wayland-2.2.1-1

fadyio commented on 2024-01-04 08:43 (UTC)

Everything is working now, thank you! @carsme