gpt4 book ai didi

node.js - VSCode Glean 扩展错误 -4094 - 这是什么意思?

转载 作者:太空宇宙 更新时间:2023-11-04 01:40:25 27 4
gpt4 key购买 nike

我正在运行 wix/vscode-glean Windows 10 上的 VSCode 扩展在尝试提取 React 组件时遇到此问题。

[2018-11-03 19:51:26.898] [renderer1] [error] [{"errno":-4094,"code":"UNKNOWN","syscall":"stat","path":"\\\\d:\\multivariate-hypergeo\\src\\PopulationInput.js"}]
[2018-11-03 19:51:26.913] [renderer1] [error] [{"fileOperationResult":1,"options":{"acceptTextOnly":true}}]
[2018-11-03 19:51:26.930] [renderer1] [error] [{"fileOperationResult":1,"options":{"acceptTextOnly":true}}]

我唯一的猜测是,这是只针对 Linux 编写的,而系统调用 'stat' 在 Windows 上没有任何含义(或相同的含义)?

我已经筹集了an issue但我实际上想了解根本问题。

错误信息是什么

{"errno":-4094,"code":"UNKNOWN","syscall":"stat","path":"\\\\d:\\multivariate-hypergeo\\src\\PopulationInput.js"}

意思是?

最佳答案

该扩展已通过 these two commits 修补以在 Windows 10 上运行。 .

(vscode.)Uri.Parse 变为 Uri.file,例如:

edit.replace(vscode.Uri.parse(`file://${path}`), new vscode.Range(start, end), text);

成为了

 edit.replace(Uri.file(path), new vscode.Range(start, end), text);

所以现在应该适用于 4.2.2 以上的版本

关于node.js - VSCode Glean 扩展错误 -4094 - 这是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53138722/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com