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

fsharp init template doesn't compile #3228

Closed
1 task done
mikhailshilkov opened this issue Jul 7, 2019 · 0 comments · Fixed by #3229
Closed
1 task done

fsharp init template doesn't compile #3228

mikhailshilkov opened this issue Jul 7, 2019 · 0 comments · Fixed by #3229
Labels
needs-triage This issue or PR still needs to be triaged.

Comments

@mikhailshilkov
Copy link
Contributor

mikhailshilkov commented Jul 7, 2019

  • I'm submitting a ...

    • 🪲 bug report
  • What is the current behavior?

Create a new F# program and build it:

> cdk init --language fsharp
> dotnet build src

Result: 6 build errors.

.\hello-cdk-fs\src\HelloCdk\HelloConstruct.fs(4,21): error FS0039: The namespace 'S3' is not defined.
.\cdk\hello-cdk-fs\src\HelloCdk\HelloConstruct.fs(15,23): error FS0039: The value or constructor 'Bucket' is not defined. Maybe you want one of the following:  buckets 
.\cdk\hello-cdk-fs\src\HelloCdk\HelloConstruct.fs(20,28): error FS0039: The type 'Bucket' is not defined.
.\cdk\hello-cdk-fs\src\HelloCdk\HelloConstruct.fs(20,39): error FS0072: Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved.
.\cdk\hello-cdk-fs\src\HelloCdk\HelloStack.fs(14,93): error FS0001: This expression was expected to have type 'float' but here has type 'int' 
.\cdk\hello-cdk-fs\src\HelloCdk\HelloStack.fs(20,15): error FS0039: The field, constructor or member 'SubscribeQueue' is not defined. 
    0 Warning(s)
    6 Error(s)
  • What is the expected behavior (or behavior of feature suggested)?

The build succeeds.

  • What is the motivation / use case for changing the behavior or adding this feature?

Use F# as CDK language.

  • Please tell us about your environment:

    • CDK CLI Version: 0.37.0 (build c4bdb54)
    • OS: Windows 10
    • Language: F#
@mikhailshilkov mikhailshilkov added the needs-triage This issue or PR still needs to be triaged. label Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant