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

[Objective-C] support for Objective-C file navigation #2533

Closed
TedaLIEz opened this issue Sep 19, 2018 · 6 comments
Closed

[Objective-C] support for Objective-C file navigation #2533

TedaLIEz opened this issue Sep 19, 2018 · 6 comments

Comments

@TedaLIEz
Copy link

Type: LanguageService

I tried to use this cpptools with the config below to help to navigate between header and source files in my Objective-C project, but it fails to navigate. I wonder if this tools can provide Objective-C navigation. Or maybe my configuration is wrong?

My configuration in my workspace .vs_code folder:
c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceFolder}/**",
                "${workspaceFolder}/Classes/QQStory/TBService/TBStoryService/**"
            ],
            "defines": [],
            "macFrameworkPath": [
                "/System/Library/Frameworks",
                "/Library/Frameworks"
            ],
            "compilerPath": "/usr/bin/clang",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "clang-x64",
            "browse": {
                "path": [
                    "${workspaceRoot}"
                ],
                "limitSymbolsToIncludedHeaders": true,
                "databaseFilename": ""
            }
        }
    ],
    "version": 4
}
  • OS and Version: MacOS 10.13.6
  • VS Code Version: 1.27.2
  • C/C++ Extension Version: 0.18.1
@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Sep 19, 2018

Our C/C++ extension does not support Objective-C and we do not currently plan to, because it would involve too much work with too few users requesting/using it. You could try another VS Code extension that has Objective-C support (e.g. C/C++ Clang Command Adapter -- I haven't tried using Objective-C with that though).

@persidskiy
Copy link

persidskiy commented Nov 3, 2018

@sean-mcmanus But it would be nice if VSCode simply supported resolving #import statements and some objc-awareness, not real intelligence engine.

Because projects for Mac/iOS usually have mixed codebases in cpp, objc, objc++. And the worst part is that objc/objc++ use the same .h files for headers, so every objc header I open is being treated as cpp and vscode highlights a lot of Problems in it.

@darkoverlordofdata
Copy link

As a workaround, I set this on a per-project basis:
"files.associations": { "*.h": "objective-c" }

@davidnr
Copy link

davidnr commented Dec 4, 2019

Objc support would be great ! +1

@zlrs
Copy link

zlrs commented Dec 17, 2019

A few days until 2020, still no way to navigate OC source code using VSCode.

@julee
Copy link

julee commented Jul 2, 2020

Why not support objective-c (objective-c++)?

@bobbrow bobbrow added more votes needed Issues that have been postponed until more community members upvote it and removed wontfix labels Jul 2, 2020
@Colengms Colengms removed the more votes needed Issues that have been postponed until more community members upvote it label Oct 16, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants