dprint-vscode icon indicating copy to clipboard operation
dprint-vscode copied to clipboard

Error text encoding problem.

Open heroboy opened this issue 5 years ago • 6 comments

see the screenshot, not error itself, but the text. 图片

heroboy avatar Jul 30 '20 01:07 heroboy

Strange. Does it always happen or only on certain repos? Also, what OS are you using?

dsherret avatar Jul 30 '20 01:07 dsherret

This may happen I doesn't install the dprint cli when I install the extension. OS: window 10

heroboy avatar Jul 30 '20 02:07 heroboy

@heroboy cool. Thanks! I opened #3.

dsherret avatar Jul 30 '20 02:07 dsherret

I guess you doesn't consider the stdout's encoding. If the dprint is not installed, the output will be

'dprint' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

on my machine.

https://github.com/dprint/dprint-vscode/blob/ddf2e727c23ff1179ae046730a84c0f00ec9c661/src/dprint-shell.ts#L37-L64

heroboy avatar Jul 30 '20 08:07 heroboy

Thanks for the info! That was helpful.

dsherret avatar Jul 30 '20 13:07 dsherret

As per discussion in commit, reopening.

dsherret avatar Jul 31 '20 01:07 dsherret