question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails on Windows if more than a few models

See original GitHub issue

This line

child_process.exec(`${engine} --datamodel=${modelB64} cli dmmf`);

throws

The command line is too long.

    at ChildProcess.exithandler (child_process.js:383:12)
    at ChildProcess.emit (events.js:400:28)
    at maybeClose (internal/child_process.js:1058:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)

I have about 30 models in a schema.prisma that’s 480 lines — so not that big, really. I can copy out the command and run it directly from the Windows terminal without trouble, i.e.

> node_modules\prisma\query-engine-windows.exe --datamodel=[bunch of Base64] cli dmmf

so pretty sure it’s just a node Windows limitation.

I am looking into whether there’s a different way to process the file.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
keonikcommented, Oct 18, 2021

Alright! Merging and promoting out to v0.5.3

1reaction
Jason-Abbottcommented, Oct 18, 2021

I removed v0.5.2 (just to be sure), deleted the SVG, and installed v0.5.3-0. It correctly generated the SVG on Windows. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexplained Windows or software behavior may be caused ...
Components of Windows or other programs no longer work. Cause. This issue may occur when deceptive software, such as spyware that is known...
Read more >
Some versions of Windows 10 display a notification to install ...
Discusses the reasons that some versions of Windows 10 display a notification to install the latest Windows version.
Read more >
Fix printer connection and printing problems in Windows
If you're trying to use your printer and run into problems, here are some steps for common printer problems to try to get...
Read more >
Troubleshoot blocked .NET Framework installations and ...
The installation of the .NET Framework 4.5 or its point releases fails with a 1603 error code or blocks when it's running in...
Read more >
Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found