Skip to content
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

freebsd not supported altough dotnet runs fine. #384

Closed
devosalain opened this issue Apr 17, 2023 · 3 comments
Closed

freebsd not supported altough dotnet runs fine. #384

devosalain opened this issue Apr 17, 2023 · 3 comments

Comments

@devosalain
Copy link

Unhandled exception. System.InvalidOperationException: Not supported OS platform

@kMutagene
Copy link
Collaborator

Hi @devosalain, please include a reproducible code snippet that throws the exception, without any context it is hard to help here.

@kMutagene
Copy link
Collaborator

kMutagene commented Apr 18, 2023

However i'd suspect that freebsd is not captured by the match cases here:

///Choose process to open plots with depending on OS. Thanks to @zyzhu for hinting at a solution (https://github.com/plotly/Plotly.NET/issues/31)
let openOsSpecificFile path =
if RuntimeInformation.IsOSPlatform(OSPlatform.Windows) then
let psi =
new System.Diagnostics.ProcessStartInfo(FileName = path, UseShellExecute = true)
System.Diagnostics.Process.Start(psi) |> ignore
elif RuntimeInformation.IsOSPlatform(OSPlatform.Linux) then
System.Diagnostics.Process.Start("xdg-open", path) |> ignore
elif RuntimeInformation.IsOSPlatform(OSPlatform.OSX) then
System.Diagnostics.Process.Start("open", path) |> ignore
else
invalidOp "Not supported OS platform"

So we'd need a default open command for OSPlatform.FreeBSD, what would the default be here? open ?

@kMutagene
Copy link
Collaborator

closing this in favor of tracking it via #397. @devosalain if you'd care to give feedback there it would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants