torhovland / surway

An OSM surveyor app.
Apache License 2.0
17 stars 7 forks source link

Error from HTML pipeline (fresh install and run) #47

Open michaelhaig opened 10 months ago

michaelhaig commented 10 months ago

trunk version 0.17.5 sass version 1.69.5

git clone to D:\Work\surway

I don't know how to determine the error

error from HTML pipeline

Caused by:
    0: error from asset pipeline
    1: cargo artifacts not found for target crate

from the following output

$ trunk serve --verbose
2023-11-28T16:04:38.965917Z  INFO  starting build
2023-11-28T16:04:38.969266Z  INFO spawning asset pipelines
2023-11-28T16:04:39.126027Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\android-chrome-512x512.png"
2023-11-28T16:04:39.126048Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\browserconfig.xml"
2023-11-28T16:04:39.126056Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\apple-touch-icon.png"
2023-11-28T16:04:39.126069Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\favicon.ico"
2023-11-28T16:04:39.126104Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\safari-pinned-tab.svg"
2023-11-28T16:04:39.126071Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\favicon-16x16.png"
2023-11-28T16:04:39.126081Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\favicon-32x32.png"
2023-11-28T16:04:39.126092Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\mstile-150x150.png"
2023-11-28T16:04:39.126111Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\site.webmanifest"
2023-11-28T16:04:39.126029Z  INFO copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\android-chrome-192x192.png"
2023-11-28T16:04:39.126179Z  INFO copying directory path="\\\\?\\D:\\Work\\surway\\src\\icons"
2023-11-28T16:04:39.126207Z  INFO building surway
2023-11-28T16:04:39.127104Z DEBUG cargo args args=["build", "--target=wasm32-unknown-unknown", "--manifest-path", "D:\\Work\\surway\\Cargo.toml"]
2023-11-28T16:04:39.127266Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\android-chrome-512x512.png"
2023-11-28T16:04:39.127804Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\browserconfig.xml"
2023-11-28T16:04:39.128281Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\apple-touch-icon.png"
2023-11-28T16:04:39.127846Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\favicon.ico"
2023-11-28T16:04:39.128091Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\favicon-16x16.png"
2023-11-28T16:04:39.128110Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\safari-pinned-tab.svg"
2023-11-28T16:04:39.128181Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\mstile-150x150.png"
2023-11-28T16:04:39.127836Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\favicon-32x32.png"
2023-11-28T16:04:39.128536Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\site.webmanifest"
2023-11-28T16:04:39.128548Z  INFO finished copying file path="\\\\?\\D:\\Work\\surway\\src\\favicon\\android-chrome-192x192.png"
2023-11-28T16:04:39.134366Z  INFO finished copying directory path="\\\\?\\D:\\Work\\surway\\src\\icons"
2023-11-28T16:04:39.438231Z  INFO using system installed binary app=sass version=1.69.5 compiled with dart2js 3.1.5
2023-11-28T16:04:39.438273Z  INFO compiling sass/scss path="\\\\?\\D:\\Work\\surway\\src\\styles\\index.scss"
2023-11-28T16:04:39.438282Z DEBUG sass args args=["--no-source-map", "-s", "expanded", "D:\\Work\\surway\\src\\styles\\index.scss", "D:\\Work\\surway\\dist\\.stage\\index.css"]
2023-11-28T16:04:39.438327Z  INFO using system installed binary app=sass version=1.69.5 compiled with dart2js 3.1.5
2023-11-28T16:04:39.438355Z  INFO compiling sass/scss path="\\\\?\\D:\\Work\\surway\\src\\styles\\spectre\\spectre.scss"
2023-11-28T16:04:39.438363Z DEBUG sass args args=["--no-source-map", "-s", "expanded", "D:\\Work\\surway\\src\\styles\\spectre\\spectre.scss", "D:\\Work\\surway\\dist\\.stage\\spectre.css"]
    Finished dev [optimized + debuginfo] target(s) in 0.34s
warning: the following packages contain code that will be rejected by a future version of Rust: console_log v0.2.0, quick-xml v0.22.0, stdweb v0.4.20
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
2023-11-28T16:04:39.628991Z  INFO fetching cargo artifacts
2023-11-28T16:04:39.817966Z  INFO finished compiling sass/scss path="\\\\?\\D:\\Work\\surway\\src\\styles\\index.scss"
2023-11-28T16:04:40.129312Z ERROR  error
error from HTML pipeline

Caused by:
    0: error from asset pipeline
    1: cargo artifacts not found for target crate
2023-11-28T16:04:40.137948Z  INFO  serving static assets at -> /
2023-11-28T16:04:40.139209Z  INFO  server listening at http://127.0.0.1:8088
2023-11-28T16:04:40.247274Z  INFO finished compiling sass/scss path="\\\\?\\D:\\Work\\surway\\src\\styles\\spectre\\spectre.scss"
2023-11-28T16:04:47.051795Z DEBUG received shutdown signal
2023-11-28T16:04:47.051853Z DEBUG watcher system has shut down
2023-11-28T16:04:47.051860Z DEBUG server is shutting down
michaelhaig commented 10 months ago

Upon investigating this a little more, it appears that the trunk 'application' is looking for a bin artifact from cargo so it can put it in the right place (where ever that may be), but the Cargo.toml for this whole crate is building a library (i.e. a bunch of DLL's). So (essentially) this crate doesn't build or run and certainly not runnable by trunk. It might be worth revisiting this code and correcting it.