-
Notifications
You must be signed in to change notification settings - Fork 69
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
Running an fsx script from "Reading and writing RData files" with fsi throws a System.Reflection.TargetInvocationException
exception.
#262
Comments
I should note I have net7.0 installed on my machine. I noticed
|
It's also worth noting that when I run a dotnet 6 bullseye container with $ dotnet fsi script.fsx
/usr/share/dotnet/sdk/6.0.404/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "" and the processor architecture of the reference "/home/vscode/.nuget/packages/rprovider/2.1.0/lib/net5.0/RProvider.Server.dll", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [/home/vscode/.packagemanagement/nuget/Projects/845--3c980b4e-05c9-47d3-b65d-a630fd882448/Project.fsproj]
chmod: cannot access "'/home/vscode/.nuget/packages/rprovider/2.1.0/lib/net5.0/server/linux-x64/RProvider.Server'": No such file or directory
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
/home/vscode/.packagemanagement/nuget/Cache/fb9242c43856bc61aaeecc6eaf2047d16c0039d25de22f3eb2769b4aed1eb227.fsx(19,1): error FS3053: The type provider 'RProvider.RProvider' reported an error: The type provider constructor has thrown an exception: Failed to start the R.NET server within 20 seconds.To enable logging set RPROVIDER_LOG to an existing file name. |
Looks like a possible resolution folder issue, such as needing to provide a resolution folder to See documentation of CsvProvider using ResolutionFolder. Static parameters in RProvider: RProvider/src/RProvider.DesignTime/RData.fs Lines 98 to 101 in 008c084
Similar in CsvProvider defining the resolution folder can be seen here |
Describe the bug
Running an fsx script from Reading and writing RData files with fsi throws a
System.Reflection.TargetInvocationException
exception.To Reproduce
Create a script that loads
sample.rdata
as shown in the Reading and writing RData files example:Run it in VSCode (with Ionide installed) via the Command Pallette via send file OR run it on the command line with the following command:
Expected behavior
The script to run successfully without throwing an error.
Screenshots
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: