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

[file-search] File search does not respect nested .gitignore files. #1588

Open
kittaakos opened this issue Mar 27, 2018 · 8 comments
Open

[file-search] File search does not respect nested .gitignore files. #1588

kittaakos opened this issue Mar 27, 2018 · 8 comments
Labels
bug bugs found in the application file search issues related to the file search

Comments

@kittaakos
Copy link
Contributor

Depends on #1584.

See the pending tests here: https://github.com/theia-ide/theia/blob/479ac6c77944f0234059777ed71053d754ee5262/packages/file-search/src/node/file-search-service-impl.spec.ts#L40

@kittaakos kittaakos added bug bugs found in the application file search issues related to the file search labels Mar 27, 2018
@lmcbout
Copy link
Contributor

lmcbout commented Mar 27, 2018

Instead of commenting out every line of execution within the test, why not using "it.skip". Later, we will see there is a test, but not completed yet and it will be easier to comeback to that specific test and fix it

@kittaakos
Copy link
Contributor Author

It results in exactly the same pending state. Feel free to update.

@lmcbout
Copy link
Contributor

lmcbout commented Mar 27, 2018

The result is almost the same, mocha result will flag there is a test that is not executed at the end. So just by looking at the mocha resulkt, we will know there is a test that was not performed . Ifd we comment the line, mocha will show all test passed

@kittaakos
Copy link
Contributor Author

Are you talking about this?

node --inspect-brk=13419 node_modules/mocha/bin/_mocha /Users/akos.kitta/git/theia/packages/file-search/src/node/file-search-service-impl.spec.ts --no-timeouts --colors --opts /Users/akos.kitta/git/theia/configs/mocha.opts 
Debugger listening on ws://127.0.0.1:13419/90ecdf6b-45a7-49d3-b027-4a97a83f2515
Debugger attached.
  search-service
    ✓ shall fuzzy search this spec file (49ms)
    - shall respect nested .gitignore
    ✓ shall cancel searches
  2 passing (65ms)
  1 pending
Waiting for the debugger to disconnect...

@lmcbout
Copy link
Contributor

lmcbout commented Mar 27, 2018

Yes

@kittaakos
Copy link
Contributor Author

Good, that's the current state. But you could still update if you want.

@lmcbout
Copy link
Contributor

lmcbout commented Mar 27, 2018

Fine with me, it just to be able to track which tests are not fully executing at the end.

@elaihau
Copy link
Contributor

elaihau commented Feb 25, 2019

this issue was reported here BurntSushi/ripgrep#829 and seems that some people are working on the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application file search issues related to the file search
Projects
None yet
Development

No branches or pull requests

3 participants