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

path error with mbed on macOS #3379

Closed
sstaub opened this issue Feb 13, 2020 · 9 comments
Closed

path error with mbed on macOS #3379

sstaub opened this issue Feb 13, 2020 · 9 comments
Assignees
Labels
Milestone

Comments

@sstaub
Copy link

sstaub commented Feb 13, 2020

see https://community.platformio.org/t/path-problem-with-mbed-h/12001/12

@valeros
Copy link
Member

valeros commented Feb 14, 2020

Many thanks! Resolved in fbfbf34. Please retest with the latest platformio from dev branch, just run pio upgrade --dev in the terminal.

@valeros valeros closed this as completed Feb 14, 2020
@sstaub
Copy link
Author

sstaub commented Feb 14, 2020

Solved, thank you.

@ivankravets ivankravets reopened this Feb 14, 2020
chenrui333 pushed a commit to Homebrew/homebrew-core that referenced this issue Feb 18, 2020
- [x] Have you followed the [guidelines for contributing](https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md)?
- [x] Have you checked that there aren't other open [pull requests](https://github.com/Homebrew/homebrew-core/pulls) for the same formula update/change?
- [x] Have you built your formula locally with `brew install --build-from-source <formula>`, where `<formula>` is the name of the formula you're submitting?
- [x] Is your test running fine `brew test <formula>`, where `<formula>` is the name of the formula you're submitting?
- [x] Does your build pass `brew audit --strict <formula>` (after doing `brew install <formula>`)?

-----

* Improved VSCode template with special ``forceInclude`` field for direct includes via ``-include`` flag ([issue #3379](platformio/platformio-core#3379))
* Improved support of PIO Home on card-sized PC (Raspberry Pi, etc.) ([issue #3313](platformio/platformio-core#3313))
* Froze "marshmallow" dependency to 2.X for Python 2 ([issue #3380](platformio/platformio-core#3380))
* Fixed "TypeError: unsupported operand type(s)" when system environment variable is used by project configuration parser ([issue #3377](platformio/platformio-core#3377))
* Fixed an issue when Library Dependency Finder (LDF) ignores custom "libLDFMode" and "libCompatMode" options in [library.json](http://docs.platformio.org/page/librarymanager/config.html)
* Fixed an issue when generating of compilation database "compile_commands.json" does not work with Python 2.7 ([issue #3378](platformio/platformio-core#3378))

Closes #50367.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
@gracedotdotdot
Copy link

gracedotdotdot commented Mar 6, 2020

I also get a same problem on lubuntu, which is the Virtual Machine I add on my original windows PC.May I ask why?
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/home/ee2405/ee2405/mbed0/mbed-os-test-program/main.cpp).
image

@ivankravets
Copy link
Member

@gracedotdotdot do you use the latest PIO Core? Please open PlatformIO IDE Terminal and type pio upgrade.

@sajadghawami
Copy link

sajadghawami commented Mar 15, 2020

I am on a Mac and i still got that same problem, even when upgrading with "pio upgrade --dev":

Bildschirmfoto 2020-03-15 um 18 05 28

The error also says:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit

I ve been searching for at least 2 days to solve this issue...

@valeros
Copy link
Member

valeros commented Mar 15, 2020

Hi @sajadghawami ! What are the platform and board you're using? Could you please upload somewhere your c_cpp_properties.json file.

@sajadghawami
Copy link

sajadghawami commented Mar 15, 2020

hey @valeros Thanks for the quick reply! :)

This is the plattformio.ini:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:nano33ble]
platform = nordicnrf52
board = nano33ble
framework = arduino

And this is the c_cpp_properties.json:

{
    "configurations": [
        {
            "name": "!!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags"
        },
        {
            "name": "Mac",
            "macFrameworkPath": [],
            "includePath": [
                "/Users/CURRENT_USER/CURRENT_PROJECT/include",
                "/Users/CURRENT_USER/CURRENT_PROJECT/src",
                "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino",
                "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino/api/deprecated",
                "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/variants/ARDUINO_NANO33BLE",
                "/Users/CURRENT_USER/.platformio/lib/ArduinoBLE_ID5878/src",
                "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/PDM/src",
                "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/SPI",
                "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/USBHID",
                "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/USBMSD",
                "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/Wire",
                "/Users/CURRENT_USER/.platformio/packages/tool-unity",
                ""
            ],
            "browse": {
                "limitSymbolsToIncludedHeaders": true,
                "path": [
                    "/Users/CURRENT_USER/CURRENT_PROJECT/include",
                    "/Users/CURRENT_USER/CURRENT_PROJECT/src",
                    "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino",
                    "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino/api/deprecated",
                    "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/variants/ARDUINO_NANO33BLE",
                    "/Users/CURRENT_USER/.platformio/lib/ArduinoBLE_ID5878/src",
                    "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/PDM/src",
                    "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/SPI",
                    "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/USBHID",
                    "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/USBMSD",
                    "/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/Wire",
                    "/Users/CURRENT_USER/.platformio/packages/tool-unity",
                    ""
                ]
            },
            "defines": [
                "PLATFORMIO=40300",
                "ARDUINO_ARDUINO_NANO33BLE",
                "ARDUINO_ARCH_NRF52840",
                "ARM_MATH_CM4",
                "BOARD_PCA10056",
                "__CMSIS_RTOS",
                "CMSIS_VECTAB_VIRTUAL",
                "CMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\"",
                "COMPONENT_FLASHIAP=1",
                "COMPONENT_NSPE=1",
                "COMPONENT_PSA_SRV_EMUL=1",
                "COMPONENT_PSA_SRV_IMPL=1",
                "CONFIG_GPIO_AS_PINRESET",
                "__CORTEX_M4",
                "DEVICE_ANALOGIN=1",
                "DEVICE_FLASH=1",
                "DEVICE_I2C=2",
                "DEVICE_I2C_ASYNCH=1",
                "DEVICE_INTERRUPTIN=1",
                "DEVICE_ITM=1",
                "DEVICE_LPTICKER=1",
                "DEVICE_PORTIN=1",
                "DEVICE_PORTINOUT=1",
                "DEVICE_PORTOUT=1",
                "DEVICE_PWMOUT=1",
                "DEVICE_SERIAL=1",
                "DEVICE_SERIAL_ASYNCH=1",
                "DEVICE_SERIAL_FC=1",
                "DEVICE_SLEEP=1",
                "DEVICE_SPI=1",
                "DEVICE_SPI_ASYNCH=1",
                "DEVICE_SYSTICK_CLK_OFF_DURING_SLEEP=1",
                "DEVICE_TRNG=1",
                "DEVICE_USBDEVICE=1",
                "DEVICE_USTICKER=1",
                "FEATURE_BLE=1",
                "FEATURE_CRYPTOCELL310=1",
                "FEATURE_STORAGE=1",
                "__FPU_PRESENT=1",
                "__MBED__=1",
                "MBED_BUILD_TIMESTAMP=1568118004.1384244",
                "__MBED_CMSIS_RTOS_CM",
                "MBED_MPU_CUSTOM",
                "MBED_TICKLESS",
                "MBEDTLS_CONFIG_HW_SUPPORT",
                "NRF52840_XXAA",
                "NRF52_ERRATA_20",
                "TARGET_ARDUINO_NANO33BLE",
                "TARGET_CORDIO",
                "TARGET_CORDIO_LL",
                "TARGET_CORTEX",
                "TARGET_CORTEX_M",
                "TARGET_LIKE_CORTEX_M4",
                "TARGET_LIKE_MBED",
                "TARGET_M4",
                "TARGET_MCU_NRF52840",
                "TARGET_NAME=ARDUINO_NANO33BLE",
                "TARGET_NORDIC",
                "TARGET_NORDIC_CORDIO",
                "TARGET_NRF52",
                "TARGET_NRF52840",
                "TARGET_NRF5x",
                "TARGET_RELEASE",
                "TARGET_RTOS_M4_M7",
                "TARGET_SDK_15_0",
                "TARGET_SOFTDEVICE_NONE",
                "TOOLCHAIN_GCC",
                "TOOLCHAIN_GCC_ARM",
                "WSF_MAX_HANDLERS=10",
                "MBED_NO_GLOBAL_USING_DIRECTIVE=1",
                "USE_ARDUINO_PINOUT",
                "ARDUINO=10810",
                "ARDUINO_ARCH_MBED",
                ""
            ],
            "intelliSenseMode": "clang-x64",
            "cStandard": "c11",
            "cppStandard": "c++14",
            "compilerPath": "/Users/CURRENT_USER/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc",
            "compilerArgs": [
                "-mcpu=cortex-m4",
                "-mfloat-abi=softfp",
                "-mfpu=fpv4-sp-d16",
                "-mthumb",
                "-iprefix/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino",
                "@\"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/variants/ARDUINO_NANO33BLE/includes.txt\"",
                ""
            ]
        }
    ],
    "version": 4
}

Its basically a newly created and empty project

@valeros
Copy link
Member

valeros commented Mar 15, 2020

OK, that's strange, could you please try the following config:

[env:nano33ble]
platform = https://github.com/platformio/platform-nordicnrf52.git
board = nano33ble
framework = arduino

@sajadghawami
Copy link

after doing this, and rebuildig it seems to have worked! Thanks :)

Out of curiosity - how come?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants