Compilation Error when added dependency of FsLab
See original GitHub issueHi,
I’m attempting to use FsLab (http://fslab.org/) to create and return HTML chart via Azure Function however I’m getting an error.
Repro steps
Provide the steps required to reproduce the problem
- Create project.json with
{
"frameworks": {
"net46":{
"dependencies": {
"FSharp.Data": "2.3.2",
"Newtonsoft.Json": "9.0.1",
"FsLab" : "1.0.0",
"RProvider" : "1.1.20"
}
}
}
}
- Wait for compilation
Expected behavior
Not error
Actual behavior
Logs:
2016-09-07T10:40:49.424 Restoring packages.
2016-09-07T10:40:49.424 Starting NuGet restore
2016-09-07T10:40:51.004 Restoring packages for D:\home\site\wwwroot\api-chart\project.json...
2016-09-07T10:40:52.837 GET https://api.nuget.org/v3-flatcontainer/http.fs/index.json
2016-09-07T10:40:54.184
2016-09-07T10:40:54.465 Packages restored.
2016-09-07T10:40:55.004 Script for function 'api-chart' changed. Reloading.
2016-09-07T10:40:56.010 OK https://api.nuget.org/v3-flatcontainer/http.fs/index.json 459ms
2016-09-07T10:40:56.010 GET https://api.nuget.org/v3-flatcontainer/http.fs/0.8.0/http.fs.0.8.0.nupkg
2016-09-07T10:40:56.010 OK https://api.nuget.org/v3-flatcontainer/http.fs/0.8.0/http.fs.0.8.0.nupkg 399ms
2016-09-07T10:40:56.010 WARNING: Detected package downgrade: Newtonsoft.Json from 0.0.0 to 9.0.1
2016-09-07T10:40:56.010 api-chart (>= 1.0.0) -> FsLab (>= 1.0.0) -> XPlot.GoogleCharts (= 1.3.1) -> Newtonsoft.Json
2016-09-07T10:40:56.010 api-chart (>= 1.0.0) -> Newtonsoft.Json (>= 9.0.1)
2016-09-07T10:40:56.010 WARNING: Detected package downgrade: Google.DataTable.Net.Wrapper from 0.0.0 to 3.1.2.0
2016-09-07T10:40:56.010 api-chart (>= 1.0.0) -> FsLab (>= 1.0.0) -> XPlot.GoogleCharts (= 1.3.1) -> Google.DataTable.Net.Wrapper
2016-09-07T10:40:56.010 api-chart (>= 1.0.0) -> FsLab (>= 1.0.0) -> Google.DataTable.Net.Wrapper (= 3.1.2)
2016-09-07T10:40:56.010 WARNING: Detected package downgrade: Deedle from 0.0.0 to 1.2.5
2016-09-07T10:40:56.010 api-chart (>= 1.0.0) -> FsLab (>= 1.0.0) -> XPlot.GoogleCharts.Deedle (= 1.3.1) -> Deedle
2016-09-07T10:40:56.010 api-chart (>= 1.0.0) -> FsLab (>= 1.0.0) -> Deedle (= 1.2.5)
2016-09-07T10:40:56.010 WARNING: Detected package downgrade: Newtonsoft.Json from 0.0.0 to 9.0.1
2016-09-07T10:40:56.010 api-chart (>= 1.0.0) -> FsLab (>= 1.0.0) -> XPlot.Plotly (= 1.3.1) -> Newtonsoft.Json
2016-09-07T10:40:56.010 api-chart (>= 1.0.0) -> Newtonsoft.Json (>= 9.0.1)
2016-09-07T10:40:56.010 Committing restore...
2016-09-07T10:40:56.010 Writing lock file to disk. Path: D:\home\site\wwwroot\api-chart\project.lock.json
2016-09-07T10:40:56.010 D:\home\site\wwwroot\api-chart\project.json
2016-09-07T10:40:56.010 Restore completed in 3206ms.
2016-09-07T10:40:56.010
2016-09-07T10:40:56.010 NuGet Config files used:
2016-09-07T10:40:56.010 C:\DWASFiles\Sites\speech-svrless\AppData\NuGet\NuGet.Config
2016-09-07T10:40:56.010
2016-09-07T10:40:56.010 Feeds used:
2016-09-07T10:40:56.010 https://api.nuget.org/v3/index.json
2016-09-07T10:40:56.010
2016-09-07T10:41:00.603 startup(2,1): error FS3053: The type provider 'RProvider.RProvider' reported an error: The type provider constructor has thrown an exception: Could not load file or assembly 'RDotNet, Version=1.6.5.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
2016-09-07T10:41:00.603 startup(2,1): warning FS3005: Referenced assembly 'D:\home\data\Functions\packages\nuget\RProvider\1.1.20\lib\net40\RProvider.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found
2016-09-07T10:41:00.603 startup(2,1): error FS3053: The type provider 'RProvider.RProvider' reported an error: The type provider constructor has thrown an exception: Could not load file or assembly 'RDotNet, Version=1.6.5.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
2016-09-07T10:41:00.603 startup(2,1): warning FS3005: Referenced assembly 'D:\home\data\Functions\packages\nuget\RProvider\1.1.20\lib\net40\RProvider.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found
2016-09-07T10:41:00.603 Compilation failed.
Warmest regards,
Garrard.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Maven - compilation error even if dependency path is correct
I manually added a jar file under the repository of Maven located in .m2/repository. enter image description here.
Read more >thiserror - crates.io: Rust Package Registry
This library provides a convenient derive macro for the standard library's std::error::Error trait. [dependencies] thiserror = "1.0".
Read more >anyhow - crates.io: Rust Package Registry
This library provides anyhow::Error , a trait object based error type for easy idiomatic error handling in Rust applications. [dependencies] ...
Read more >Strange compile errors from Bevy or dependencies
Cargo recently added a new dependency resolver algorithm, that is incompatible with the old one. Bevy requires the new resolver. If you are...
Read more >(Mix.Error) Can't continue due to errors on dependencies #71
Any tips on how to handle that problem? Is there a different elixir compile option so I can execute to try to reproduce...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fabiocav @lindydonna This can be closed, per @sylvanc’s comment above, thanks
Closed, thanks.