Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Display include (and non-source) files in project explorer #2

Open
oliver---- opened this Issue · 13 comments

2 participants

@oliver----
Owner

I extracted this issue from discussion in #1 to document this feature request.

Problem: there are no include files displayed in the project explorer. (not completely correct but polemic)

State:

  • include paths are there in the built-in 'includes'-folder
  • source files explicitly specified in cmake target

Proposal:
Eclipse 3.7 + CDT 8.0 support linked folders in a better way.
This could be used to add links to (re-)source folders which contain files that are not directly addressed by a target
but also interesting for working on that target (e.g., local include files, resource files, template files, etc.)

Linked folders can be treated like normal folders (add, delete, refresh etc.)

@oliver---- oliver---- was assigned
@klimek

As an example, for the llvm project I want to be able to press Ctrl-Shift-R, type StringRef and get include/llvm/ADT/StringRef.h as file. It would also be nice if I could find other files in the source tree that way, like test/Integer/constexpr_bt.ll.

@oliver----
Owner
@klimek
@oliver----
Owner
@klimek
@oliver----
Owner
@klimek
@oliver----
Owner
@klimek
@oliver----
Owner
@klimek
@oliver---- oliver---- closed this
@oliver----
Owner

Closing as it is ok for now.

Still improvements possible, in some projects I observed compilation errors indicated by Eclipse for
sources opened with ctrl-shift-R found in global project. This can happen, as the include dirs in that global
project are not set properly.

@oliver---- oliver---- reopened this
@oliver----
Owner

I reopen this, as the current solution does not satisfy me completely.

Several problems arise with such global linked folders:

  • resources may be referenced redundantly
  • strange behavior with CDT includes (meta) folder (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=345140)
  • slow import/open of projects that have references (includes, linked resources) into sub-folders of the linked root folder

FYI:

Alternatives:

  1. Keep it the way it currently is

  2. Hope that https://bugs.eclipse.org/bugs/show_bug.cgi?id=345152 resolves soon.
    Plus, retrieve 'interesting' resource files from target dependencies, i.e., files that commands and targets
    depend on (e.g., flex/bison input files) and add additional resource links.

  3. Wait for https://bugs.eclipse.org/bugs/show_bug.cgi?id=245412 and hope that this provides a new approach (which I do not see and/or understand yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.