对 VEXcode Pro V5 上的退出代码 2 进行故障排除

The VEX Visual Studio Code Extension has replaced VEXcode Pro V5, which is now end-of-life.

VEXcode Blocks and VEXcode Text remain actively developed and supported for all VEX platforms.

使用退出代码 2 关闭进程通常是编译/构建错误。


如何解决make错误2:

  • 每当您看到 make 进程因退出代码 2 错误而关闭时,您可以阅读输出中的日志以查看程序中的错误位置。 输出可以提供以下信息:
    • 错误位于文件中的哪一行/哪列
    • 错误原因是什么

输出信息:

  • 错误位于文件中的哪一行/哪列

20-30.png

在以下示例中,输出提供第 20 行(行)第 30 列有错误的信息。 显示为“20:30”。

错误原因是什么...

Pasted_image_0__1_.png

输出还提供了有关显示错误原因的信息。 表达式“Brain.Screen.print(“Hello”)”后缺少分号

注意:如果您运行的是旧版本的 VEXcode Pro V5 应用程序,则先前版本的 VEXcode Pro V5 允许在文件名或项目名称中使用特殊字符。

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: