1.1K Star 6.1K Fork 4.9K

OpenHarmony / docs

 / 详情

烧录工具能否支持 Linux ?

已完成
需求
创建于  
2020-09-11 16:58

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 方便多了。

评论 (10)

qiushaox 创建了需求
qiushaox 关联仓库设置为OpenHarmony/docs
展开全部操作日志

+1 那个windows电脑完全没有"必须"的必要啊.
windows复制代码到linux编译,再把结果拷回来烧到板子上,来来回回的多费劲...
本来linux下就有vscode,直接linux下写代码,然后编辑编译烧录,不就简单多了吗.

确实,希望能尽快支持 Linux 平台的开发。

我这好像没问题
输入图片说明

hpm支持Linux

NEEN 添加了
 
enhancement
标签
NEEN 添加了product-question(已删除)标签

现在的问题是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

装wsl2
cmd改成wsl

@vingen Linux用WSL???我开始疑惑了

所以说还是不支持 Linux, 我们说的 Linux 不包括 wsl。
已弃坑

HiTool没有Mac版的吗?

NEEN 任务状态待办的 修改为已确认

多谢大家的关注。
基于最新架构的DevEco Device Tool 预计将于2021年1月份发布,预期将会支持Linux操作平台的一键编译、烧录
等,敬请期待。

NEEN 任务状态已确认 修改为已完成
NEEN 移除了product-question(已删除)标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(9)
7478706 wx 335fb54218 1587459008 24256 gmg137 1578915532 58234 ystyle 1578915778 5260206 bmi yile 1578983381 1626456 vingen 1578956279
其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs

搜索帮助