eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.9k stars 2.49k forks source link

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

Open kittaakos opened 6 years ago

kittaakos commented 6 years ago

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

lmcbout commented 6 years ago

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 commented 6 years ago

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

lmcbout commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Yes

kittaakos commented 6 years ago

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

lmcbout commented 6 years ago

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

elaihau commented 5 years ago

this issue was reported here https://github.com/BurntSushi/ripgrep/issues/829 and seems that some people are working on the fix