schultek / jaspr

Modern web framework for building websites in Dart. Supports SPAs and SSR.
https://jasprpad.schultek.de
MIT License
1k stars 59 forks source link

fix: ProcessException on jaspr serve/build #142

Closed Jlgtri closed 6 months ago

Jlgtri commented 7 months ago

Fix ProcessException: The system cannot find the file specified. via adding runInShell: true argument.

Description

There is an exception while running on Windows, probably for incorrect flutter permissions provided on my pc. I couldn't figure it out on my system directly, so I got it fixed by adding runInShell: true argument to Process.start.

Unhandled exception:
ProcessException: The system cannot find the file specified.

  Command: flutter build web -t C:\Coding\flutter\flutter_embedding\.dart_tool/jaspr/flutter_target.dart --output=C:\Coding\flutter\flutter_embedding\build/flutter
#0      _ProcessImpl._start (dart:io-patch/process_patch.dart:402:33)
#1      Process.start (dart:io-patch/process_patch.dart:38:20)
#2      FlutterHelper.buildFlutter (package:jaspr_cli/src/helpers/flutter_helpers.dart:38:40)
<asynchronous suspension>

Type of Change

Ready Checklist

If you need help, consider asking for advice on the #contribute channel on Discord.

github-actions[bot] commented 7 months ago

Package Version Report

No packages have been updated.

schultek commented 7 months ago

I would like to understand better what the cause of the error is. Any ideas?

schultek commented 6 months ago

Added this together with some other changes.