【问题标题】:VSCode Glean extension error -4094 - what does it mean?VSCode 收集扩展错误 -4094 - 这是什么意思?
【发布时间】:2018-11-04 07:43:20
【问题描述】:

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

[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"}

是什么意思?

【问题讨论】:

    标签: node.js visual-studio-code system-calls vscode-extensions


    【解决方案1】:

    该扩展已通过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 以上的版本

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-06-29
      • 2015-06-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多