Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Intellisense Error for Raspberry Pi Pico boards #1354

Open
sstaub opened this issue Sep 23, 2021 · 5 comments · May be fixed by elektronikworkshop/cocopa#17
Open

Intellisense Error for Raspberry Pi Pico boards #1354

sstaub opened this issue Sep 23, 2021 · 5 comments · May be fixed by elektronikworkshop/cocopa#17

Comments

@sstaub
Copy link

sstaub commented Sep 23, 2021

Here a screenshot when using Raspberry Pi Pico boards, get an error which shouldn't happen
Bildschirmfoto 2021-09-23 um 14 35 57

@steeley
Copy link

steeley commented Jan 26, 2022

I have exactly same error, and have spent hours trying to fix it. Nothing works!!
Arduino IDE works fine.

@sstaub
Copy link
Author

sstaub commented Jan 26, 2022

Maybe it is a general problem 3rd party cores

@StefanKellerAC
Copy link

StefanKellerAC commented Dec 10, 2022

The extension under Windows 10 does not find the paths in the core's subdirectory \Pico-SDK

that may be a problem with \ and / when the extension parses the output, which is e.g.:

"-IC:\\Users\\stefan\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\2.6.4/pico-sdk/src/rp2040/hardware_regs/include/"

they are included by
" \rp2040\hardware\rp2040\2.6.4\lib\platform_inc.txt"
the "standard" includes are found

I proposed a dirty fix there:
earlephilhower/arduino-pico#960 (comment)

tylerjwatson added a commit to tylerjwatson/cocopa that referenced this issue May 13, 2023
This patch adds support for @ path directives, and `-i` GCC directory.

This is required for arduino-pico support as platform include paths are
specified via a platform_inc.txt that includes `-iwithprefix` lines.

Fixes microsoft/vscode-arduino#1354, earlephilhower/arduino-pico#960
@tylerjwatson
Copy link

Hi all,

I've created a PR for the cocopa library that adds support for GCC Directory Options that is required for arduino-pico to work in this extension.

image

is now

image

and my project now works properly.

This library hasn't been updated in a good while, but I hope the patch is merged in and dependency updated. My rp2040 project does not work correctly without it.

@tylerjwatson
Copy link

in the mean time, you're welcome to try out my build here: https://github.com/tylerjwatson/vscode-arduino/releases/tag/v0.6.1

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

Successfully merging a pull request may close this issue.

4 participants