Skip to content

Operating System Specific Properties in launch.json #1873

Closed

Description

@edvinv

... it would be nice to have them. For example: OS specific env variables...

Activity

  1. felixfbecker commented on Jan 9, 2016

    @felixfbecker
    Contributor

    +1

  2. added
    debug
    feature-request
    on Jan 11, 2016
  3. isidorn commented on Jan 11, 2016

    @isidorn
  4. weinand commented on Jan 11, 2016

    @weinand
    Contributor

    Proposal: wrapping any attribute or group of attributes in a sub structure "osx", "linux", and "windows" makes it OS specific.

  5. felixfbecker commented on Jan 11, 2016

    @felixfbecker
    Contributor

    Yes, and env variables declared without an OS should merge with the OS specific ones.

  6. joekim commented on Mar 3, 2016

    @joekim

    Andre Weinand (@weinand)
    +1 for proposal. Need to specify a different "runtimeExecutable" when on osx vs. win32

  7. JimiC commented on May 31, 2016

    @JimiC
    Contributor

    👍 This will come very handy especially when developing Electron apps. Currently I'm stuck at changing the "runtimeExecutable" path each time when changing OS env.

  8. weinand commented on Jun 2, 2016

    @weinand
    Contributor

    Isidor Nikolic (@isidorn) am I right that this feature does not change the structure of the launch config that arrives in the debug adapter?

    Example:

    {
       "type": "node",
       "request": "launch",
       "runtimeExecutable": "mynode",
       "Windows": {
         "runtimeExecutable": "mynode.exe" 
       }
    }

    arrives in the debug adapter on OS X and linux as:

    {
       "type": "node",
       "request": "launch",
       "runtimeExecutable": "mynode" 
    }

    and on Windows as:

    {
       "type": "node",
       "request": "launch",
       "runtimeExecutable": "mynode.exe" 
    }
  9. isidorn commented on Jun 2, 2016

    @isidorn

    Andre Weinand (@weinand) no, I also send the "windows" part to each adapter. I could remove it - but we are not doing that for any other property so far - removing it from the launch.json

  10. felixfbecker commented on Jun 2, 2016

    @felixfbecker
    Contributor

    Isidor Nikolic (@isidorn) please do that on the VS Code side

  11. weinand commented on Jun 2, 2016

    @weinand
    Contributor

    Isidor Nikolic (@isidorn) and what are you sending to the adapter in this case:

    {
       "type": "node",
       "request": "launch",
       "Windows": {
         "runtimeExecutable": "mynode.exe" 
       },
       "OSX": {
         "runtimeExecutable": "mynode" 
       },
       "linux": {
         "runtimeExecutable": "mynode" 
       }
    }
  12. isidorn commented on Jun 2, 2016

    @isidorn

    on windows

    {
       "type": "node",
       "request": "launch",
       "runtimeExecutable": "mynode.exe",
       "Windows": {
         "runtimeExecutable": "mynode.exe" 
       },
       "OSX": {
         "runtimeExecutable": "mynode" 
       },
       "linux": {
         "runtimeExecutable": "mynode" 
       }
    }
    
  13. felixfbecker commented on Jun 2, 2016

    @felixfbecker
    Contributor

    thats fine 👍

  14. weinand commented on Jun 2, 2016

    @weinand
    Contributor

    Isidor Nikolic (@isidorn) intellisense inside the OS sections works?

  15. JimiC commented on Jun 2, 2016

    @JimiC
    Contributor

    Excuse my ignorance but doesn't OSX use "mynode.app"?
    Isidor Nikolic (@isidorn) And what about outDir (when using Electron with Typescript)?

  16. weinand commented on Jun 2, 2016

    @weinand
    Contributor

    Dimitris "Jimi" Charalampidis (@JimiC) "mynode.app" is the name of the application folder (aka "application bundle'") which the Finders shows as the application "mynode" in the UI. But mynode.app is not an executable in the OS sense, so you can not use it with the "runtimeExecutable" attribute from above. For "runtimeExecutable" you have to specify a file that has the executable bit set, e.g. "/usr/local/bin/node".

    re 'outDir': the platform specific sections support the same attributes as the enclosing scope.

  17. JimiC commented on Jun 2, 2016

    @JimiC
    Contributor

    Andre Weinand (@weinand) Thanks for clarifying. I see it now. The executable is in "*.app/Contents/MacOS/".

  18. isidorn commented on Jun 2, 2016

    @isidorn

    Andre Weinand (@weinand) not inside, but you get OS sections offered top level

  19. weinand commented on Jun 2, 2016

    @weinand
    Contributor

    Isidor Nikolic (@isidorn) we should offer intellisense for the OS types on the top level and repeat the intellisense inside the OS sections.

  20. isidorn commented on Jun 2, 2016

    @isidorn

    Added intellisense inside os sections

  21. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions