PlatformIO Community

Strange path to source files after importing Arduino project on Ubuntu 20.04 in VScode

Hi,
I imported an Arduino project using the newly installed VScode PlatformIO plugin. I selected to import the libraries from the Arduino. I also had them installed using VScode, but I don’t know that it matters. I try to build my project, and I get this:
double_path_problem
The file cannot be found because somehow the path is repeated in the IDE. I grepped for anything that might have a double path in it without finding anything.

Here is what the terminal gives me:
> Executing task: platformio run <

Processing genericSTM32F103C8 (platform: ststm32; board: genericSTM32F103C8; framework: arduino)
-----------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103C8.html
PLATFORM: ST STM32 6.1.0 > STM32F103C8 (20k RAM. 64k Flash)
HARDWARE: STM32F103C8T6 72MHz, 20KB RAM, 64KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32-maple 2.10000.200103 (1.0.0) 
 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
Converting IQ_SDR_Quisk_Blue_Pill.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Etherkit Si5351> 2.1.4
|   |-- <Wire> 1.0
|-- <EEPROM>
|-- <Wire> 1.0
Building in release mode
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/board.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/boards.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/boards_setup.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/start.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/start_c.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/syscalls.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/HardwareTimer.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/Print.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/WString.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/avr/dtostrf.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/cxxabi-compat.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/ext_interrupts.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/hooks.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/itoa.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/adc.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/adc_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/bkp_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/dac.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/dma.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/dma_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/exc.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/exti.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/exti_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/flash.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/fsmc_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/gpio.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/gpio_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/i2c.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/i2c_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/iwdg.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/nvic.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/pwr.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/rcc.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/rcc_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/spi.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/spi_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/stm32f1/performance/isrs.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/stm32f1/performance/vector_table.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/systick.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/timer.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/timer_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usart.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usart_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usart_private.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/stm32f1/usb.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/stm32f1/usb_cdcacm.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/stm32f1/usb_reg_map.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/usb_lib/usb_core.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/usb_lib/usb_init.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/usb_lib/usb_mem.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/usb_lib/usb_regs.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/util.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/main.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/new.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/pwm.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/sdio.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32f1/util_hooks.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32f1/wiring_pulse_f1.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32f1/wirish_debug.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32f1/wirish_digital_f1.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/tone.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/usb_serial.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_analog.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_digital.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_math.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_shift.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_time.cpp.o
Compiling .pio/build/genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino.cpp.o
Compiling .pio/build/genericSTM32F103C8/src/ring_buffer.cpp.o
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:52:2: warning: #warning __PGMSPACE_H_ [-Wcpp]
 #warning __PGMSPACE_H_
  ^~~~~~~
src/ring_buffer.cpp: In function 'void store_char(unsigned char, ring_buffer*)':
src/ring_buffer.cpp:30:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (i != buffer->tail) {
       ~~^~~~~~~~~~~~~~~
Compiling .pio/build/genericSTM32F103C8/lib78c/Wire/SoftWire.cpp.o
Compiling .pio/build/genericSTM32F103C8/lib78c/Wire/Wire.cpp.o
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'bool read_settings()':
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:90:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while(i < sizeof(struct settings))
           ~~^~~~~~~~~
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'void write_settings()':
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:104:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while(i < sizeof(struct settings))
           ~~^~~~~~~~~
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'int parseFreq(String)':
Compiling .pio/build/genericSTM32F103C8/lib78c/Wire/utility/WireBase.cpp.o
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:249:17: warning: unused variable 'combinedresult' [-Wunused-variable]
   unsigned long combinedresult = 0;
                 ^~~~~~~~~~~~~~
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'int parseCarrier(String)':
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:275:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'void setup()':
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:353:13: warning: unused variable 'rev_id' [-Wunused-variable]
     uint8_t rev_id = si5351_init();
             ^~~~~~
Compiling .pio/build/genericSTM32F103C8/lib55e/Etherkit Si5351_ID708/si5351.cpp.o
Compiling .pio/build/genericSTM32F103C8/lib157/EEPROM/EEPROM.cpp.o
Compiling .pio/build/genericSTM32F103C8/lib157/EEPROM/flash_stm32.c.o
Archiving .pio/build/genericSTM32F103C8/lib78c/libWire.a
Indexing .pio/build/genericSTM32F103C8/lib78c/libWire.a
/home/frohro/.platformio/lib/Etherkit Si5351_ID708/src/si5351.cpp: In member function 'uint8_t Si5351::si5351_read(uint8_t)':
/home/frohro/.platformio/lib/Etherkit Si5351_ID708/src/si5351.cpp:1338:59: error: no matching function for call to 'TwoWire::requestFrom(uint8_t&, uint8_t, uint8_t)'
  Wire.requestFrom(i2c_bus_addr, (uint8_t)1, (uint8_t)false);
                                                           ^
In file included from /home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/Wire.h:42:0,
                 from /home/frohro/.platformio/lib/Etherkit Si5351_ID708/src/si5351.cpp:28:
/home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:101:11: note: candidate: uint8 WireBase::requestFrom(uint8, int)
     uint8 requestFrom(uint8, int);
           ^~~~~~~~~~~
/home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:101:11: note:   candidate expects 2 arguments, 3 provided
/home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:106:11: note: candidate: uint8 WireBase::requestFrom(int, int)
     uint8 requestFrom(int, int);
           ^~~~~~~~~~~
/home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:106:11: note:   candidate expects 2 arguments, 3 provided
*** [.pio/build/genericSTM32F103C8/lib55e/Etherkit Si5351_ID708/si5351.cpp.o] Error 1
======================================= [FAILED] Took 5.07 seconds =======================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

The project compiles fine in the Arduino IDE.
> Executing task: platformio run <

Processing genericSTM32F103C8 (platform: ststm32; board: genericSTM32F103C8; framework: arduino)
-----------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103C8.html
PLATFORM: ST STM32 6.1.0 > STM32F103C8 (20k RAM. 64k Flash)
HARDWARE: STM32F103C8T6 72MHz, 20KB RAM, 64KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32-maple 2.10000.200103 (1.0.0) 
 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
Converting IQ_SDR_Quisk_Blue_Pill.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Etherkit Si5351> 2.1.4
|   |-- <Wire> 1.0
|-- <EEPROM>
|-- <Wire> 1.0
Building in release mode
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/board.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/boards.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/boards_setup.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/start.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/start_c.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/wirish/syscalls.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/HardwareTimer.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/Print.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/WString.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/avr/dtostrf.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/cxxabi-compat.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/ext_interrupts.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/hooks.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/itoa.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/adc.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/adc_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/bkp_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/dac.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/dma.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/dma_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/exc.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/exti.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/exti_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/flash.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/fsmc_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/gpio.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/gpio_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/i2c.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/i2c_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/iwdg.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/nvic.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/pwr.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/rcc.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/rcc_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/spi.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/spi_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/stm32f1/performance/isrs.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/stm32f1/performance/vector_table.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/systick.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/timer.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/timer_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usart.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usart_f1.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usart_private.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/stm32f1/usb.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/stm32f1/usb_cdcacm.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/stm32f1/usb_reg_map.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/usb_lib/usb_core.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/usb_lib/usb_init.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/usb_lib/usb_mem.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/usb/usb_lib/usb_regs.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/libmaple/util.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/main.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/new.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/pwm.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/sdio.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32f1/util_hooks.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32f1/wiring_pulse_f1.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32f1/wirish_debug.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32f1/wirish_digital_f1.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/tone.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/usb_serial.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_analog.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_digital.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_math.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_shift.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wirish_time.cpp.o
Compiling .pio/build/genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino.cpp.o
Compiling .pio/build/genericSTM32F103C8/src/ring_buffer.cpp.o
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:52:2: warning: #warning __PGMSPACE_H_ [-Wcpp]
 #warning __PGMSPACE_H_
  ^~~~~~~
src/ring_buffer.cpp: In function 'void store_char(unsigned char, ring_buffer*)':
src/ring_buffer.cpp:30:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (i != buffer->tail) {
       ~~^~~~~~~~~~~~~~~
Compiling .pio/build/genericSTM32F103C8/lib78c/Wire/SoftWire.cpp.o
Compiling .pio/build/genericSTM32F103C8/lib78c/Wire/Wire.cpp.o
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'bool read_settings()':
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:90:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while(i < sizeof(struct settings))
           ~~^~~~~~~~~
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'void write_settings()':
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:104:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while(i < sizeof(struct settings))
           ~~^~~~~~~~~
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'int parseFreq(String)':
Compiling .pio/build/genericSTM32F103C8/lib78c/Wire/utility/WireBase.cpp.o
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:249:17: warning: unused variable 'combinedresult' [-Wunused-variable]
   unsigned long combinedresult = 0;
                 ^~~~~~~~~~~~~~
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'int parseCarrier(String)':
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:275:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino: In function 'void setup()':
/home/frohro/Documents/PlatformIO/Projects/200615-185224-genericSTM32F103C8/src/IQ_SDR_Quisk_Blue_Pill.ino:353:13: warning: unused variable 'rev_id' [-Wunused-variable]
     uint8_t rev_id = si5351_init();
             ^~~~~~
Compiling .pio/build/genericSTM32F103C8/lib55e/Etherkit Si5351_ID708/si5351.cpp.o
Compiling .pio/build/genericSTM32F103C8/lib157/EEPROM/EEPROM.cpp.o
Compiling .pio/build/genericSTM32F103C8/lib157/EEPROM/flash_stm32.c.o
Archiving .pio/build/genericSTM32F103C8/lib78c/libWire.a
Indexing .pio/build/genericSTM32F103C8/lib78c/libWire.a
/home/frohro/.platformio/lib/Etherkit Si5351_ID708/src/si5351.cpp: In member function 'uint8_t Si5351::si5351_read(uint8_t)':
/home/frohro/.platformio/lib/Etherkit Si5351_ID708/src/si5351.cpp:1338:59: error: no matching function for call to 'TwoWire::requestFrom(uint8_t&, uint8_t, uint8_t)'
  Wire.requestFrom(i2c_bus_addr, (uint8_t)1, (uint8_t)false);
                                                           ^
In file included from /home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/Wire.h:42:0,
                 from /home/frohro/.platformio/lib/Etherkit Si5351_ID708/src/si5351.cpp:28:
/home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:101:11: note: candidate: uint8 WireBase::requestFrom(uint8, int)
     uint8 requestFrom(uint8, int);
           ^~~~~~~~~~~
/home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:101:11: note:   candidate expects 2 arguments, 3 provided
/home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:106:11: note: candidate: uint8 WireBase::requestFrom(int, int)
     uint8 requestFrom(int, int);
           ^~~~~~~~~~~
/home/frohro/.platformio/packages/framework-arduinoststm32-maple/STM32F1/libraries/Wire/utility/WireBase.h:106:11: note:   candidate expects 2 arguments, 3 provided
*** [.pio/build/genericSTM32F103C8/lib55e/Etherkit Si5351_ID708/si5351.cpp.o] Error 1
======================================= [FAILED] Took 5.07 seconds =======================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.  

The Arduino project builds fine with the Arduino IDE.

After playing around a little more, I’m wondering if the black dialog box is just a red herring, and there are some differences in the build setting for platformio and arduino that are causing the errors. I found a bunch of random text was in the file complained about in the terminal, and of course it wouldn’t compile.

Any suggestions?
Thanks,
Rob

I think the build problem was solved by adding this to my platformio.ini:
board_build.core = stm32

Then I used the trash can icon on the bottom bar to clean platformio and then built it again. The supposedly helpful box was a red herring. I found the idea for this here:

The red herring is annoying, and when I go to look at the problem tab to understand warnings, I keep getting it, and it won’t let me see the code I need to see. So even though I can now build without errors, the red herring remains.

Rob

Thanks,

Rob

Ok, so the code compiles now, because it was the wrong core.

Now, try giving IntelliSense (this is was controls the messages in the ‘Problems’ tab) a kick to see if it’s properly in sync by hitting ‘Rebuild IntelliSense Index’ (last of the ‘Project Tasks’) and then doing another Clean and then Build. If it still doesn’t clear the warnings, can you screenshot what your ‘Problems’ tab looks like, so we can see the actual warnings it’s giving now.

Thanks for the ideas, and screenshot. Unfortunately rebuilding IntelliSense doesn’t solve the issue. Here is what happens when I rebuild intellisense, clean, and rebuild. more_double_path_problem

This is still annoying me. Any other suggestions?

Thanks!

Rob

So exactly what is the folder structure like? Can you give me a screenshot with the file browser panel open? Maybe there is something stuffed up in the workspace. To check if that is the case, do a File->Close Folder until you have no files/folders open, and then do File -> Open Folder and re-open the Arduino project folder and see if the error goes away. Preferably do this after taking the screenshot, so we can see if that was the cause of the error :wink:

image

Sorry, I missed your note above.

I solved the problem by changing the .ino file to a .cpp. It seems to work fine now.

Thanks for all the assistance!

1 Like