Skip to content

Project Search/Replace with RegExp with \n only searches in currently open file #13068

Closed

Description

  • VSCode Version: 1.5 and 1.6.0-insiders

Steps to Reproduce:

  1. Open project-wide search/replace

  2. Enable regexp searching

  3. Type in a search that includes a new line, like <\?php\n\nnamespace

  4. Hit enter => no results

  5. Open a file where the pattern occurs, like

    <?php
    
    namespace Whatever;
  6. Hit enter again => one result only in this open file

  7. Remove \n\n from query

  8. Hit enter again => all results (files) show up

Activity

  1. changed the title [-]Search/Replace with RegExp with \n only searches in currently open file[/-] [+]Project Search/Replace with RegExp with \n only searches in currently open file[/+] on Sep 30, 2016
  2. sandy081 commented on Oct 3, 2016

    @sandy081
    Member

    Felix Becker (@felixfbecker) Currently search works as follows with different code paths.

    • when a file is opened it searches using the same search implementation as the editor find widget (where multi-line search is supported)
    • when a file is not opened it searches in a separate process with a different implementation ((where multi-line search is NOT supported)

    Hence you are seeing different results when files are open. I think ideal solution here would be is to support multi-line search in Search view completely #13155

    Until then we should not be showing any results for multi line search. More over current shown results for multi line search in Search view are also not good because the matches representations are not correct.

  3. added
    bug
    on Oct 3, 2016
  4. added
    search
    on Oct 3, 2016
  5. ahmetb commented on Jan 6, 2017

    @ahmetb

    3 months and no fix? Please see #18198 for a very simple use case. It actually is misleading that it says "no results found" whereas the problem is I don't have the files open currently. Either say the feature is not supported, or just implement it please.

  6. felixfbecker commented on Jan 6, 2017

    @felixfbecker
    ContributorAuthor

    ahmetalpbalkan (old account) (@ahmetalpbalkan) the vscode team is working very hard and there are plenty tickets I would consider higher priority.

  7. sandy081 commented on Jan 6, 2017

    @sandy081
    Member

    Felix Becker (@felixfbecker) Thanks for responding.

    ahmetalpbalkan (old account) (@ahmetalpbalkan) We will try to fix this gap in Find in Files and Editor Find very soon. Thanks for mentioning its importance.

  8. quickEscape commented on May 22, 2018

    @quickEscape

    Sandeep Somavarapu (@sandy081) "....very soon. ..."

  9. sandy081 commented on May 22, 2018

    @sandy081
    Member

    Yevhenii Kononko (@quickEscape) Sorry for that. There were other higher priorities.

    roblourens Please consider this while implementing #13155

  10. roblourens commented on May 22, 2018

    @roblourens
    Member

    The most likely path to a fix involves #47058, although the UI still would need updates.

  11. roblourens commented on Sep 13, 2018

    @roblourens
    Member

    I think can be considered a dupe of #13155, sorry if there's something I'm missing

  12. added
    *duplicate
    and removed
    bug
    on Sep 13, 2018
  13. removed this from the Backlog milestone on Sep 13, 2018
  14. locked and limited conversation to collaborators on Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

*duplicatesearch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions