fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
924 stars 196 forks source link

Error loading Deedle.fsproj on Linux #397

Closed sebhofer closed 5 years ago

sebhofer commented 5 years ago

When trying to load Deedle.fsproj on Linux (in Ionide for example) I get the following error:

ApplicationName=’dotnet’, CommandLine=’msbuild /home/sebhofer/Documents/programming/fsharp/Deedle/src/Deedle/Deedle.fsproj /p:SkipCompilerExecution=true /p:ProvideCommandLineArgs=true /p:CopyBuildOutputToOutputDirectory=false /p:UseCommonOutputDirectory=true /t:_Inspect_FscArgs /p:_Inspect_FscArgs_OutFile=/tmp/tmp402e7c35.tmp.FscArgs.txt /p:DesignTimeBuild=true /t:_Inspect_GetResolvedProjectReferences /p:_Inspect_GetResolvedProjectReferences_OutFile=/tmp/tmp4ba9d0e3.tmp.GetResolvedProjectReferences.txt /t:_Inspect_GetProperties /p:_Inspect_GetProperties_OutFile=/tmp/tmp57252591.tmp.GetProperties.txt /nologo /verbosity:quiet’, CurrentDirectory=’/home/sebhofer/Documents/programming/fsharp/Deedle/src/Deedle’, Native error= Cannot find the specified file

The way I interpret it, msbuild cannot be found. Is this an configuration issue? Or a Linux issue? Or am I just not supposed to load this project directly?

sebhofer commented 5 years ago

I just checked at work on a Windows machine, and there I don't get this error. So it might be a Linux issue. Does anyone know how to resolve it?

However, even after loading src/Deedle/Deedle.fsproj without error, I dont get proper IntelliSense support, but just the message that (in this case) src/Deedle/Frame.fs is not part of the loaded project. Am I doing something fundamentally wrong? What's the best way to work on the Deedle source?

zyzhu commented 5 years ago

I will setup a Linux machine to see what's wrong with opening the project.

But on Windows, the proper way to open the project is via Deedle.Core.sln. It has Deedle's project and its related unit tests. Deedle.sln has RPlugin with it. But you have to setup the correct R environment so that it can build. I would focus on Deedle.Core.sln for now.

I also set the default target of FAKE build to exclude RPlugin for now to avoid boilerplate of setting up R environment.

@tpetricek Maybe we should write up something in wiki to explain the project structure and setting up R environment for new comers to get started quickly.

sebhofer commented 5 years ago

I found a solution to my problem. I simply hadn't installed the required .net components. Installing those is rather easy by following the instructions on this site: https://www.microsoft.com/net/download (I think both the runtime and the SDK are needed). Now loading the .fsproj and the .sln file works as expected. From my side this issue can be closed.

sebhofer commented 5 years ago

@zyzhu I should add, that it would really be helpful to have a document that explains how to set up a dev environment for Deedle. I've been trying to load the right files into an .fsx file, but haven't succeeded yet...