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

Error: [libs/datamodel/connectors/dml/src/datamodel.rs:162:14] Every RelationInfo should have a complementary RelationInfo on the opposite relation field. #5342

Closed
divyenduz opened this issue Jan 29, 2021 · 3 comments
Assignees
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: introspection
Milestone

Comments

@divyenduz
Copy link
Contributor

Command: prisma introspect
Version: 2.15.0
Binary Version: e51dc3b5a9ee790a07104bec1c9477d51740fe54
Report: https://prisma-errors.netlify.app/report/12692
OS: x64 darwin 20.2.0

JS Stacktrace:

Error: [libs/datamodel/connectors/dml/src/datamodel.rs:162:14] Every RelationInfo should have a complementary RelationInfo on the opposite relation field.
    at ChildProcess.<anonymous> (/Users/inhwason/Desktop/git/todo-nest/node_modules/@prisma/cli/build/index.js:4780:28)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:467:12)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)

Rust Stacktrace:

   0: backtrace::backtrace::trace
   1: backtrace::capture::Backtrace::new
   2: user_facing_errors::Error::new_in_panic_hook
   3: user_facing_errors::panic_hook::set_panic_hook::{{closure}}
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic_handler::{{closure}}
   6: std::sys_common::backtrace::__rust_end_short_backtrace
   7: _rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::option::expect_failed
  10: dml::datamodel::Datamodel::find_model_by_relation_field_ref
  11: <datamodel::transform::attributes::relation::RelationAttributeValidator as datamodel::transform::attributes::attribute_validator::AttributeValidator<dml::field::Field>>::serialize
  12: <core::iter::adapters::flatten::Flatten<I> as core::iter::traits::iterator::Iterator>::next
  13: <alloc::vec::Vec<T> as alloc::vec::SpecFromIter<T,I>>::from_iter
  14: datamodel::transform::dml_to_ast::lower::LowerDmlToAst::lower_field
  15: datamodel::transform::dml_to_ast::lower::LowerDmlToAst::lower_model
  16: datamodel::transform::dml_to_ast::lower::LowerDmlToAst::lower
  17: datamodel::render_datamodel_and_config_to_string
  18: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  19: <futures_util::compat::compat03as01::Compat<Fut> as futures::future::Future>::poll
  20: <futures::future::either::Either<A,B> as futures::future::Future>::poll
  21: <futures::future::then::Then<A,B,F> as futures::future::Future>::poll
  22: <futures::future::either::Either<A,B> as futures::future::Future>::poll
  23: futures::task_impl::Spawn<T>::enter::{{closure}}
  24: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  25: introspection_engine::main
  26: std::sys_common::backtrace::__rust_begin_short_backtrace
  27: std::rt::lang_start::{{closure}}
  28: std::rt::lang_start_internal
  29: std::rt::lang_start

@divyenduz divyenduz added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. topic: introspection team/schema Issue for team Schema. labels Jan 29, 2021
@albertoperdomo
Copy link
Contributor

To be reviewed.

@divyenduz
Copy link
Contributor Author

This is no longer present in the Introspection CI.

@albertoperdomo albertoperdomo modified the milestones: 2.17.0, 2.18.0 Feb 17, 2021
@divyenduz divyenduz removed their assignment Feb 18, 2021
@do4gr
Copy link
Member

do4gr commented Feb 25, 2021

This should be solved by us splitting the parsing and formatting step here prisma/prisma-engines#1662

@do4gr do4gr closed this as completed Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: introspection
Projects
None yet
Development

No branches or pull requests

5 participants