这个问题在所有扩展都被禁用时是否发生?:是
- VS Code 版本:1.82.3
- OS 版本:Ubuntu 22.04.3 LTS
重现步骤:
- 创建目录:
mkdir -p "foo/{{cookiecutter.package_name}}"
- 将可搜索文件添加到新目录:
echo baz > "foo/{{cookiecutter.package_name}}/bar"
- 用所有扩展禁用启动 VSCode:
code --disable-extensions
- 将创建的文件夹添加到 VSCode:
code --add foo
- 右键单击
{{cookiecutter.package_name}}
,Find in Folder...
- 在搜索框中输入 "baz"
- 出现错误:
Error parsing glob '/{{cookiecutter.package_name}}': nested alternate groups are not allowed
详细的 VSCode 和 OS 版本:
$ code --version
1.82.3
fdb98833154679dbaa7af67a5a29fe19e55c2b73
x64
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Output
-> Window
:
2023-10-03 12:25:54.724 [trace] SearchService#search {"_reason":"searchView","folderQueries":[{"folder":{"$mid":1,"fsPath":"/tmp/foo","external":"file:///tmp/foo","path":"/tmp/foo","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,".coverage":true,".coverage.*":true,"*.ipynb":true,"*.pos":true,"**/__pycache__":true,"**/.antlr/":true,"**/.benchmarks/":true,"**/.cache":true,"**/.cassandraWorkbench/":true,"**/.directory":true,"**/.dockerized_mongo_data/":true,"**/.eggs":true,"**/.external_pip_packages/":true,"**/.git/":true,"**/.hg/":true,"**/.idea/":true,"**/.ipynb_checkpoints":true,"**/.mypy_cache/":true,"**/.pyre/":true,"**/.pytest_cache/":true,"**/.pytype/":true,"**/.ruff_cache/":true,"**/.tox/":true,"**/.vagrant/":true,"**/.venv/":true,"**/.venv1/":true,"**/.venv2/":true,"**/.venv3/":true,"**/.vscode/":true,"**/*.a":true,"**/*.class":true,"**/*.egg-info":true,"**/*.log":true,"**/*.o":true,"**/*.pyc":true,"**/*.so":true,"**/build/":true,"**/dist/":true,"**/docs/_build/":true,"**/downloaded_deps/":true,"**/exported_data/":true,"**/htmlcov/":true,"**/libsokoengine/lib/":true,"**/metastore_db/":true,"**/spark_root/":true,"**/spark-warehouse/":true,"**/vendor/":true,"coverage.xml":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":true,"includePattern":{"{{cookiecutter.package_name}}":true,"{{cookiecutter.package_name}}/**":true}}],"usingSearchPaths":true,"onlyOpenEditors":false,"maxResults":20000,"type":2,"contentPattern":{"pattern":"baz","isRegExp":false,"isCaseSensitive":false,"isWordMatch":false,"notebookInfo":{"isInNotebookMarkdownInput":true,"isInNotebookMarkdownPreview":true,"isInNotebookCellInput":true,"isInNotebookCellOutput":true},"wordSeparators":"/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-"},"previewOptions":{"matchLines":1,"charsPerLine":1000},"usePCRE2":false}
2023-10-03 12:25:54.735 [trace] SearchService#search: 8ms
2023-10-03 12:25:54.735 [trace] SearchService#searchError: Error parsing glob '/{{cookiecutter.package_name}}': nested alternate groups are not allowed
2023-10-03 12:25:54.747 [error] Error parsing glob '/{{cookiecutter.package_name}}': nested alternate groups are not allowed: Error: Error parsing glob '/{{cookiecutter.package_name}}': nested alternate groups are not allowed
at P (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1847:5809)
at vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1855:4351
at async vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1855:2921
at async vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1855:2313
at async vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:2280:25170
还在网页上的内部构建中进行了测试。
在内部构建中,没有出现错误,但搜索词 baz
没有找到(它应该被找到)。
1条答案
按热度按时间62o28rlo1#
这被解释为嵌套的替代组,这就是为什么它不起作用。我将保持这个问题开放,作为一种可能逃脱大括号的方法。