You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using genco 0.17.5 the default formatter for dart appears to be broken - it puts everything into a single line. Which in turn breaks dartc when having #[doc = in there.
Take this cargo-play example:
//# genco = "0.17.5"use genco::prelude::*;fnmain(){// Some JSON input data as a &str. Maybe this comes from the user.let tokens: dart::Tokens = quote!{/// doc comment
class Api{
final String lateString;
}};assert_eq!(tokens.to_file_vec().unwrap().len(), 4);}
Rather than 4 lines, to_file_vec wraps it all into one :( .
My cargo: cargo 1.70.0 (ec8a8a0ca 2023-04-25) but nightly doesn't show anything different.
The text was updated successfully, but these errors were encountered:
thanks, for the quick feedback @udoprog . Indeed forcing proc-macro to be at 1.0.55 (by using proc-macro2 = "=1.0.55" in my Cargo.toml) fixes the multi-line issue. Your example for docs also works well. Thanks!
feel free to close this as a duplicate of #39 then...
using genco 0.17.5 the default formatter for
dart
appears to be broken - it puts everything into a single line. Which in turn breaks dartc when having#[doc =
in there.Take this cargo-play example:
Rather than 4 lines,
to_file_vec
wraps it all into one :( .My cargo:
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
but nightly doesn't show anything different.The text was updated successfully, but these errors were encountered: