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

module template throws error and crashes CLI #225

Closed
exaby73 opened this issue Jun 18, 2022 · 9 comments
Closed

module template throws error and crashes CLI #225

exaby73 opened this issue Jun 18, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@exaby73
Copy link

exaby73 commented Jun 18, 2022

Logs
Unhandled exception:
ProcessException: No such file or directory
  Command: ./setup-tables
#0      _ProcessImpl._start (dart:io-patch/process_patch.dart:401:33)
#1      Process.start (dart:io-patch/process_patch.dart:38:20)
#2      CommandLineTools.createTables (file:///Users/nabeelparkar/.pub-cache/hosted/pub.dartlang.org/serverpod_cli-0.9.8/bin/util/command_line_tools.dart:58:33)
<asynchronous suspension>
#3      performCreate (file:///Users/nabeelparkar/.pub-cache/hosted/pub.dartlang.org/serverpod_cli-0.9.8/bin/create/create.dart:340:5)
<asynchronous suspension>
#4      main (file:///Users/nabeelparkar/.pub-cache/hosted/pub.dartlang.org/serverpod_cli-0.9.8/bin/serverpod_cli.dart:220:9)
<asynchronous suspension>
@vlidholt vlidholt added the bug Something isn't working label Jun 20, 2022
@vlidholt
Copy link
Collaborator

Thanks! Will fix.

@vlidholt vlidholt added this to Version 1.0 - Essentials 🔥 in Serverpod Roadmap Jun 20, 2022
@yahu1031
Copy link
Contributor

yahu1031 commented Jul 11, 2022

@exaby73 Yes, Windows doesn't have support completely and therefore there is no setup-tables file in windows yet. I'm on it. I can make a PR once it is done.

@yahu1031
Copy link
Contributor

#177

@exaby73
Copy link
Author

exaby73 commented Jul 11, 2022

@yahu1031 Thanks for the reply. Though I should note, I am running this on an M1 Macbook Air.

@yahu1031
Copy link
Contributor

Okie i can check once and also please try posting the full logs.

@exaby73
Copy link
Author

exaby73 commented Jul 11, 2022

Here's the full logs :)

Command

serverpod create -t module app

Complete logs

Creating project app...
  /Users/nabeelparkar/dev/tmp/app/app_server/generated/protocol.yaml
  /Users/nabeelparkar/dev/tmp/app/app_server/generated/tables.pgsql
  /Users/nabeelparkar/dev/tmp/app/app_server/CHANGELOG.md
  /Users/nabeelparkar/dev/tmp/app/app_server/config/generator.yaml
  /Users/nabeelparkar/dev/tmp/app/app_server/README.md
  /Users/nabeelparkar/dev/tmp/app/app_server/pubspec.yaml
  /Users/nabeelparkar/dev/tmp/app/app_server/lib/module.dart
  /Users/nabeelparkar/dev/tmp/app/app_server/lib/src/generated/endpoints.dart
  /Users/nabeelparkar/dev/tmp/app/app_server/lib/src/generated/protocol.dart
  /Users/nabeelparkar/dev/tmp/app/app_server/lib/src/generated/module_class.dart
  /Users/nabeelparkar/dev/tmp/app/app_server/lib/src/endpoints/module_endpoint.dart
  /Users/nabeelparkar/dev/tmp/app/app_server/lib/src/protocol/module_class.yaml
  /Users/nabeelparkar/dev/tmp/app/app_server/analysis_options.yaml
  /Users/nabeelparkar/dev/tmp/app/app_server/gitignore
  /Users/nabeelparkar/dev/tmp/app/app_client/pubspec.yaml
  /Users/nabeelparkar/dev/tmp/app/app_client/lib/module.dart
  /Users/nabeelparkar/dev/tmp/app/app_client/lib/src/protocol/client.dart
  /Users/nabeelparkar/dev/tmp/app/app_client/lib/src/protocol/protocol.dart
  /Users/nabeelparkar/dev/tmp/app/app_client/lib/src/protocol/module_class.dart
  /Users/nabeelparkar/dev/tmp/app/app_client/gitignore
Setting up Docker and default database tables in /Users/nabeelparkar/dev/tmp/app/app_server
If you run serverpod create for the first time, this can take a few minutes as Docker is downloading the images for Postgres. If you get stuck at this step,
make sure that you have the latest version of Docker Desktop and that it is currently running.

Unhandled exception:
ProcessException: No such file or directory
  Command: ./setup-tables
#0      _ProcessImpl._start (dart:io-patch/process_patch.dart:401:33)
#1      Process.start (dart:io-patch/process_patch.dart:38:20)
#2      CommandLineTools.createTables (file:///Users/nabeelparkar/.pub-cache/hosted/pub.dartlang.org/serverpod_cli-0.9.8/bin/util/command_line_tools.dart:58:33)
<asynchronous suspension>
#3      performCreate (file:///Users/nabeelparkar/.pub-cache/hosted/pub.dartlang.org/serverpod_cli-0.9.8/bin/create/create.dart:340:5)
<asynchronous suspension>
#4      main (file:///Users/nabeelparkar/.pub-cache/hosted/pub.dartlang.org/serverpod_cli-0.9.8/bin/serverpod_cli.dart:220:9)
<asynchronous suspension>

@yahu1031
Copy link
Contributor

yahu1031 commented Jul 11, 2022

Looks like setup-tables file doesn't copy/created there. Because module doesn't have a setup-tables in template.

@yahu1031
Copy link
Contributor

Fix added in #234

@vlidholt vlidholt moved this from Version 1.0 - Essentials 🔥 to Version 1.0 - Working on 🛠 in Serverpod Roadmap Sep 13, 2022
@vlidholt
Copy link
Collaborator

Fixed

@vlidholt vlidholt moved this from Version 1.0 - Working on 🛠 to Done 🚀 in Serverpod Roadmap Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

3 participants