Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AliOS-studio][ESP32] tool chain path. #55

Closed
27-301 opened this issue Dec 22, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@27-301
Copy link

commented Dec 22, 2017

设了 esp32 的 tool chain path,一直不会生效,无休止的跳出 “The Path is required!”,必须要设成 arm 的。难道内部只校验了 arm tool chain 的 prefix?

@librae8226

This comment has been minimized.

Copy link
Collaborator

commented Dec 27, 2017

抱歉带来的不便
我也有遇到,你可以临时这样 hack 一下 😅
~/.vscode/extensions/alios.alios-studio-0.6.6 目录下,做如下修改,然后重启 vs code

diff --git a/src/yang-sdk/main.js b/src/yang-sdk/main.js
index a41520e..42c1582 100644
--- a/src/yang-sdk/main.js
+++ b/src/yang-sdk/main.js
@@ -24,9 +24,9 @@ module.exports = {
         if (!fsPlus.isDirectorySync(dir)) {
             return {error: 1, msg: 'path is not a directory!'};
         }
-        if (options.toolChain && !fsPlus.existsSync(path.join(dir, `arm-none-eabi-gcc${process.platform === 'win32' ? '.exe' : ''}`))) {
-            return {error: 1, msg: 'path is not a tool chain directory!'};
-        }
+//      if (options.toolChain && !fsPlus.existsSync(path.join(dir, `arm-none-eabi-gcc${process.platform === 'win32' ? '.exe' : ''}`))) {
+//          return {error: 1, msg: 'path is not a tool chain directory!'};
+//      }
         if (options.version) {
             let filePath = path.join(dir, 'kernel', 'rhino', 'rhino.mk'),
                 pkg = fsPlus.existsSync(filePath) && fs.readFileSync(filePath, {encoding: 'utf-8'}),

因为 AliOS-Studio 在快速迭代中,这个问题关系到一些设计上的完善,等正式 fix 以后我们再来 close 该 issue

@junjiec

This comment has been minimized.

Copy link
Collaborator

commented Jan 12, 2018

最新版本IDE已经修复

@junjiec junjiec closed this Jan 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.