Prisma extension formatting failure and freeze after upgrade 2.7.1 and VS v1.49.1
See original GitHub issueprisma-fmt error'd during formatting. To get a more detailed output please see Prisma Language Server output. To see the output, go to View > Output from the toolbar, then select 'Prisma Language Server' in the Output panel.
and
prisma-fmt error'd during linting. thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: TypeMismatchError { expected_type: "constant literal", received_type: "string", raw: "type", span: Span { start: 7155, end: 7161 } }', libs/datamodel/core/src/transform/directives/id.rs:59:46 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
It was all working fine until the upgrade. I use formatonsave.
Now, when I run yarn prisma generate
Environment variables loaded from package.json configuration at ../prisma/.env
Error: Schema parsing
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: TypeMismatchError { expected_type: "constant literal", received_type: "string", raw: "type", span: Span { start: 7157, end: 7163 } }', libs/datamodel/core/src/transform/directives/id.rs:59:46
stack backtrace:
0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
1: core::fmt::write
2: std::io::Write::write_fmt
3: std::panicking::default_hook::{{closure}}
4: std::panicking::default_hook
5: std::panicking::rust_panic_with_hook
6: rust_begin_unwind
7: core::panicking::panic_fmt
8: core::option::expect_none_failed
9: <core::iter::adapters::Map<I,F> as core::iter::traits::iterator::Iterator>::fold
10: <datamodel::transform::directives::id::ModelLevelIdDirectiveValidator as datamodel::transform::directives::directive_validator::DirectiveValidator<datamodel::dml::model::Model>>::validate_and_apply
11: datamodel::transform::directives::directive_list_validator::DirectiveListValidator<T>::validate_and_apply
12: datamodel::transform::ast_to_dml::lift::LiftAstToDml::lift
13: datamodel::transform::ast_to_dml::validation_pipeline::ValidationPipeline::validate
14: datamodel::parse_datamodel_internal
15: datamodel::parse_datamodel_and_ignore_datasource_urls
16: query_engine::opt::PrismaOpt::datamodel
17: query_engine::cli::CliCommand::from_opt
18: query_engine::main::main::{{closure}}::main::{{closure}}
19: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
20: std::thread::local::LocalKey<T>::with
21: scoped_tls::ScopedKey<T>::set
22: async_executor::LocalExecutor::run
23: scoped_tls::ScopedKey<T>::set
24: tokio::runtime::context::enter
25: tokio::runtime::Runtime::enter
26: std::thread::local::LocalKey<T>::with
27: std::thread::local::LocalKey<T>::with
28: async_std::task::builder::Builder::blocking
29: query_engine::main
30: std::rt::lang_start::{{closure}}
31: std::rt::lang_start_internal
32: main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Prisma extension formatting failure and freeze ... - Bountysource
Prisma extension formatting failure and freeze after upgrade 2.7.1 and VS v1.49.1 ... prisma-fmt error'd during formatting. To get a more detailed ...
Read more >Error message reference - Prisma
Prisma Client throws a PrismaClientInitializationError exception if something goes wrong when the query engine is started and the connection to the database is ......
Read more >@prisma/client 2.8.0 on Node.js Yarn - NewReleases.io
New release @prisma/client version 2.8.0 on Node.js Yarn. ... Prisma extension formatting failure and freeze after upgrade 2.7.1 and VS v1.49.1 ...
Read more >Assessment report - Breyanzi - European Medicines Agency |
The applicant applied for the following indication: Breyanzi is indicated for the treatment of adult patients with relapsed or refractory ...
Read more >Search Results - CVE
An issue was discovered in the Linux kernel through 6.0.6. drivers/char/pcmcia/scr24x_cs.c has a race condition and resultant use-after-free if a physically ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you, for such a fast turnaround.
Yesss!
It works after I remove the above. Formatting works, without it.