vscode协助建立cpptools

时间:2019-04-13 08:57:47

标签: visual-studio-code vscode-extensions

Ubuntu 18.04 ARM64

我已经下载并构建了vscode,这似乎可以正常工作。

我可以看到扩展市场并安装扩展。 C / C ++ IntelliSense,调试和代码浏览安装,但有时会出现依赖项安装失败:

(defn -start [^com.sun.javadoc.RootDoc root]
  (doseq [^com.sun.javadoc.ClassDoc c (.classes root)
          ^com.sun.javadoc.MethodDoc m (.methods c)]
    (try (println (.name m))
         (println "varargs:" (.isVarArgs m))
         (println "arity:" (count (.parameters m)))
         (println "return type:" (.returnType m))
         (catch Throwable e
           (println "something went wrong with" m))))
  true)

;; requires JDK 11 now: JAVA_HOME=~/Downloads/jdk-11.0.2.jdk/Contents/Home
(defn -main []
  (println (System/getProperty "java.home"))
  (let [dt (ToolProvider/getSystemDocumentationTool)]
    (.run dt nil nil nil
          (into-array ["-doclet" "clj_kondo.Doclet"
                       "-public"
                       "--source-path" "/tmp/"
                       "my.pack"]))))

它似乎在第二次尝试中成功了,但我不相信。

所以我克隆了vscode-cpptools并想自己构建它,但是我不确定它具有什么依赖关系或如何正确构建它。

任何提示表示赞赏!

因此请按照以下网址的构建和调试指南进行操作:

Updating C/C++ dependencies...

Downloading package 'Mono Framework Assemblies' (5368 KB)  Done!

Installing package 'Mono Framework Assemblies'
Failed at stage: installPackages
Error: end of central directory record signature not found

因此创建了包,当我尝试通过vscode扩展安装它时

$ git clone -b release https://github.com/Microsoft/vscode-cpptools
$ cd vscode-cpptools/Extension
$ npm install ! should install all dependencies but it forgets gulp
$ npm install gulp ! Manually install. I wonder what else it forgets
$ vsce package ! Should trigger the build and make the vsix package.

我认为还有很多其他依赖项缺失!!!

在Extension bin文件夹中没有找到两个重要的二进制文件:

Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: Missing binary at ~/.vscode-oss-dev/extensions/ms-vscode.cpptools-0.22.1/bin/Microsoft.VSCode.CPP.Extension.linux.

我也在Intel Ubuntu 18.04上进行了尝试,尽管Intel构建似乎做得更多,但它也无法构建二进制文件。

1 个答案:

答案 0 :(得分:1)

在这里找到答案:github.com/Microsoft/vscode-cpptools/issues/429,这表明目前不支持Aaarch64 Arm64。