Eclipse CDT resolves a bug where a github-imported project cannot open a claim (cannot open declaration)

Source: Internet
Author: User

Import GitHub remote project in Eclipse CDT, action is

Import->git/projects from Git->clone URI

The imported project can switch branch, but the declaration of the function cannot be opened, and virtually all of Eclipse's shortcut keys are useless.

I looked at the preference of the import project, and found that even the C + + build option did not, that the problem might be that the imported project had no language (c + +, C, Java, etc.), so that eclipse was treated as a general project without language attributes. Shortcut keys This kind of thing that relies on programming language will not be able to use it naturally.

The solution is:

Still importing remote GitHub project to the local, under Mac OS is placed under ~/git/remoteproject, Linux should be the same. Then import the C/C + + Existing code as Makefile Project, Browser, and select Remoteproject, that is to say we manually create a + + project and no longer rely on egit to automatically generate

The newly created project needs to take the project name by itself (the name does not need to be taken directly from GitHub), except that all features are consistent with what we expect, and can switch to another branch, function declaration, call Hierarchy can be used.

It is worth noting that some projects can be directly used after the lead, and some need to follow the above process to go, do not know why

The Chinese did not find the relevant information, English words found this

Eclipse M2e:can ' t open declarations after importing MAVEN projects

The description of the problem was almost the same as mine, but no one answered: (

The problem with the up master is about the same as mine, and Vonc's classmates gave me the inspiration to solve the problem (his last word)

You could also use the "Import existing project" option, if your GitHub repo had versioned the .project .classpath and file, but th At May is not being the case here.

Importing a GitHub project into Eclipse

Eclipse CDT resolves a bug where a github-imported project cannot open a claim (cannot open declaration)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.