nvarner / typst-lsp

[Deprecated] An early language server for Typst, plus a VS Code extension
MIT License
1.21k stars 78 forks source link

`flake.nix` fails to build #249

Closed ok-nick closed 1 year ago

ok-nick commented 1 year ago

It seems like the flake is running tests after the build causing it to fail... why is it testing?

Minimized log:

error: builder for '/nix/store/8bldlzpsw8yyw6wmk2a3s3l9x8m3zyi1-typst-lsp-0.9.2.drv' failed with exit code 101;
       last 10 log lines:
       >     2: failed to lookup address information: Temporary failure in name resolution
       >
       >
       > failures:
       >     workspace::package::external::manager::test::local_package
       >     workspace::package::external::remote_repo::test::full_download
       >
       > test result: FAILED. 15 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
       >
       > error: test failed, to rerun pass `--bin typst-lsp`
       For full logs, run 'nix log /nix/store/8bldlzpsw8yyw6wmk2a3s3l9x8m3zyi1-typst-lsp-0.9.2.drv'.
error: 1 dependencies of derivation '/nix/store/cm05lyqiinl7arqzpp0cy59azzm9pijl-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5rkayv9y4is208pi1ghimpvbvdrb6wqd-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1n778zq7wl8plv7z8a5clyq49w6jjdgi-typst-lsp-0.9.2-fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/arp020z8r26nd8y98kqjw5jcgs9ly6yb-home-manager-generation.drv' failed to build

Full log:

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/n6j2h83akdw5f54r8xd8vyidz9nqjfa6-source
source root is source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing cargoBuildHook
++ env CC_x86_64-unknown-linux-gnu=/nix/store/b5mkki8bysygaf7a01jpj88zrxibkrv4-gcc-wrapper-12.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/st>
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling autocfg v1.1.0
   Compiling libc v0.2.147
   Compiling cfg-if v1.0.0
   Compiling serde v1.0.183
   Compiling serde_derive v1.0.183
   Compiling syn v1.0.109
   Compiling version_check v0.9.4
   Compiling once_cell v1.18.0
   Compiling memchr v2.5.0
   Compiling futures-core v0.3.28
   Compiling pin-project-lite v0.2.12
   Compiling scopeguard v1.2.0
   Compiling unicode-xid v0.2.4
   Compiling itoa v1.0.9
   Compiling simd-adler32 v0.3.7
   Compiling futures-sink v0.3.28
   Compiling siphasher v0.3.10
   Compiling crossbeam-utils v0.8.16
   Compiling libm v0.2.7
   Compiling log v0.4.19
   Compiling crc32fast v1.3.2
   Compiling adler v1.0.2
   Compiling stable_deref_trait v1.2.0
   Compiling miniz_oxide v0.7.1
   Compiling bitflags v1.3.2
   Compiling ahash v0.7.6
   Compiling smallvec v1.11.0
   Compiling num-traits v0.2.16
   Compiling memoffset v0.9.0
   Compiling lock_api v0.4.10
   Compiling crossbeam-epoch v0.9.15
   Compiling bytes v1.4.0
   Compiling bytemuck v1.13.1
   Compiling ryu v1.0.15
   Compiling arrayvec v0.7.4
   Compiling unicode-bidi v0.3.13
   Compiling quote v1.0.32
   Compiling flate2 v1.0.26
   Compiling syn v2.0.28
   Compiling num_cpus v1.16.0
   Compiling cc v1.0.82
   Compiling getrandom v0.2.10
   Compiling mio v0.8.8
   Compiling socket2 v0.5.3
   Compiling hashbrown v0.12.3
   Compiling slab v0.4.8
   Compiling indexmap v1.9.3
   Compiling tracing-core v0.1.31
   Compiling futures-channel v0.3.28
   Compiling float-cmp v0.9.0
   Compiling futures-task v0.3.28
   Compiling rayon-core v1.11.0
   Compiling strict-num v0.1.1
   Compiling crossbeam-deque v0.8.3
   Compiling kurbo v0.9.5
   Compiling crossbeam-channel v0.5.8
   Compiling futures-util v0.3.28
   Compiling tinyvec_macros v0.1.1
   Compiling tinyvec v1.6.0
   Compiling ring v0.16.20
   Compiling num-integer v0.1.45
   Compiling slotmap v1.0.6
   Compiling spin v0.5.2
   Compiling unicode-general-category v0.6.0
   Compiling untrusted v0.7.1
   Compiling pin-utils v0.1.0
   Compiling heck v0.4.1
   Compiling either v1.9.0
   Compiling rustversion v1.0.14
   Compiling futures-io v0.3.28
   Compiling ttf-parser v0.18.1
   Compiling base64 v0.21.2
   Compiling xmlparser v0.13.5
   Compiling fnv v1.0.7
   Compiling percent-encoding v2.3.0
   Compiling svgtypes v0.11.0
   Compiling rctree v0.5.0
   Compiling rayon v1.7.0
   Compiling unicode-normalization v0.1.22
   Compiling roxmltree v0.18.0
   Compiling usvg-tree v0.32.0
   Compiling form_urlencoded v1.2.0
   Compiling memmap2 v0.5.10
   Compiling aho-corasick v1.0.3
   Compiling simplecss v0.2.1
   Compiling fdeflate v0.3.0
   Compiling regex-syntax v0.7.4
   Compiling unicode-script v0.5.5
   Compiling cobs v0.2.3
   Compiling synstructure v0.12.6
   Compiling unicode-bidi-mirroring v0.1.0
   Compiling litemap v0.7.0
   Compiling hashbrown v0.14.0
   Compiling writeable v0.5.2
   Compiling weezl v0.1.7
   Compiling unicode-ccc v0.1.2
   Compiling jpeg-decoder v0.3.0
   Compiling rustybuzz v0.7.0
   Compiling postcard v1.0.6
   Compiling fontdb v0.13.1
   Compiling png v0.17.9
   Compiling rosvgtree v0.3.0
   Compiling idna v0.4.0
   Compiling bitflags v2.3.3
   Compiling nanorand v0.7.0
   Compiling regex-automata v0.3.6
   Compiling spin v0.9.8
   Compiling num-rational v0.4.1
   Compiling color_quant v1.1.0
   Compiling serde_json v1.0.104
   Compiling unicode-vo v0.1.0
   Compiling parking_lot_core v0.9.8
   Compiling httparse v1.8.0
   Compiling displaydoc v0.2.4
   Compiling tokio-macros v2.1.0
   Compiling tracing-attributes v0.1.26
   Compiling futures-macro v0.3.28
   Compiling pin-project-internal v1.1.3
   Compiling zerofrom-derive v0.1.2
   Compiling yoke-derive v0.7.1
   Compiling zerovec-derive v0.9.4
   Compiling tokio v1.31.0
   Compiling icu_provider_macros v1.2.0
   Compiling data-url v0.2.0
   Compiling pin-project v1.1.3
   Compiling imagesize v0.11.0
   Compiling tracing v0.1.37
   Compiling usvg-parser v0.32.0
   Compiling flume v0.10.14
   Compiling regex v1.9.3
   Compiling usvg-text-layout v0.32.0
   Compiling gif v0.12.0
   Compiling url v2.4.0
   Compiling zerofrom v0.1.2
   Compiling http v0.2.9
   Compiling psm v0.1.21
   Compiling num-bigint v0.4.3
   Compiling yoke v0.7.1
   Compiling proc-macro-error-attr v1.0.4
   Compiling zune-inflate v0.2.54
   Compiling arrayref v0.3.7
   Compiling linked-hash-map v0.5.6
   Compiling zerovec v0.9.4
   Compiling thiserror v1.0.44
   Compiling half v2.2.1
   Compiling unscanny v0.1.0
   Compiling lebe v0.5.2
   Compiling paste v1.0.14
   Compiling bit_field v0.10.2
   Compiling tower-service v0.3.2
   Compiling equivalent v1.0.1
   Compiling deranged v0.3.7
   Compiling rustix v0.38.8
   Compiling pico-args v0.5.0
   Compiling rustls v0.21.6
   Compiling tokio-util v0.7.8
   Compiling xmlwriter v0.1.0
   Compiling time-core v0.1.1
   Compiling tinystr v0.7.1
   Compiling usvg v0.32.0
   Compiling exr v1.7.0
   Compiling icu_locid v1.2.0
   Compiling indexmap v2.0.0
   Compiling time v0.3.25
   Compiling yaml-rust v0.4.5
   Compiling icu_provider v1.2.0
   Compiling tiny-skia-path v0.9.0
   Compiling sct v0.7.0
   Compiling rustls-webpki v0.101.3
   Compiling comemo-macros v0.3.0
   Compiling strum_macros v0.24.3
   Compiling thiserror-impl v1.0.44
   Compiling tiff v0.9.0
   Compiling serde_spanned v0.6.3
   Compiling toml_datetime v0.6.3
   Compiling stacker v0.1.15
   Compiling qoi v0.4.1
   Compiling rgb v0.8.36
   Compiling proc-macro-error v1.0.4
   Compiling phf_shared v0.11.2
   Compiling linux-raw-sys v0.4.5
   Compiling winnow v0.5.6
   Compiling try-lock v0.2.4
   Compiling lazy_static v1.4.0
   Compiling unicode-segmentation v1.10.1
   Compiling safemem v0.3.3
   Compiling iana-time-zone v0.1.57
   Compiling rand_core v0.6.4
   Compiling bit-vec v0.6.3
   Compiling byteorder v1.4.3
   Compiling strum v0.24.1
   Compiling bit-set v0.5.3
   Compiling chrono v0.4.26
   Compiling image v0.24.7
   Compiling line-wrap v0.1.1
   Compiling want v0.3.1
   Compiling phf v0.11.2
   Compiling comemo v0.3.0
   Compiling tiny-skia v0.9.1
   Compiling h2 v0.3.20
   Compiling unic-langid-impl v0.9.1
   Compiling icu_collections v1.2.0
   Compiling http-body v0.4.5
   Compiling toml_edit v0.19.14
   Compiling ecow v0.1.1
   Compiling socket2 v0.4.9
   Compiling pdf-writer v0.8.0
   Compiling quick-xml v0.29.0
   Compiling same-file v1.0.6
   Compiling httpdate v1.0.2
   Compiling unicode-math-class v0.1.0
   Compiling az v1.2.1
   Compiling async-trait v0.1.73
   Compiling ppv-lite86 v0.2.17
   Compiling numerals v0.1.4
   Compiling biblatex v0.8.0
   Compiling hyper v0.14.27
   Compiling rand_chacha v0.3.1
   Compiling svg2pdf v0.6.0
   Compiling toml v0.7.6
   Compiling tokio-rustls v0.24.1
   Compiling typst-syntax v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling plist v1.5.0
   Compiling enum-ordinalize v3.1.13
   Compiling walkdir v2.3.3
   Compiling resvg v0.32.0
   Compiling is-terminal v0.4.9
   Compiling unic-langid v0.9.1
   Compiling isolang v2.3.0
   Compiling fancy-regex v0.11.0
   Compiling rand v0.8.5
   Compiling oklab v1.0.0
   Compiling futures-executor v0.3.28
   Compiling webpki v0.22.0
   Compiling typst-macros v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling serde_repr v0.1.16
   Compiling pixglyph v0.1.0
   Compiling bincode v1.3.3
   Compiling csv-core v0.1.10
   Compiling if_chain v1.0.2
   Compiling chinese-variant v1.0.9
   Compiling option-ext v0.2.0
   Compiling subsetter v0.1.1
   Compiling utf8_iter v1.0.3
   Compiling anyhow v1.0.72
   Compiling xmp-writer v0.1.0
   Compiling tower-layer v0.3.2
   Compiling is_ci v1.1.1
   Compiling typst v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling supports-color v2.0.0
   Compiling tower v0.4.13
   Compiling icu_segmenter v1.2.1
   Compiling syntect v5.1.0
   Compiling dirs-sys v0.4.1
   Compiling chinese-number v0.7.2
   Compiling csv v1.2.2
   Compiling lsp-types v0.94.1
   Compiling lipsum v0.9.0
   Compiling webpki-roots v0.22.6
   Compiling futures v0.3.28
   Compiling auto_impl v1.1.0
   Compiling hyper-rustls v0.24.1
   Compiling icu_properties v1.2.0
   Compiling sharded-slab v0.1.4
   Compiling dashmap v5.5.0
   Compiling parking_lot v0.12.1
   Compiling icu_provider_adapters v1.2.0
   Compiling icu_provider_blob v1.2.0
   Compiling serde_yaml v0.8.26
   Compiling tokio-stream v0.1.14
   Compiling tower-lsp-macros v0.9.0
   Compiling strum_macros v0.25.2
   Compiling serde_urlencoded v0.7.1
   Compiling rustls-pemfile v1.0.3
   Compiling filetime v0.2.22
   Compiling xattr v1.0.1
   Compiling thread_local v1.1.7
   Compiling encoding_rs v0.8.32
   Compiling ipnet v2.8.0
   Compiling hypher v0.1.2
   Compiling typed-arena v2.0.2
   Compiling mime v0.3.17
   Compiling owo-colors v3.5.0
   Compiling tracing-subscriber v0.3.17
   Compiling tokio-tar v0.3.1
   Compiling internment v0.7.1
   Compiling reqwest v0.11.18
   Compiling strum v0.25.0
   Compiling bpaf v0.9.4
   Compiling dirs v5.0.1
   Compiling async-compression v0.4.1
   Compiling itertools v0.11.0
   Compiling memmap2 v0.7.1
   Compiling elsa v1.9.0
   Compiling tower-lsp v0.20.0
   Compiling hayagriva v0.3.0
   Compiling typst-library v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling typst-lsp v0.9.2 (/build/source)
    Finished release [optimized] target(s) in 4m 05s
Executing cargoInstallPostBuildHook
Finished cargoInstallPostBuildHook
Finished cargoBuildHook
buildPhase completed in 4 minutes 5 seconds
@nix { "action": "setPhase", "phase": "checkPhase" }
running tests
Executing cargoCheckHook
++ cargo test -j 16 --release --target x86_64-unknown-linux-gnu --frozen -- --test-threads=16
   Compiling ring v0.16.20
   Compiling psm v0.1.21
   Compiling temp-dir v0.1.11
   Compiling rustls v0.21.6
   Compiling stacker v0.1.15
   Compiling typst v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling sct v0.7.0
   Compiling rustls-webpki v0.101.3
   Compiling webpki v0.22.0
   Compiling webpki-roots v0.22.6
   Compiling tokio-rustls v0.24.1
   Compiling hyper-rustls v0.24.1
   Compiling reqwest v0.11.18
   Compiling typst-library v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling typst-lsp v0.9.2 (/build/source)
    Finished release [optimized] target(s) in 56.72s
     Running unittests src/main.rs (target/x86_64-unknown-linux-gnu/release/deps/typst_lsp-b6d048215efb1336)

running 17 tests
test ext::uri_test::join_rooted_escape ... ok
test ext::uri_test::with_extension_utf8 ... ok
test server::semantic_tokens::typst_tokens::test::ensure_not_too_many_modifiers ... ok
test ext::uri_test::join_rooted_utf8 ... ok
test ext::uri_test::with_extension ... ok
test ext::uri_test::join_rooted ... ok
   Compiling rustls-webpki v0.101.3
   Compiling webpki v0.22.0
   Compiling webpki-roots v0.22.6
   Compiling tokio-rustls v0.24.1
   Compiling hyper-rustls v0.24.1
   Compiling reqwest v0.11.18
   Compiling typst-library v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling typst-lsp v0.9.2 (/build/source)
    Finished release [optimized] target(s) in 56.72s
     Running unittests src/main.rs (target/x86_64-unknown-linux-gnu/release/deps/typst_lsp-b6d048215efb1336)

running 17 tests
test ext::uri_test::join_rooted_escape ... ok
test ext::uri_test::with_extension_utf8 ... ok
test server::semantic_tokens::typst_tokens::test::ensure_not_too_many_modifiers ... ok
test ext::uri_test::join_rooted_utf8 ... ok
test ext::uri_test::with_extension ... ok
test ext::uri_test::join_rooted ... ok
   Compiling rustls-webpki v0.101.3
   Compiling webpki v0.22.0
   Compiling webpki-roots v0.22.6
   Compiling tokio-rustls v0.24.1
   Compiling hyper-rustls v0.24.1
   Compiling reqwest v0.11.18
   Compiling typst-library v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling typst-lsp v0.9.2 (/build/source)
    Finished release [optimized] target(s) in 56.72s
     Running unittests src/main.rs (target/x86_64-unknown-linux-gnu/release/deps/typst_lsp-b6d048215efb1336)

running 17 tests
test ext::uri_test::join_rooted_escape ... ok
test ext::uri_test::with_extension_utf8 ... ok
test server::semantic_tokens::typst_tokens::test::ensure_not_too_many_modifiers ... ok
test ext::uri_test::join_rooted_utf8 ... ok
test ext::uri_test::with_extension ... ok
test ext::uri_test::join_rooted ... ok
test ext::uri_test::path_segments_decode ... ok
test workspace::fs::local::test_conversions::path_uri_path ... ok
test ext::uri_test::make_relative_rooted_not_relative ... ok
test ext::uri_test::make_relative_rooted ... ok
test lsp_typst_boundary::test::utf16_position_to_utf8_offset ... ok
test lsp_typst_boundary::test::utf8_offset_to_utf16_position ... ok
test ext::uri_test::path_segments_decode_utf8 ... ok
test ext::uri_test::make_relative_rooted_utf8 ... ok
test workspace::fs::local::test::read ... ok
test workspace::package::external::manager::test::local_package ... FAILED
test workspace::package::external::remote_repo::test::full_download ... FAILED

failures:

---- workspace::package::external::manager::test::local_package stdout ----
thread 'workspace::package::external::manager::test::local_package' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, >
...skipping...
   Compiling rustls-webpki v0.101.3
   Compiling webpki v0.22.0
   Compiling webpki-roots v0.22.6
   Compiling tokio-rustls v0.24.1
   Compiling hyper-rustls v0.24.1
   Compiling reqwest v0.11.18
   Compiling typst-library v0.7.0 (https://github.com/typst/typst.git?tag=v0.7.0#da8367e1)
   Compiling typst-lsp v0.9.2 (/build/source)
    Finished release [optimized] target(s) in 56.72s
     Running unittests src/main.rs (target/x86_64-unknown-linux-gnu/release/deps/typst_lsp-b6d048215efb1336)

running 17 tests
test ext::uri_test::join_rooted_escape ... ok
test ext::uri_test::with_extension_utf8 ... ok
test server::semantic_tokens::typst_tokens::test::ensure_not_too_many_modifiers ... ok
test ext::uri_test::join_rooted_utf8 ... ok
test ext::uri_test::with_extension ... ok
test ext::uri_test::join_rooted ... ok
test ext::uri_test::path_segments_decode ... ok
test workspace::fs::local::test_conversions::path_uri_path ... ok
test ext::uri_test::make_relative_rooted_not_relative ... ok
test ext::uri_test::make_relative_rooted ... ok
test lsp_typst_boundary::test::utf16_position_to_utf8_offset ... ok
test lsp_typst_boundary::test::utf8_offset_to_utf16_position ... ok
test ext::uri_test::path_segments_decode_utf8 ... ok
test ext::uri_test::make_relative_rooted_utf8 ... ok
test workspace::fs::local::test::read ... ok
test workspace::package::external::manager::test::local_package ... FAILED
test workspace::package::external::remote_repo::test::full_download ... FAILED

failures:

---- workspace::package::external::manager::test::local_package stdout ----
thread 'workspace::package::external::manager::test::local_package' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, >
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
nvarner commented 1 year ago

This should be fixed by #238