Linux 下安装了 vscode 插件,安装了 hpm 发现不支持 Linux
qiushao@470p:/media/qiushao/source-code/projects/opensource/openharmony$ hpm --version
Cannot find the shell with path 'undefined\System32\cmd.exe'.
Create a hpm-cli configuration file, or change file '/home/min/.hpm/hpmrc' to be a hpm-cli configuration file.
其实对于系统开发者来说 Linux 开发环境更加友好。比垃圾 Windows 方便多了。
+1 那个windows
电脑完全没有"必须"的必要啊.
从windows
复制代码到linux
编译,再把结果拷回来烧到板子上,来来回回的多费劲...
本来linux
下就有vscode
,直接linux
下写代码,然后编辑编译烧录,不就简单多了吗.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
确实,希望能尽快支持 Linux 平台的开发。
我这好像没问题
hpm支持Linux
现在的问题是vscode在加载hpm的配置文件的时候 会修改配置文件的参数项shellPath="underflied/system32/cmd.exe"
这个地方应该是读取Linux下当前用户的shell界面的 比如说/bin/bash,/bin/fish,/bin/zsh之类的
尝试构建的时候输出错误
Building: helloworld
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module '/media/***/***/Github/C/***/Hello-World/%BUILD_SCRIPT%'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Build error: Worker stopped with exit code 1
Check error details by "/home/***/.hpm/log/debug/debug.2020-09-13-04-35-23.log"
上述错误提及到的log如下
[2020-09-13T04:35:23.929] [DEBUG] default - {
error: 'Worker stopped with exit code 1',
platform: 'linux',
node: 'v12.18.3',
hpm: '1.0.0',
argv: [ '/usr/bin/node', '/usr/bin/hpm', 'run', 'build' ],
env: {}
}
(部分路径内的部分字符涉及到个人隐私已隐藏)
装wsl2
cmd改成wsl
所以说还是不支持 Linux, 我们说的 Linux 不包括 wsl。
已弃坑
HiTool没有Mac版的吗?
多谢大家的关注。
基于最新架构的DevEco Device Tool 预计将于2021年1月份发布,预期将会支持Linux操作平台的一键编译、烧录
等,敬请期待。
登录 后才可以发表评论