Skip to content

freebsd not supported altough dotnet runs fine. #384

Closed

Description

@devosalain

Unhandled exception. System.InvalidOperationException: Not supported OS platform

Activity

  1. kMutagene commented on Apr 18, 2023

    @kMutagene
    Collaborator

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

  2. kMutagene commented on Apr 18, 2023

    @kMutagene
    Collaborator

    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 ?

  3. kMutagene commented on Jul 9, 2023

    @kMutagene
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions