【问题标题】:PlatformIO CLion integration failed "Cannot run programm"PlatformIO CLion 集成失败“无法运行程序”
【发布时间】:2021-11-08 20:36:42
【问题描述】:

将 pio 集成到 CLion IDE 时失败。我将 PATH 变量包含到 ~/.profile 文件中(三种不同的方式):

export PATH=$PATH:~/.platformio/penv/bin

export PATH=$PATH:home/jonas/.platformio/penv/bin

export PATH="~/.platformio/penv/bin":$PATH

并且可以在没有 sudo 权限的情况下运行 pio – 版本(以及等效的 platformio)。

但是当我尝试在 CLion 中创建一个新的 pio 项目时,我总是得到 ```无法运行程序./home/jonas/.platformio/penv/bin”(在目录“/tmp”中):错误= 13,权限被拒绝``

【问题讨论】:

    标签: clion platformio


    【解决方案1】:

    好的,我搞定了。问题是 pio 的路径不完整。路径 (/home/jonas/.platformio/penv/bin/home/jonas/.platformio/penv/bin) 指向文件夹,但不指向要运行的文件。完整路径为:

    /home/jonas/.platformio/penv/bin/pio(或 platformio)。

    但是,在创建项目窗口中,您甚至不需要更正路径,它是在安装过程中自动创建的。这有点令人困惑。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-07
      • 1970-01-01
      • 2012-07-20
      • 2013-10-11
      • 2013-04-25
      相关资源
      最近更新 更多