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

Cannot create new PlatformIO project in CLion #4751

Closed
drewmutt opened this issue Sep 25, 2023 · 3 comments
Closed

Cannot create new PlatformIO project in CLion #4751

drewmutt opened this issue Sep 25, 2023 · 3 comments

Comments

@drewmutt
Copy link

Configuration

Operating system:
Mac (M1) 12.5.1

PlatformIO Version (platformio --version):
6.1.11

Plugin Version:
233.6745.300 (had same issue in prev versions)

CLion Version:
CLion 2023.3 EAP (same issue in 2023.2.2)

Description of problem

The first step of the create new PlatformIO project, fails. Preventing me from creating new projects in CLion.

Steps to Reproduce

  1. File > New Project > PlatformIO

Actual Results

Behold the text "Gathering info..." in the board list, and the following error below it:
Use JsonReaderEx.setLenient(true) to accept malformed JSON at line 1 column 2

The "Create" button is expectingly gray, and progress cannot continue.

Expected Results

Display the list of boards, and allow the user to select one to continue.

Additional info

Looking into the source, I found a call to pio boards --json-output.

Executing it appears to work correctly, and the JSON doesn't appear to be corrupt.

@ak1987
Copy link

ak1987 commented Oct 22, 2023

If your any CLI input (like pio --version) comes with warning like this:
.platformio/penv/lib/python3.9/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
You should try downgrade library with following command:

. ~/.platformio/penv/bin/activate
pip install urllib3==1.26.15

JFYI: #4614
TLDR: Warning comes in board list output causing parser fail

@ivankravets
Copy link
Member

ivankravets commented Nov 29, 2023

@ak1987 , thanks for the solution. It is the right solution to check the pio boards command.

@Quantriple
Copy link

when i run "pio --version", show "PlatformIO Core, version 6.1.11", but clion has been staying gathering info.......,could you please help me ......

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