vscode Remote extension host logs aren't showing up after reconnecting

mnemlml8  于 4个月前  发布在  Vscode
关注(0)|答案(6)|浏览(39)

我遇到了一个问题,远程窗口中的搜索永远不会结束。我和@andreamah一起研究这个问题,我们发现没有远程exthost输出通道,这很奇怪。当我查看服务器日志时,我看到了这个:

2023-07-19 10:56:45.615 [trace] [127.0.0.1][3900cd44][ExtensionHostConnection] - startParams language: en
2023-07-19 10:56:45.615 [trace] [127.0.0.1][3900cd44][ExtensionHostConnection] - startParams env: {}
2023-07-19 10:56:45.615 [info] [127.0.0.1][3900cd44][ExtensionHostConnection] The client has reconnected.
2023-07-19 10:56:45.709 [trace] [127.0.0.1][fa8aa95b][ExtensionHostConnection] - startParams language: en
2023-07-19 10:56:45.709 [trace] [127.0.0.1][fa8aa95b][ExtensionHostConnection] - startParams env: {}
2023-07-19 10:56:45.709 [info] [127.0.0.1][fa8aa95b][ExtensionHostConnection] The client has reconnected.
2023-07-19 10:56:45.803 [info] [127.0.0.1][aade34e8][ManagementConnection] The client has reconnected.

在执行搜索之前有一点时间:

2023-07-19 11:21:49.856 [trace] SearchService#search {"_reason":"searchView","folderQueries":[{"folder":{"$mid":1,"fsPath":"\\home\\daniel\\dev\\microsoft\\vscode-settings-sync-server","_sep":1,"external":"vscode-remote://wsl%2Bubuntu/home/daniel/dev/microsoft/vscode-settings-sync-server","path":"/home/daniel/dev/microsoft/vscode-settings-sync-server","scheme":"vscode-remote","authority":"wsl+ubuntu"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"{server,test}/**/*.js.map":true,"{server,test}/**/*.js":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"onlyOpenEditors":false,"maxResults":30000,"type":2,"contentPattern":{"pattern":"AppServiceCount","isRegExp":false,"isCaseSensitive":false,"isWordMatch":false,"notebookInfo":{"isInNotebookMarkdownInput":true,"isInNotebookMarkdownPreview":true,"isInNotebookCellInput":true,"isInNotebookCellOutput":true},"wordSeparators":"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"},"previewOptions":{"matchLines":1,"charsPerLine":1000},"usePCRE2":false}

我不知道为什么搜索无法正常工作,但可能是因为在远程ext主机重启后没有正确连接。事实是远程ext主机日志不再显示,这意味着我们无法进一步调查。
请注意,重新加载窗口可以解决问题(即新的ext主机,而不是重启的)。

af7jpaap

af7jpaap1#

仅远程外部主机日志不显示,在重新连接后所有其他远程日志(服务器、伪终端)都显示吗?

yzxexxkh

yzxexxkh2#

@sandy081 是的,服务器和其他显示正确,只有远程外部主机。

p5fdfcr1

p5fdfcr13#

远程扩展主机日志由远程扩展主机注册。如果扩展主机未运行,则不会显示日志。请检查扩展主机是否正在运行?

hzbexzde

hzbexzde4#

文件内容正在加载,它们通过扩展主机进行传输,对吗?日志还说远程扩展主机重新连接了。我不知道我做了什么触发了这个,所有窗口中的搜索都停止工作了。

xytpbqjk

xytpbqjk5#

文件内容正在加载,它们通过扩展主机进行传输,对吗?
我认为不是。文件内容使用管理通道。
日志还显示远程扩展主机重新连接了。我不知道我做了什么触发了这个行为,所有窗口中的搜索都停止工作了。
嗯。我不确定我如何重现这种重新连接的行为。让我问问@alexdima - 有没有一种方法我可以手动重启远程扩展主机并重新连接?

ezykj2lf

ezykj2lf6#

@sandy081 这个方法可能会起作用:

![](//img.saoniuhuo.com/images/202408/46421722776606000.jpg)

相关问题