You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it compiles with no pb. I now run this through Fake
.\tools\FAKE\tools\Fake.exe "build.fsx"
where build.fsx is the previous file.
This leads to an error
build.fsx(12,15): error FS3033: The type provider 'ProviderImplementation.CsvProvider' reported an error: The input sequ
ence was empty. Parameter name: source
There should be more information about which resolved file the TP was trying to open.
Even after copying data/MSFT.csv to the Fake.exe folder, I have the error so I am quite puzzled actually.
I switched to absolute path of course, but that is far from ideal for scripting purposes in shared environment. That would be bad to loose strong type safety because of environment variable :)
(btw, staged execution would not have this pb I guess as in that case I'd generate the metastage before running the fake.exe, removing exposure to environment change influencing type generation)
The text was updated successfully, but these errors were encountered:
I'm not sure how Fake.exe works, but there should be some way to specify the root path (that is used when resolving all references in F# Interactive - assuming Fake actually runs fsi.exe under the cover).
If Fake.exe does not have anything like that, the fsi.exe has a hidden command that Visual Studio uses to change the current directory, so you can try running the following at the beginning of the script:
Merged the pull request by @ovatsus, so you should get a more useful error message (hopefuly!) Can you please check what you get now?
I'll close this, but let us know if it does not give you more information and we can do some more improvements in the reporting. The rest is a matter of telling FAKE how to locate the files, which is an issue for FAKE (if there is no way to do that).
I use the example in a build.fsx file
it compiles with no pb. I now run this through Fake
where build.fsx is the previous file.
This leads to an error
build.fsx(12,15): error FS3033: The type provider 'ProviderImplementation.CsvProvider' reported an error: The input sequ
ence was empty. Parameter name: source
I switched to absolute path of course, but that is far from ideal for scripting purposes in shared environment. That would be bad to loose strong type safety because of environment variable :)
(btw, staged execution would not have this pb I guess as in that case I'd generate the metastage before running the fake.exe, removing exposure to environment change influencing type generation)
The text was updated successfully, but these errors were encountered: