so this has been extremely frustrating, ever since swapping to pros ive had problems with random errors. The errors are shown in the image below, along with the output of the errors. There is no problems with my code, and these errors used to go away upon restarting vscode. now they are here indefinetely,
i have tried to run pros make clean & pros make, but pros make does not work because of some error.
i have saved every time anything happened
this happened about a week ago on a different pc and different brain, this one was working fine until it suddenly started happening today.
if anyone knows any way to fix this, any help is apreciated.
Output of Errors
Compiled src/main.cpp [ERRORS]
In file included from ./include/liblvgl/core/lv_obj.h:140,
from ./include/liblvgl/lvgl.h:35,
from ./include/liblvgl/llemu.h:46,
from ./include/pros/llemu.h:17,
from ./include/api.h:57,
from ./include/main.h:37,
from src/main.cpp:1:
./include/liblvgl/core/lv_obj_style.h: In function ‘void lv_obj_remove_style_all(_lv_obj_t*)’:
./include/liblvgl/core/lv_obj_style.h:94:48: warning: bitwise operation between different enumeration types ‘’ and ‘’ is deprecated [-Wdeprecated-enum-enum-conversion]
94 | lv_obj_remove_style(obj, NULL, LV_PART_ANY | LV_STATE_ANY);
| ~^
In file included from ./include/pros/device.hpp:22,
from ./include/api.h:69:
./include/pros/rtos.hpp: In instantiation of ‘pros::rtos::Task::Task(F&&, uint32_t, uint16_t, const char*) [with F = int; uint32_t = long unsigned int; uint16_t = short unsigned int]’:
./include/pros/rtos.hpp:266:93: required from ‘pros::rtos::Task::Task(F&&, const char*) [with F = int]’
src/main.cpp:611:55: required from here
./include/pros/rtos.hpp:230:19: error: no matching function for call to ‘std::function<void()>::function(int)’
from ./include/api.h:24:
C:/Users/mrder/AppData/Roaming/Code/User/globalStorage/sigbots.pros/install/pros-toolchain-windows/usr/arm-none-eabi/include/c++/13.3.1/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using std::__enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
C:/Users/mrder/AppData/Roaming/Code/User/globalStorage/sigbots.pros/install/pros-toolchain-windows/usr/arm-none-eabi/include/c++/13.3.1/bits/std_function.h:353:8: required by substitution of ‘template<class _Res, class … _ArgTypes> template<class _Cond, class _Tp> using std::function<_Res(_ArgTypes …)>::_Requires = std::__enable_if_t<_Cond::value, _Tp> [with _Cond = std::function<void()>::_Callable<int, int, std::__invoke_result<int&> >; _Tp = void; _Res = void; _ArgTypes = {}]’
C:/Users/mrder/AppData/Roaming/Code/User/globalStorage/sigbots.pros/install/pros-toolchain-windows/usr/arm-none-eabi/include/c++/13.3.1/bits/std_function.h:434:9: required from ‘pros::rtos::Task::Task(F&&, uint32_t, uint16_t, const char*) [with F = int; uint32_t = long unsigned int; uint16_t = short unsigned int]’
./include/pros/rtos.hpp:266:93: required from ‘pros::rtos::Task::Task(F&&, const char*) [with F = int]’
src/main.cpp:611:55: required from here
C:/Users/mrder/AppData/Roaming/Code/User/globalStorage/sigbots.pros/install/pros-toolchain-windows/usr/arm-none-eabi/include/c++/13.3.1/type_traits:116:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
| ^~~~~~~~~
C:/Users/mrder/AppData/Roaming/Code/User/globalStorage/sigbots.pros/install/pros-toolchain-windows/usr/arm-none-eabi/include/c++/13.3.1/bits/std_function.h:368:7: note: candidate: ‘std::function<_Res(_ArgTypes …)>::function() [with _Res = void; _ArgTypes = {}]’
368 | function() noexcept
| ^~~~~~~~
C:/Users/mrder/AppData/Roaming/Code/User/globalStorage/sigbots.pros/install/pros-toolchain-windows/usr/arm-none-eabi/include/c++/13.3.1/bits/std_function.h:368:7: note: candidate expects 0 arguments, 1 provided
./include/pros/rtos.hpp:231:36: error: static assertion failed
make: *** [common.mk:283: bin/main.cpp.o] Error 1
ERROR - pros.cli.build:make - Failed to make project: Exit Code 2 - pros-cli version:3.5.4
PROS-CLI Version: 3.5.4
PROS-Kernel Version: 4.1.0
± Error
---------------------------------------------------------------------+
| Failed to build |
±----------------------------------------------------------------------------+
Sentry is attempting to send 1 pending events
Waiting up to 2 seconds
Press Ctrl-Break to quit