Replies: 6 comments 3 replies
|
@Hitooooo 部分插件针对系统环境是需要区分版本的,你可以从 https://open-vsx.org/ 或 https://marketplace.visualstudio.com/vscode 中找到对应系统环境下的插件进行部署。
这个实际上取决于插件实现,与框架关系不大,以 C++ 为例,你可以试一下升级插件或寻找其他可用插件,如 https://open-vsx.org/extension/franneck94/c-cpp-runner ,而针对 python 插件,由于高版本依赖了 notebook API 并不支持,可能会有部分使用问题。 |
|
@erha19 已经部署了https://github.com/microsoft/vscode-cpptools/releases/download/v1.16.3/cpptools-linux.vsix 问题仍无法解决,sumi兼容这个框架了吗? |
|
@Hitooooo 插件相关适配,目前 OpenSumi 只提供了到 VS Code 1.69.0 版本标准 API,同时如 notebook,timeline 等 API 是做了空实现,没有实际功能,需要自行评估插件是否可用。 同时,对于插件不能使用的情况,由于受测试环境限制,我们建议开发者自行通过如下方式进行排查:
|
|
在CloudIDE场景中,后台是Linux但在Windows的浏览器中打开,那么platform.ts中获取到的 |
|
@Hitooooo 了解了,这里就是环境判断导致的问题,应该使用 backendOS 来进行判断,使用示例如: ...
@Autowired(IApplicationService)
private readonly appService: IApplicationService;
...
if ((await this.appService.backendOS) === OperatingSystem.Windows) {
// Windows 环境判断
}
...见: 这里相关代码可能得从 common 移动到 browser 中进行判断,其中 common 在框架内是用于存放 browser 及 node 的公共部分逻辑,不能在这里引入 browser 相关内容。 |


Uh oh!
There was an error while loading. Please reload this page.
使用CodeRunner插件是可以执行Python/CPP代码的,但是使用vscode插件python(v2020.3.71113)和C/C++(v1.5.1)均无法调试。

python报错:
command not found: cmd.cpp报错:

执行环境:WSL2
版本:官方cloud ide
launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "C/C++: g++ build and debug active file", "type": "cppdbg", "request": "launch", "program": "${fileDirname}/${fileBasenameNoExtension}", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "miDebuggerPath": "/usr/bin/gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ], "preLaunchTask": "C/C++: g++ build active file" }, { "name": "Python: Current File", "type": "python", "request": "launch", "program": "${file}", "console": "integratedTerminal" } ] }不明白Linux环境为什么会执行windows平台cmd命令,这些插件能升级至vscode最新版本吗?
All reactions