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

Cannot regenerate server file like described in the docs #178

Closed
jmewes opened this issue Feb 20, 2021 · 9 comments
Closed

Cannot regenerate server file like described in the docs #178

jmewes opened this issue Feb 20, 2021 · 9 comments
Assignees
Labels
kind/question Further information is requested

Comments

@jmewes
Copy link

jmewes commented Feb 20, 2021

Observed result

Following the steps in the Dart quickstart, I am geting an error message on the attempt to re-generate the server.dart file.

$ dart run build_runner build --delete-conflicting-outputs
Could not find the implicit file to run: bin/hello.dart.

Expected result

It should be possible to follow the example command in the project documentation without running into errors.

Steps to reproduce

git clone git@github.com:GoogleCloudPlatform/functions-framework-dart.git
cd functions-framework-dart/examples/hello
pub get
dart run build_runner build --delete-conflicting-outputs

Environment

$ dart --version
Dart SDK version: 2.10.5 (stable) (Tue Jan 19 13:05:37 2021 +0100) on "macos_x64"
jmewes added a commit to jmewes/functions-framework-dart that referenced this issue Feb 20, 2021
@kevmoo
Copy link
Collaborator

kevmoo commented Mar 21, 2021

@jmewes – could you try with Dart 2.12? Curious if you still see this...

@kevmoo kevmoo added the kind/question Further information is requested label Mar 21, 2021
@jmewes
Copy link
Author

jmewes commented Mar 22, 2021

@kevmoo ,

I have upgraded to Dart 2.12 on Ubuntu and there the requests are working as described in the README.

I assume that for Mac it will also work, but I won't test this right now because of projects which are not migrated to null safety, yet.

@jmewes jmewes closed this as completed Mar 22, 2021
@subfuzion
Copy link
Member

@jmewes Apologies for delayed response here. We just updated the Dart Functions Framework, along with all the examples, and Dart ^2.12.0 is now required (Changelog).

@jmewes
Copy link
Author

jmewes commented Mar 23, 2021

@subfuzion ,

Thanks for the feedback!

@fatherOfLegends
Copy link

I am trying to generate the server file and I keep getting no output.

Dart SDK version: 2.13.3 (stable) (Wed Jun 9 12:44:44 2021 +0200) on "macos_x64"
[INFO] Generating build script completed, took 715ms
[INFO] Reading cached asset graph completed, took 79ms
[INFO] Checking for updates since last build completed, took 656ms
[INFO] Running build completed, took 24ms
[INFO] Caching finalized dependency graph completed, took 52ms
[INFO] Succeeded after 95ms with 0 outputs (0 actions)

I feel like I must be missing something obvious.

@kevmoo
Copy link
Collaborator

kevmoo commented Jun 18, 2021 via email

@fatherOfLegends
Copy link

Correct, no bin/server.dart is generated.
lib/functions.dart <- I renamed this file in my project. I thought the annotation would be enough to generate the code. Is this filename a requirement?

@kevmoo
Copy link
Collaborator

kevmoo commented Jun 19, 2021 via email

@fatherOfLegends
Copy link

Thanks! I really appreciate you all working to make server side dart better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants