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

isMacOS misbehaves #1019

Closed
albertjan opened this issue Nov 27, 2015 · 3 comments
Closed

isMacOS misbehaves #1019

albertjan opened this issue Nov 27, 2015 · 3 comments

Comments

@albertjan
Copy link
Member

trace (sprintf "Mac: %b" isMacOS)
trace (sprintf "Plat: %O" Environment.OSVersion.Platform)
trace (sprintf "ID: %O" PlatformID.MacOSX)

returns:

Mac: false
Plat: Unix
ID: MacOSX

mono version:

Mono JIT compiler version 4.2.0 (Stable 4.2.0.179/a224653 Tue Oct  6 11:27:49 PDT 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           normal
    SIGSEGV:       altstack
    Notification:  kqueue
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen

on Yosemite

tried FAKE 4.9.2 and 4.9.3

@albertjan
Copy link
Member Author

This is probably a mono issue, but they don't appear to want to fix it. I'm surprised no one else ran into this.

@inosik
Copy link
Contributor

inosik commented Dec 17, 2015

Looking at the source of System.Environment and commit history, it seems it never actually worked. Maybe we should copy the code from the Mono debugger for VS Code.

@forki
Copy link
Member

forki commented Dec 17, 2015

PR welcome ;-)

2015-12-17 17:54 GMT+01:00 Ilja Nosik notifications@github.com:

Looking at the source of System.Environment
https://github.com/mono/mono/blob/4504107/mcs/class/corlib/System/Environment.cs#L233
and commit history, it seems it never actually worked. Maybe we should copy
the code
https://github.com/Microsoft/vscode-mono-debug/blob/8a53868/src/common/Utilities.cs#L35
from the Mono debugger for VS Code.


Reply to this email directly or view it on GitHub
#1019 (comment).

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

No branches or pull requests

3 participants