Searching file content using eclipse search doesn't find any results

This topic contains 2 replies, has 2 voices, and was last updated by 9 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #547395 Reply

    bdevaca
    Participant

    I’ve installed the WebClipese plugin to my Eclipse Oxygen. I’ve noticed that if I try to use Eclipse file search for values in my Angular projects, I get no results found every time. Has anyone else experienced this behavior?

    Searching my regular java projects still works fine.

    Regards,
    Brian

    #547431 Reply

    Brian Fernandes
    Moderator

    Brian,

    What file types would contain the content you are looking for (TS, HTML, CSS?).

    Two things to check:
    1) The Eclipse search, by default, skips derived resources. In Angular projects, the node_modules folder for instance, is one such derived folder, which the search would normally skip.

    Check the Derived resources checkbox in the search wizard, and see if that gets you the results you were looking for. If it does, you may want to change the derived setting of the folder (Project properties > Resource and look at the Attributes section).

    Do let us know if this works, so we can determine if a folder was incorrectly marked derived.

    2) A bit obvious, but please ensure the “Scope” of the search is correctly set.

    Hope this helps.

    #547441 Reply

    bdevaca
    Participant

    Thanks for the advice. I figured out my problem. I sometimes use working sets to search, instead of searching the entire workspace.

    I needed to add the Angular project working set as (javascript). I had previously added it as (java)

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Searching file content using eclipse search doesn't find any results