Tencent / LuaHelper

LuaHelper is a High-performance lua VSCode plugin, Language Server Protocol for lua.
Other
617 stars 93 forks source link

Windows下配置luanch.json启动参数program时, 路径带有空格则启动失败. #154

Closed jqknono closed 1 year ago

jqknono commented 1 year ago

参照LuaPanda已修复的issue https://github.com/Tencent/LuaPanda/issues/152#issue-1302810282

Describe the bug

To Reproduce launch.json中配置program参数时, exe路径带空格启动.

报错如下:

[Listening] 调试器 VSCode Server 已启动,正在等待连接。  TargetName:LuaPanda Windows 3.x Port:8818
[Warning] 配置文件 launch.json 中的 program 路径有误: 
 + program 配置项的作用是,在调试器开始运行时拉起一个可执行文件(注意不是lua文件)。如无需此功能,建议 program 设置为 "" 或从 launch.json 中删除 program 项。
 + 当前设置的 'C:\Program Files\xxx\xxx.exe' 不存在或不是一个可执行文件。

Expected behavior 预期能正常启动程序.

Desktop (please complete the following information):

OS: Windows