Open alex-piccione opened 5 years ago
Another example:
SSSSS:
initial amount: 100
sell percentage threshold: 2.0
price check frequency in seconds: 60
buy amont in USD: 100
PPPPP:
ticker cache: 15
account number: "123456"
public key: "aaa"
secret key: "bbb"
type Configuration = YamlConfig<"configuration.yaml", true, "", false>
VS 2019 .Net core 2.2 FSharp.Configuration 1.5.0 FSharp.Core 4.6.2
I have this YAML:
In VS I have this:
type Configuration = YamlConfig<"configuration.yaml">
and VS shows this error on that line:
So from that line configuration is not recognized an I have many errors and I don't have intellisense. This make impossible to write/change code.
I can run thew code and tehere are no errorsa at runtime.
This issue (and/or similar) disappears when you close and reopen VS.
Initially the YAML contained only the Bitstamp section.
I added the Binance section after with an error (a missing double quote after a string: "aaaaaa )
Assigning YamlConfig to a different variable works,
type aaa = YamlConfig<"configuration.yaml">
thus is like it does not refresh/reload/reparse the yaml whern something change.Latest version of .Net Core (2.1), Visual Studio 2017 (19.x) and FSharp (4.5.4) FSharp.Configuration v 1.5.0
Thanks