【问题解决】RT-Thread Studio 打开RT-Thread Settings 报错

问题:

不使用缺省位置,使用自定义工程路径。
新建项目,打开 RT-Thread Settings 报错如下:

Error retrieving output from the rttconfig server, caused by .rtmenus, please check the error log.

在这里插入图片描述
控制台日志:

[10000] Failed to execute script k2j
Traceback (most recent call last):
  File "kconfig_new\k2j.py", line 611, in <module>
  File "kconfig_new\k2j.py", line 193, in main
  File "kconfig_new\kconfiglib.py", line 1030, in __init__
  File "kconfig_new\kconfiglib.py", line 2970, in _parse_block
kconfiglib.KconfigError: ./Kconfig:18: 'rt-thread/Kconfig' not found (in 'source "$RTT_DIR/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is unset or blank). Also note that unset environment variables expand to the empty string.
done!
  1. 参考:RT-Thread Settings 打不开时的部分解决方案 的方法无效
  2. 重启软件无效

解决:

1、项目路径改为使用缺省位置

在这里插入图片描述

在这里插入图片描述

2、或者切换工作空间

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/p1279030826/article/details/120459234