Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

research docs.rs build failed with ICE #18

Closed
wants to merge 5 commits into from
Closed

Conversation

sksat
Copy link
Owner

@sksat sksat commented Jan 3, 2022

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

怪奇現象はあったもののdocs.rsの状況は再現

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

src/lib.rspub mod schemaだけでも再現するな

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

いやまずなんでUnrecognized optionがソースコードの内容如何で出る念

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

JSON Schemaのdescriptionが悪さしてそうだぞ!!!!!

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

まあ,いかにも嫌なかんじのdescriptionだけども

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

cargo expandが爆発して草なんだが

❯ cargo expand
   Compiling rdfmt v0.1.3 (/home/sksat/prog/rdfmt-rs)
warning: unused imports: `Deserialize`, `Serialize`
 --> src/lib.rs:1:13
  |
1 | use serde::{Deserialize, Serialize};
  |             ^^^^^^^^^^^  ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default
    Finished dev [unoptimized + debuginfo] target(s) in 0.47s

memory allocation of 7881122326526296064 bytes failed
fish: Job 1, 'cargo expand' terminated by signal SIGABRT (Abort)

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

かといってcargo rustc --profile=check -- -Zunpretty=expandedしたやつを突っ込んだら通るな...

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

rebaseしてPoCからunit testも削除

Repository owner deleted a comment from github-actions bot Jan 3, 2022
@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

いやまだcould not find markdown in source出とるな

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

いやまだcould not find markdown in source出とるな

これローカルだと出たり出なかったりするのでカス

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

とりあえず,

  • rustccould not find markdown in sourceを吐いたり吐かなかったりする
  • rustdocのUnrecognized option: 'crate-version'

の2つの問題がある

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

  • それはそれとしてビルドは普通にできる(のでコメントとして違法なものが吐かれているとかではない)
  • cargo rustc --profile=check -- -Zunpretty=expandedで展開したやつを書くと問題無い
  • cargo expandは爆発する

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

cargo expandが爆発するのは普通に気になるんだよな

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

根本的な問題として,nightly使いたいわけでは一切無いのでdocs.rsでstableが使えればええというのもある

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

あー,あとあれか,jsonschemaを使う前にsedで消毒しておくなどはある

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

\u003cとかの直後に空白1つ刺したら大丈夫だなー

@sksat
Copy link
Owner Author

sksat commented Jan 3, 2022

により元の問題は解決したため閉じ

@sksat sksat closed this Jan 3, 2022
@sksat sksat deleted the nightly-doc-build-ice branch March 13, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant