Visual studio code 更新到catlina和mojave后,流服务器和vscode流扩展中断
有人遇到过这个问题吗? 与服务器的连接已关闭。服务器将不会重新启动。 当我签出到旧提交时,在Visual studio code 更新到catlina和mojave后,流服务器和vscode流扩展中断,visual-studio-code,flowtype,Visual Studio Code,Flowtype,有人遇到过这个问题吗? 与服务器的连接已关闭。服务器将不会重新启动。 当我签出到旧提交时,在轨迹仪表板中(那里我们有一个旧版本的流),然后切换回当前状态时,我得到了这个消息。然后,它开始抛出一个错误连接到服务器已关闭。服务器将不会重新启动。 这是流量日志 [Info - 12:03:15 PM - locus-dashboard-v2/.flowconfig] Found flow using option `useNPMPackagedFlow` [Info - 12:03:16 PM -
轨迹仪表板中(那里我们有一个旧版本的流),然后切换回当前状态时,我得到了这个消息。然后,它开始抛出一个错误连接到服务器已关闭。服务器将不会重新启动。
这是流量日志
[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.
我尝试了清理节点_模块,清理纱线和npm缓存,重新安装扩展
这似乎是一个Catalina权限问题,运行flow
和sudo
对flow有效,但vscode扩展仍然存在同样的问题。不是一个永久解决方案,但将tmp
文件夹权限更改为777解决了这个问题
转到您的回购目录并停止服务器纱线流停止
更改/tmp
dir权限sudo chmod 777/tmp
启动流服务器纱线流启动
按cmd+shift+p(windows ctrl+shift+p)类型重新启动vscode流客户端重新启动客户端
按enter键
[编辑日期:2021年6月15日]
在大多数情况下,仅授予权限就足够了,无需停止服务器
而且,这不仅发生在卡塔利纳,而且发生在卡塔利纳以后
- MacOSCatlina
- 莫哈韦苹果
我发现两者都包含问题