zed icon indicating copy to clipboard operation
zed copied to clipboard

Left control key isn't recognized on X11

Open JonasFovea opened this issue 1 year ago • 9 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

Using Ubuntu 22.04 with X11, my left control key is not recognized by the program. I've experienced this with other applications too, so I guess that's a problem with the X-server integration. The right control key works just fine.

Environment

OS: Ubuntu 22.04.4 LTS x86_64 Kernel: 6.5.0-41-generic DE: GNOME 42.9 CPU: Intel i7-6700K (8) @ 4.400GHz GPU: NVIDIA GeForce GTX 1070 Memory: 5278MiB / 15940MiB

X-server: version number: 11.0 X.Org version: 1.21.1.4

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

JonasFovea avatar Jul 11 '24 17:07 JonasFovea

As it's happening in other applications, it's probably a bug in your configuration somewhere. Let us know if this turns out to be our fault!

mikayla-maki avatar Jul 11 '24 20:07 mikayla-maki

Okay, I may have communicated that unclearly. It happened in one other application, which was the proton version of a steam game.

All other applications work fine with my left control key.

I suspect that the steam proton layer just has an incomplete x11 integration, causing this. Hence, it would probably also be a bug in zed.

JonasFovea avatar Jul 11 '24 20:07 JonasFovea

@JonasFovea that sounds frustrating!

If you want to see what Zed sees when you press that key try cloning this repo and running cargo run -p gpui --example input. It should output what we see from the platform layer.

ConradIrwin avatar Jul 11 '24 20:07 ConradIrwin

@ConradIrwin thanks! I'll try that tomorrow.

JonasFovea avatar Jul 11 '24 20:07 JonasFovea

@ConradIrwin do I have to configure something prior to compiling zed? Running the cargo command you told me, and also just cargo build --release, fail with the following errors:

error: linking with `clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="..." VSLANG="1033" "clang" "-m64" "/tmp/rustcEVbFYI/symbols.o" ".../zed/target/debug/build/generic-array-a7d4f8702d34e111/build_script_build-a7d4f8702d34e111.build_script_build.d7e178933a71a941-cgu.0.rcgu.o" ".../zed/target/debug/build/generic-array-a7d4f8702d34e111/build_script_build-a7d4f8702d34e111.dofw1mm36x16eei.rcgu.o" "-Wl,--as-needed" "-L" ".../zed/target/debug/deps" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" ".../zed/target/debug/deps/libversion_check-53a8965af34cf162.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d5189b81a4fa4d36.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6a4779412a873200.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c88c426dd6780435.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e74540b31113a555.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-8751b61bd13c15cf.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a8b99dba9f449259.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f0068d76172a0372.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-c16dfaf47799564e.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-bfa26dd63e299db5.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-75a2330a693e738f.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-76779dce1f7ab63d.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-01c5cc588623cb35.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-07bb9745ec737292.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6eacdcc91004cefb.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ae2488b58226c836.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-52acaddcaaba04c6.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-326b78eac9ecd050.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-307ebf19f0f13d30.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d9076ee5964191bf.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" ".../zed/target/debug/build/generic-array-a7d4f8702d34e111/build_script_build-a7d4f8702d34e111" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-fuse-ld=mold"
  = note: clang: error: invalid linker name in argument '-fuse-ld=mold'
          

error: could not compile `generic-array` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="..." VSLANG="1033" "clang" "-m64" "/tmp/rustcptXq3X/symbols.o" ".../zed/target/debug/build/serde-baf873d0a162715f/build_script_build-baf873d0a162715f.build_script_build.9837e6ae937a1460-cgu.0.rcgu.o" ".../zed/target/debug/build/serde-baf873d0a162715f/build_script_build-baf873d0a162715f.2wvcg5d9nxkcpae4.rcgu.o" "-Wl,--as-needed" "-L" ".../zed/target/debug/deps" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d5189b81a4fa4d36.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6a4779412a873200.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c88c426dd6780435.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e74540b31113a555.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-8751b61bd13c15cf.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a8b99dba9f449259.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f0068d76172a0372.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-c16dfaf47799564e.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-bfa26dd63e299db5.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-75a2330a693e738f.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-76779dce1f7ab63d.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-01c5cc588623cb35.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-07bb9745ec737292.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6eacdcc91004cefb.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ae2488b58226c836.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-52acaddcaaba04c6.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-326b78eac9ecd050.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-307ebf19f0f13d30.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d9076ee5964191bf.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" ".../zed/target/debug/build/serde-baf873d0a162715f/build_script_build-baf873d0a162715f" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-fuse-ld=mold"
  = note: clang: error: invalid linker name in argument '-fuse-ld=mold'
          

error: could not compile `serde` (build script) due to 1 previous error
error: linking with `clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="..." VSLANG="1033" "clang" "-m64" "/tmp/rustcnOM1KM/symbols.o" ".../zed/target/debug/build/crossbeam-utils-e3f7955aaf79b25a/build_script_build-e3f7955aaf79b25a.build_script_build.95fa8209222fa252-cgu.0.rcgu.o" ".../zed/target/debug/build/crossbeam-utils-e3f7955aaf79b25a/build_script_build-e3f7955aaf79b25a.build_script_build.95fa8209222fa252-cgu.1.rcgu.o" ".../zed/target/debug/build/crossbeam-utils-e3f7955aaf79b25a/build_script_build-e3f7955aaf79b25a.4enaef2tv09i3d8d.rcgu.o" "-Wl,--as-needed" "-L" ".../zed/target/debug/deps" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d5189b81a4fa4d36.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6a4779412a873200.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c88c426dd6780435.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e74540b31113a555.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-8751b61bd13c15cf.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a8b99dba9f449259.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f0068d76172a0372.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-c16dfaf47799564e.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-bfa26dd63e299db5.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-75a2330a693e738f.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-76779dce1f7ab63d.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-01c5cc588623cb35.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-07bb9745ec737292.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6eacdcc91004cefb.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ae2488b58226c836.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-52acaddcaaba04c6.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-326b78eac9ecd050.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-307ebf19f0f13d30.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d9076ee5964191bf.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" ".../zed/target/debug/build/crossbeam-utils-e3f7955aaf79b25a/build_script_build-e3f7955aaf79b25a" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-fuse-ld=mold"
  = note: clang: error: invalid linker name in argument '-fuse-ld=mold'
          

error: linking with `clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="..." VSLANG="1033" "clang" "-m64" "/tmp/rustcTn5A40/symbols.o" ".../zed/target/debug/build/proc-macro2-79915526114171c3/build_script_build-79915526114171c3.build_script_build.b81ade3a17c9671e-cgu.0.rcgu.o" ".../zed/target/debug/build/proc-macro2-79915526114171c3/build_script_build-79915526114171c3.build_script_build.b81ade3a17c9671e-cgu.1.rcgu.o" ".../zed/target/debug/build/proc-macro2-79915526114171c3/build_script_build-79915526114171c3.6rp8kq2p6wct9n2.rcgu.o" "-Wl,--as-needed" "-L" ".../zed/target/debug/deps" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d5189b81a4fa4d36.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6a4779412a873200.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c88c426dd6780435.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e74540b31113a555.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-8751b61bd13c15cf.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a8b99dba9f449259.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f0068d76172a0372.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-c16dfaf47799564e.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-bfa26dd63e299db5.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-75a2330a693e738f.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-76779dce1f7ab63d.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-01c5cc588623cb35.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-07bb9745ec737292.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6eacdcc91004cefb.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ae2488b58226c836.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-52acaddcaaba04c6.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-326b78eac9ecd050.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-307ebf19f0f13d30.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d9076ee5964191bf.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" ".../zed/target/debug/build/proc-macro2-79915526114171c3/build_script_build-79915526114171c3" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-fuse-ld=mold"
  = note: clang: error: invalid linker name in argument '-fuse-ld=mold'
          

error: could not compile `crossbeam-utils` (build script) due to 1 previous error
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: linking with `clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="..." VSLANG="1033" "clang" "-m64" "/tmp/rustcETp1tB/symbols.o" ".../zed/target/debug/build/libc-9741c644761a66ad/build_script_build-9741c644761a66ad.build_script_build.ee1d551357e52958-cgu.0.rcgu.o" ".../zed/target/debug/build/libc-9741c644761a66ad/build_script_build-9741c644761a66ad.build_script_build.ee1d551357e52958-cgu.1.rcgu.o" ".../zed/target/debug/build/libc-9741c644761a66ad/build_script_build-9741c644761a66ad.build_script_build.ee1d551357e52958-cgu.2.rcgu.o" ".../zed/target/debug/build/libc-9741c644761a66ad/build_script_build-9741c644761a66ad.build_script_build.ee1d551357e52958-cgu.3.rcgu.o" ".../zed/target/debug/build/libc-9741c644761a66ad/build_script_build-9741c644761a66ad.63hpylngxg7unli.rcgu.o" "-Wl,--as-needed" "-L" ".../zed/target/debug/deps" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d5189b81a4fa4d36.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6a4779412a873200.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c88c426dd6780435.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e74540b31113a555.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-8751b61bd13c15cf.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a8b99dba9f449259.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f0068d76172a0372.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-c16dfaf47799564e.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-bfa26dd63e299db5.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-75a2330a693e738f.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-76779dce1f7ab63d.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-01c5cc588623cb35.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-07bb9745ec737292.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6eacdcc91004cefb.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ae2488b58226c836.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-52acaddcaaba04c6.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-326b78eac9ecd050.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-307ebf19f0f13d30.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d9076ee5964191bf.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" ".../zed/target/debug/build/libc-9741c644761a66ad/build_script_build-9741c644761a66ad" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-fuse-ld=mold"
  = note: clang: error: invalid linker name in argument '-fuse-ld=mold'
          

error: could not compile `libc` (build script) due to 1 previous error
error: linking with `clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="..." VSLANG="1033" "clang" "-m64" "/tmp/rustcj2y2TS/symbols.o" ".../zed/target/debug/build/libc-d67366cca198739b/build_script_build-d67366cca198739b.build_script_build.d4edf0f5f11b46b8-cgu.0.rcgu.o" ".../zed/target/debug/build/libc-d67366cca198739b/build_script_build-d67366cca198739b.build_script_build.d4edf0f5f11b46b8-cgu.1.rcgu.o" ".../zed/target/debug/build/libc-d67366cca198739b/build_script_build-d67366cca198739b.build_script_build.d4edf0f5f11b46b8-cgu.2.rcgu.o" ".../zed/target/debug/build/libc-d67366cca198739b/build_script_build-d67366cca198739b.build_script_build.d4edf0f5f11b46b8-cgu.3.rcgu.o" ".../zed/target/debug/build/libc-d67366cca198739b/build_script_build-d67366cca198739b.5aqq02h9z85hoqck.rcgu.o" "-Wl,--as-needed" "-L" ".../zed/target/debug/deps" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d5189b81a4fa4d36.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6a4779412a873200.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c88c426dd6780435.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e74540b31113a555.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-8751b61bd13c15cf.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a8b99dba9f449259.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f0068d76172a0372.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-c16dfaf47799564e.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-bfa26dd63e299db5.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-75a2330a693e738f.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-76779dce1f7ab63d.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-01c5cc588623cb35.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-07bb9745ec737292.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6eacdcc91004cefb.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ae2488b58226c836.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-52acaddcaaba04c6.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-326b78eac9ecd050.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-307ebf19f0f13d30.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d9076ee5964191bf.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" ".../zed/target/debug/build/libc-d67366cca198739b/build_script_build-d67366cca198739b" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-fuse-ld=mold"
  = note: clang: error: invalid linker name in argument '-fuse-ld=mold'
          

error: could not compile `libc` (build script) due to 1 previous error
error: linking with `clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="..." VSLANG="1033" "clang" "-m64" "/tmp/rustcfBys3u/symbols.o" ".../zed/target/debug/build/typenum-afea8fb961f2304f/build_script_main-afea8fb961f2304f.build_script_main.a4cae474d18d7ddc-cgu.0.rcgu.o" ".../zed/target/debug/build/typenum-afea8fb961f2304f/build_script_main-afea8fb961f2304f.build_script_main.a4cae474d18d7ddc-cgu.1.rcgu.o" ".../zed/target/debug/build/typenum-afea8fb961f2304f/build_script_main-afea8fb961f2304f.build_script_main.a4cae474d18d7ddc-cgu.2.rcgu.o" ".../zed/target/debug/build/typenum-afea8fb961f2304f/build_script_main-afea8fb961f2304f.build_script_main.a4cae474d18d7ddc-cgu.3.rcgu.o" ".../zed/target/debug/build/typenum-afea8fb961f2304f/build_script_main-afea8fb961f2304f.5d9utuc9pooi9uc6.rcgu.o" "-Wl,--as-needed" "-L" ".../zed/target/debug/deps" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d5189b81a4fa4d36.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6a4779412a873200.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c88c426dd6780435.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e74540b31113a555.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-8751b61bd13c15cf.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a8b99dba9f449259.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f0068d76172a0372.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-c16dfaf47799564e.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-bfa26dd63e299db5.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-75a2330a693e738f.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-76779dce1f7ab63d.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-01c5cc588623cb35.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-07bb9745ec737292.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-6eacdcc91004cefb.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ae2488b58226c836.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-52acaddcaaba04c6.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-326b78eac9ecd050.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-307ebf19f0f13d30.rlib" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d9076ee5964191bf.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" ".../.rustup/toolchains/1.79-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" ".../zed/target/debug/build/typenum-afea8fb961f2304f/build_script_main-afea8fb961f2304f" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-fuse-ld=mold"
  = note: clang: error: invalid linker name in argument '-fuse-ld=mold'
          

error: could not compile `typenum` (build script) due to 1 previous error

Note: I've removed my path variable from the output and replaced some directories with ...

I've cloned from main on commit 607ad6de3c3cbeba9f4af1dafae827d78a6fccf3

JonasFovea avatar Jul 12 '24 15:07 JonasFovea

@JonasFovea you may have to run ./script/linux to install build dependencies (it looks like mold is missing on your system)

ConradIrwin avatar Jul 15 '24 15:07 ConradIrwin

@ConradIrwin that did the trick.

Now running this little keystroke GUI, it seems as if I have to press the key combined with lctrl twice.

So the fist stroke of ^A is ignored, but while still holding lctrl and then repeating A, one instance of ^A is printed in the GUI.

  • ^A -> nothing
  • ^A``^A -> nothing
  • ^AA -> ^A

Playing around with this, I've noticed that I turned on the locate pointer acessibility option, which highlights the mouse cursor on a double lctrl. Turns out, this was somehow interfering with the recognition of the first lctrl. Deactivating this option seems to solve the problem.

But still, I think there must be a way to both have this activated and have a working lctrl, since other applications don't have a problem recognizing the keystroke in the first place.

JonasFovea avatar Jul 15 '24 16:07 JonasFovea

I'm facing the same problem, turning off pointer accessibility solves the problem.

mohammed-alaa avatar Aug 15 '24 12:08 mohammed-alaa

Playing around with this, I've noticed that I turned on the locate pointer acessibility option, which highlights the mouse cursor on a double lctrl. Turns out, this was somehow interfering with the recognition of the first lctrl. Deactivating this option seems to solve the problem.

Thanks for this discovery!

It fixed my problem with having to press the lctrl (left Ctrl) key twice for commands to register. (It also fixed launching Ulauncher, so it may not be specifically related to Zed). I'm using Ubuntu 24.04.

kematzy avatar Aug 21 '24 01:08 kematzy

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Mar 11 '25 11:03 github-actions[bot]

This issue was closed due to inactivity. If you're still experiencing this problem, please open a new issue with a link to this issue.

github-actions[bot] avatar Mar 18 '25 15:03 github-actions[bot]