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

[BUG] Compiler error on the latest bugfix. #18572

Closed
bill-orange opened this issue Jul 7, 2020 · 5 comments
Closed

[BUG] Compiler error on the latest bugfix. #18572

bill-orange opened this issue Jul 7, 2020 · 5 comments

Comments

@bill-orange
Copy link

Here's the error from VSCODE:

Compiling .pio\build\LPC1768\src\src\sd\Sd2Card.cpp.o
Marlin\src\module\temperature.cpp: In static member function 'static bool Temperature::wait_for_hotend(uint8_t, bool, bool)':
Marlin\src\module\temperature.cpp:3159:10: error: expected 'while' before 'Temperature'
3159 | bool Temperature::wait_for_bed(const bool no_wait_for_cooling/=true/
| ^~~~~~~~~~~
Marlin\src\module\temperature.cpp:3159:10: error: expected '(' before 'Temperature'
3159 | bool Temperature::wait_for_bed(const bool no_wait_for_cooling/=true/
| ^~~~~~~~~~~
| (
Marlin\src\module\temperature.cpp:3159:36: error: expected primary-expression before 'const'
3159 | bool Temperature::wait_for_bed(const bool no_wait_for_cooling/=true/
| ^~~~~
Marlin\src\module\temperature.cpp:3161:11: error: expected primary-expression before 'const'
3161 | , const bool click_to_cancel/=false/
| ^~~~~
Marlin\src\module\temperature.cpp:3163:6: error: expected ')' before '{' token
3163 | ) {
| ^~
| )
Marlin\src\module\temperature.cpp:3159:10: note: to match this '('
3159 | bool Temperature::wait_for_bed(const bool no_wait_for_cooling/=true/
| ^~~~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\LPC1768\src\src\module\temperature.cpp.o] Error 1
====================================== [FAILED] Took 237.94 seconds ======================================

Environment Status Duration


LPC1768 FAILED 00:03:57.943

Here are my config files:
Marlin.zip

Yesterday's build was fine. I tried recompiling after a clean and deleting .pio, no difference.

@T-SquaredProductions
Copy link

I was just about to post that. I had a compiler error too.

@Musicdad12
Copy link

Same Problem too

@thisiskeithb
Copy link
Member

See PR #18570 for the fix.

@bill-orange
Copy link
Author

Yup, PR #18570 fixed it.

@github-actions
Copy link

github-actions bot commented Sep 5, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants