I could install in 1.11 on Linux but not run (seemingly can work, and on Windows, see below):
(pharaldsson) pkg> st
Status `~/Project.toml`
[ac6e5ff7] JuliaSyntaxHighlighting v0.1.0
[5deeb4b9] Mousetrap v0.3.3 `https://github.com/HyperSphereStudio/Mousetrap.jl#main`
[287f9a42] libmousetrap_jll v0.3.0+0 `https://github.com/Clemapfel/mousetrap_jll#main`
julia> using Mousetrap
Precompiling Mousetrap...
Info Given Mousetrap was explicitly requested, output will be shown live
ERROR: LoadError: InitError: could not load library "/home/pharaldsson/.julia/artifacts/b292ae2e313d5ab559c9838dfb8390f192b4f3b8/lib/libmousetrap_julia_binding.so"
libjulia.so.1: cannot open shared object file: No such file or directory
What might work for others is this fork, note different name with lib in front (but not for me since it’s not build for Linux only Windows, should be fixable):
(pharaldsson) pkg> add https://github.com/HyperSphereStudio/libmousetrap_jll
Updating git-repo `https://github.com/HyperSphereStudio/libmousetrap_jll`
Resolving package versions...
Updating `~/Project.toml`
[287f9a42] ~ libmousetrap_jll v0.3.0+0 `https://github.com/Clemapfel/mousetrap_jll#main` ⇒ v0.4.8+0 `https://github.com/HyperSphereStudio/libmousetrap_jll#main`
Updating `~/Manifest.toml`
[287f9a42] ~ libmousetrap_jll v0.3.0+0 `https://github.com/Clemapfel/mousetrap_jll#main` ⇒ v0.4.8+0 `https://github.com/HyperSphereStudio/libmousetrap_jll#main`
Precompiling project...
✗ Mousetrap
1 dependency successfully precompiled in 5 seconds. 177 already precompiled.
1 dependency errored.
For a report of the errors see `julia> err`. To retry use `pkg> precompile`
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:
Mousetrap
Failed to precompile Mousetrap [5deeb4b9-6e04-4da7-8b7f-c77fb1eae65e] to "/home/pharaldsson/.julia/compiled/v1.11/Mousetrap/jl_ckrovz".
ERROR: LoadError: UndefVarError: `mousetrap_julia_binding` not defined in `libmousetrap_jll`
src/wrappers/x86_64-w64-mingw32-julia_version+1.11.jl
..
“bin\libmousetrap_julia_binding-0.dll”,
This should work (maybe it does for you, I forget the reason for this error), in 1.11.5:
I fixed old error by [re]moving Manifest.toml file:
julia --project=.
(pharaldsson) pkg> add https://github.com/HyperSphereStudio/Mousetrap.jl
Updating git-repo `https://github.com/HyperSphereStudio/Mousetrap.jl`
Resolving package versions...
ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered
In my current env for 1.10.5 I’m currently testing:
(pharaldsson) pkg> add https://github.com/HyperSphereStudio/Mousetrap.jl
Updating git-repo `https://github.com/HyperSphereStudio/Mousetrap.jl`
Resolving package versions...
ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered
(@v1.10) pkg> add https://github.com/HyperSphereStudio/Mousetrap.jl
Updating git-repo `https://github.com/HyperSphereStudio/Mousetrap.jl`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package libmousetrap_jll [287f9a42]:
libmousetrap_jll [287f9a42] log:
├─libmousetrap_jll [287f9a42] has no known versions!
└─restricted to versions * by Mousetrap [5deeb4b9] — no versions left
└─Mousetrap [5deeb4b9] log:
├─possible versions are: 0.3.3 or uninstalled
└─Mousetrap [5deeb4b9] is fixed to version 0.3.3
(@v1.10) pkg> add https://github.com/HyperSphereStudio/libmousetrap_jll
Cloning git-repo `https://github.com/HyperSphereStudio/libmousetrap_jll`
Updating git-repo `https://github.com/HyperSphereStudio/libmousetrap_jll`
Resolving package versions...
Updating `~/.julia/environments/v1.10/Project.toml`
[287f9a42] + libmousetrap_jll v0.4.8+0 `https://github.com/HyperSphereStudio/libmousetrap_jll#main`
Updating `~/.julia/environments/v1.10/Manifest.toml`
[bde7f898] + GLEW_jll v2.2.0+0
[bd17208b] + GLU_jll v9.0.1+0
[cc7be9be] + OpenGLMathematics_jll v0.9.9+0
[583852a3] + libadwaita_jll v1.3.6+0
[287f9a42] + libmousetrap_jll v0.4.8+0 `https://github.com/HyperSphereStudio/libmousetrap_jll#main`
[05823500] ↑ OpenLibm_jll v0.8.1+2 ⇒ v0.8.1+4
Precompiling packages [=========================> ] 400/664
✗ Cxx
◑ JuliaFormatter
◐ TiffImages
◐ Polynomials
julia> Pkg.add(PackageSpec(url="https://github.com/JuliaLang/JuliaSyntaxHighlighting.jl", rev="dc6e5ff7"))
Updating git-repo `https://github.com/JuliaLang/JuliaSyntaxHighlighting.jl`
ERROR: Did not find rev dc6e5ff7 in repository
julia> Pkg.add(PackageSpec(url="https://github.com/JuliaLang/JuliaSyntaxHighlighting.jl", rev="b666d3c"))
Resolving package versions...
ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered