流服务器和vscode流扩展在更新为Catlina后中断

问题描述 投票:1回答:1

有人遇到这个问题吗?Connection to server got closed. Server will not be restarted.

当我签出到旧提交并在locus-dashboard中时得到的(我们确实有旧版本的流程),然后切换回当前版本。然后它开始抛出错误Connection to server got closed. Server will not be restarted.

这是流量日志。

[Info  - 12:03:15 PM - locus-dashboard-v2/.flowconfig] Found flow using option `useNPMPackagedFlow`
[Info  - 12:03:16 PM - locus-dashboard-v2/.flowconfig] Using flow '/Users/shubanusharma/workspace/locus-dashboard-v2/node_modules/flow-bin/flow-osx-v0.111.3/flow' (v0.111.3)
Unhandled exception: (Sys_error "/tmp/daemon_param688afa.bin: Permission denied")
Raised by primitive operation at file "stdlib.ml", line 316, characters 29-55
Called from file "filename.ml", line 259, characters 7-73
Re-raised at file "filename.ml", line 261, characters 30-37
Called from file "hack/utils/sys/daemon.ml", line 267, characters 2-53
Called from file "hack/utils/jsonrpc/jsonrpc.ml", line 215, characters 4-357
Called from file "src/lsp/flowLsp.ml", line 1555, characters 15-36
Called from file "src/commands/commandUtils.ml", line 13, characters 4-32

[Error - 12:03:16 PM] Connection to server got closed. Server will not be restarted.

我已经尝试过清理节点模块清除 yarn和npm cachereinstalling扩展名。

这似乎是一个[[Catalina权限问题,将flowsudo一起运行适用于流,但vscode扩展名仍然存在相同的问题。

visual-studio-code flowtype
1个回答
0
投票
不是永久解决方案,而是将tmp文件夹权限更改为777,以解决此问题。

    转到您的存储库目录并停止服务器yarn flow stop
  1. 更改/tmp目录权限sudo chmod 777 /tmp
  2. 启动流服务器yarn flow start
  3. 通过cmd+p(Windows ctrl+p)类型restart client,按Enter重新启动vscode流客户端>
© www.soinside.com 2019 - 2024. All rights reserved.