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

在大量Html文件中进行文本检索,字符匹配异常 #56309

Closed
CallMeR opened this issue Aug 14, 2018 · 5 comments
Closed

在大量Html文件中进行文本检索,字符匹配异常 #56309

CallMeR opened this issue Aug 14, 2018 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@CallMeR
Copy link

CallMeR commented Aug 14, 2018

  • VSCode Version: Latest 1.26.0 1.25.1
  • OS Version:Windows10 Ubuntu18.04

Steps to Reproduce:

1.在项目文件夹中载入大量的html文件。
2.进行某关键字搜索
3.设置为全字匹配模式
4.依次点击搜索结果,右侧对应的文件会出现如图所示的异常。
5.正则匹配模式,也有类似问题。

tim 20180814151019

Does this issue occur when all extensions are disabled?: Yes

@sandy081
Copy link
Member

@CallMeR Can you please provide the summary and steps to reproduce in English?

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Aug 14, 2018
@CallMeR
Copy link
Author

CallMeR commented Aug 15, 2018

1.In vscode and open a project folder.
2.Toggle to search,input some key words.
3.When Vscode output the result,it acts in the git blow.

vscode

Maybe it is relate to the file name : )

@roblourens
Copy link
Member

Is it possible that your files just have CR line endings?

If not, can you share the exact file for me to try?

@CallMeR
Copy link
Author

CallMeR commented Aug 16, 2018

I've E-mail you a default.7z which content the origin files.
default.7z hash:
sha256sum-9D5B305E13F2D5ACD3F8B5524C2149D9C342A17134C85DAA6D6D35DF0ECBF463

@vscodebot vscodebot bot removed the new release label Aug 21, 2018
@roblourens
Copy link
Member

This is due to your files having CR line endings. I'm seeing \r\r\n for each line ending. So, a CR then a CRLF. Not sure how you ended up that way, but if you edit the file in vscode then save it, it fixes the line endings, and then search works. #35797

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants