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

C/C++ project fails #142

Open
Timfedora opened this issue Jan 1, 2025 · 13 comments
Open

C/C++ project fails #142

Timfedora opened this issue Jan 1, 2025 · 13 comments

Comments

@Timfedora
Copy link

I have installed the beta version 17.2 and encountered an issue when creating a new C project. Although the project creation process initiates, it never generates any files or output. Instead, the process closes without any result or error messages.

Here are the steps I’ve taken so far to resolve the issue:

Reinstalled the beta version 17.2.
Reinstalled Visual Studio Code (current version: 1.69.2).

Please let me know if further information is needed to troubleshoot this issue.

@Timfedora
Copy link
Author

Here is what the issue looks like.

Screencast.From.2024-12-31.20-12-37.mp4

And here is some other info.

python --version
Python 3.13.1

tar --version
tar (GNU tar) 1.35
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.

git --version
git version 2.47.1

gcc --version
gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cmake --version
cmake version 3.30.5
CMake suite maintained and supported by Kitware (kitware.com/cmake).

make --version
GNU Make 4.4.1
Built for x86_64-redhat-linux-gnu
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

If there is any thing else you need just let me know.

@will-v-pi
Copy link
Collaborator

When you get the oddly coloured UI at 0:06, this is a bug - you should close that UI then reopen it so that you get the correctly coloured UI you see at 1:04. Also, it can take some time to clone the pico examples the first time (which has no progress bar), so you may need to wait slightly longer after clicking Create than you are currently - but I think the main issue is the bug of the UI not loading correctly, which then causes the extension to not work correctly.

@firew4lker
Copy link

I have the same issue on Archlinux. No project created. The UI seems to be OK.

@will-v-pi
Copy link
Collaborator

You could try installing the latest debug .vsix from GitHub Actions https://github.com/raspberrypi/pico-vscode/actions/workflows/release.yml?query=branch%3Amain which will provide more information for debugging.

You can view the extension logs by going to Help -> Toggle Developer Tools and opening the Console, and then post any errors with this extension that you see here (note that other extensions may have errors but these are usually unrelated)

@firew4lker
Copy link

The latest debug vsix fails to open with:

Cannot activate the 'Raspberry Pi Pico' extension because it depends on an unknown 'ms-vscode.cpptools' extension.

I am attaching the log file for the current version.

image

vscode-app-1736262814627.log.txt

@Timfedora
Copy link
Author

How did you download it?

@will-v-pi
Copy link
Collaborator

@firew4lker Are you using VS Codium (not VS Code)? If using VS Codium, you need to install the ovsx .vsix file, as the VS Code ones contain extension dependencies that aren't available on VS Codium

@firew4lker
Copy link

firew4lker commented Jan 7, 2025

The current version worked by starting vscode with the --enable-proposed-api ms-python.python option.

I guess the issue the open source version build?

https://archlinux.org/packages/extra/x86_64/code/

@will-v-pi
Copy link
Collaborator

How did you download it?

Go to https://github.com/raspberrypi/pico-vscode/actions/workflows/release.yml?query=branch%3Amain and click the latest action run (currently Add bug report issue template), then scroll down and download the artifact, then unzip that to get the .vsix files. You'll need to be logged into GitHub in order to download artifacts.

@Timfedora
Copy link
Author

Here's what it looks like.
image
con.txt

@Timfedora
Copy link
Author

image

@will-v-pi
Copy link
Collaborator

It looks like you may have cancelled the installation of the examples at some point, leading to a bad directory structure. Can you confirm if there is a /home/tim/.pico-sdk/examples/.git directory present - if there is you should just be able to delete the /home/tim/.pico-sdk/examples directory and retry the extension, and it should work (just wait longer after clicking Create).

will-v-pi added a commit that referenced this issue Jan 8, 2025
Also improves error handling with corrupted examples directories (#142)
@Timfedora
Copy link
Author

Ok

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

No branches or pull requests

4 participants
@firew4lker @will-v-pi @Timfedora and others