开源改变世界!!

无法在 platformio 中编译 #429

推推 grbl 2年前 (2023-02-05) 227次浏览
关闭
be-engineer 打开了这个问题 2022 年 5 月 16 日 · 5 条评论
关闭

无法在 platformio 中编译#429

be-engineer 打开了这个问题 2022 年 5 月 16 日 · 5 条评论

评论

无法在 platformio 中编译 #429
工程师 评论了 2022 年 5 月 16 日  

请只提交最新版本代码的错误。您可以在启动消息中检查版本号。

不要添加错误标签。本回购协议的开发人员将在确认问题后执行此操作。

根据此页面提供 FluidNC 启动消息

请回答以下问题。

您使用的是什么版本的固件?
V3.4.4
问题是否可重复?
当我使用 platformio 在 vscode 中编译时,我收到了一些错误消息:
FluidNC/test/Pins/PinOptionParsing.cpp: In static member function ‘static void Pins::PinOptionParsing_NoArgs_Test::runDetail()’:

FluidNC/test/Pins/PinOptionParsing.cpp:19:19: warning: variable 'it' set but not used [-Wunused-but-set-variable]
         for (auto it : parser) {
                   ^
FluidNC/test/Pins/GPIO.cpp: In constructor 'Pins::GPIOISR::GPIOISR(int, int, int)':      
FluidNC/test/Pins/GPIO.cpp:304:43: error: expected primary-expression before ',' token   
             gpio16.attachInterrupt<GPIOISR, &GPIOISR::HandleISR>(this, mode);
                                           ^
FluidNC/test/Pins/GPIO.cpp:304:72: warning: left operand of comma operator has no effect 
[-Wunused-value]
             gpio16.attachInterrupt<GPIOISR, &GPIOISR::HandleISR>(this, mode);
                                                                        ^
FluidNC/test/Pins/GPIO.cpp:304:76: error: invalid operands of types 'void (Pins::GPIOISR::*)()' and 'int' to binary 'operator>'
             gpio16.attachInterrupt<GPIOISR, &GPIOISR::HandleISR>(this, mode);
                                                                            ^
Compiling .pio\build\wifi\lib882\TMCStepper\source\CHOPCONF.cpp.o
*** [.pio\build\wifi\src\test\Pins\GPIO.cpp.o] Error 1
============================== [FAILED] Took 24.99 seconds ==============================
Environment    Status    Duration
-------------  --------  ------------
wifi           FAILED    00:00:24.986
========================= 1 failed, 0 succeeded in 00:00:24.986 =========================

我只是从 github 克隆项目,没有任何修改。我能做些什么?
我试过编译Grbl_Esp32,没问题。

什么情况下会出现bug?

重要如果您粘贴固件代码,请使用C++ 语言的Markdown 代码和语法高亮。使用三个反勾法。

无法在 platformio 中编译 #429

我们需要更多信息,例如开始编译的方式、platformio 的版本以及编译的完整输出。仅显示错误消息并不能为我们提供了解您的设置与我们的设置有何不同所需的上下文。

无法在 platformio 中编译 #429
所有者

显示您尝试编译时的所有文本。编译开头的文本对于确保正确启动它非常重要。

请务必回答 MitchBradley 和我的问题。

无法在 platformio 中编译 #429

问题似乎是由新的 Platformio 版本 6 引起的。

无法在 platformio 中编译 #429
作者

今天换了一台电脑,重新编译,编译通过。有点奇怪

无法在 platformio 中编译 #429

该问题由 PR #431修复