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

text! not found #513

Closed
musicformellons opened this issue Mar 29, 2024 · 1 comment
Closed

text! not found #513

musicformellons opened this issue Mar 29, 2024 · 1 comment

Comments

@musicformellons
Copy link

musicformellons commented Mar 29, 2024

When running cargo loco generate scaffold answer answer_text:text! question_id:int sequential_priority_answer:decimal, I get:

...
Writing src/models/_entities/prelude.rs
Warning: can't set `wrap_comments = true`, unstable features are only available in nightly channel.
Warning: can't set `comment_width = 80`, unstable features are only available in nightly channel.
Warning: can't set `format_strings = true`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
Warning: can't set `wrap_comments = true`, unstable features are only available in nightly channel.
Warning: can't set `comment_width = 80`, unstable features are only available in nightly channel.
Warning: can't set `format_strings = true`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
Warning: can't set `wrap_comments = true`, unstable features are only available in nightly channel.
Warning: can't set `comment_width = 80`, unstable features are only available in nightly channel.
Warning: can't set `format_strings = true`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
Warning: can't set `wrap_comments = true`, unstable features are only available in nightly channel.
Warning: can't set `comment_width = 80`, unstable features are only available in nightly channel.
Warning: can't set `format_strings = true`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
Warning: can't set `wrap_comments = true`, unstable features are only available in nightly channel.
Warning: can't set `comment_width = 80`, unstable features are only available in nightly channel.
Warning: can't set `format_strings = true`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Crate`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
... Done.
2024-03-29T13:15:37.698589Z  WARN app: loco_rs::boot:  environment=development
Error: type: text! not found. try any of: ["string!", "ts", "string^", "jsonb", "uuid", "int", "int!", "int^", "json!", "string", "bool!", "ts!", "text", "bool", "json", "jsonb!", "uuid!"]

Whereas text! is included in docs...?! under 'migrations' header.

Ah, found this issue. So is 'scaffold' still a thing?

And I don't quite understand why I get these warnings, looks like users are assumed to use nightly?

@jondot
Copy link
Contributor

jondot commented Apr 9, 2024

yes scaffold is still a thing
we initially started with a very "wide" model in terms of field types and a more minimalistic scaffold. i've refactored the type mappings so that now scaffold and model use the same variety of types.

for the warnings -- we use some advanced fmt features, that are available on nightly only unfortunately, you can ignore those or use nightly if it is possible.

This should be resolved via #526

@jondot jondot closed this as completed Apr 9, 2024
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

No branches or pull requests

2 participants