Skip to content

VS Code "Open in Xcode" does nothing #2178

Closed

Description

@jmagman

Steps to Reproduce

Open Flutter directory in VS Code on Mac OS X 10.14.6.
Context-click on ios directory > Open in Xcode

Nothing happens.

Logs

I see this log when I reproduce:

error	10:34:19.546912 -0800	Code Helper (Renderer)	nw_path_close_fd Failed to close guarded necp fd 48 [9: Bad file descriptor]

Flutter extension is marked "not activated" when I Capture Logs (no actual log lines when I reproduced) but I'm not sure if that's related. It looks enabled in the Extensions UI.

Dart Code extension: 3.7.1
Flutter extension: 3.7.1 (not activated)
VS Code: 1.41.0
Platform: mac
Workspace type: Flutter
Multi-root?: false
Dart SDK:
    Loc: /Users/m/Projects/flutter/bin/cache/dart-sdk
    Ver: 2.8.0-edge.fe9f30c3896e7146195ea52434c5082b309b6ee0
Flutter SDK:
    Loc: /Users/m/Projects/flutter
    Ver: 1.13.3-pre.59
HTTP_PROXY: undefined
NO_PROXY: undefined

Screen Shot 2019-12-18 at 10 44 36 AM

Activity

  1. DanTup commented on Dec 19, 2019

    @DanTup
    Member

    I can't repro this - it seems to work ok. We look in the folder for xcworkspace/xcodeproj files (preferring xcworkspace) and then open it with:

    open -a Xcode [path-to-file]
    

    If you try running that command from a terminal, does it work?

  2. added
    awaiting infoRequires more information from the customer to progress
    on Dec 19, 2019
  3. jmagman commented on Dec 19, 2019

    @jmagman
    Author

    If you try running that command from a terminal, does it work?

    Ah, my Xcode is named Xcode_11-3.

    open -a Xcode [path-to-file]
    Unable to find application named 'Xcode'
    

    You could change it to open [path-to-file] since that should also open in Xcode.
    I'm okay with you closing this, too, since I'm not using the default app name.

  4. DanTup commented on Dec 19, 2019

    @DanTup
    Member

    If opening the file works directly, I'll change it to do that. I'll also see if I can improve how it fails if it doesn't work (silently doing nothing isn't a good experience - seems like we should be able to detect this and display a message).

  5. added
    in editorRelates to code editing or language features
    and removed
    awaiting infoRequires more information from the customer to progress
    on Dec 19, 2019
  6. added this to the v3.8.0 milestone on Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions