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

Inspect Code fails on certain board types with "Bad JSON" #3790

Closed
sannoxdev opened this issue Dec 9, 2020 · 3 comments · Fixed by esphome/esphome#1618
Closed

Inspect Code fails on certain board types with "Bad JSON" #3790

sannoxdev opened this issue Dec 9, 2020 · 3 comments · Fixed by esphome/esphome#1618
Assignees
Milestone

Comments

@sannoxdev
Copy link

Inspect memory works, inspect code fails with “Bad JSON”. Certain board types work ok e.g. Arduino Uno (memory and code), while others fail the Code analysis e.g. Adafruit Feather M0 or SeeedStudios Wio Terminal. The problem can be reproduced with the simple blink example used on the platformio website and the following platformio.ini:

[env:uno]
platform = atmelavr
board = uno
framework = arduino

[env:zero]
platform = atmelsam
board = zero
framework = arduino

[env:seeed_wio_terminal]
platform = atmelsam
board = seeed_wio_terminal
framework = arduino
platform_packages = framework-arduino-samd-seeed@https://github.com/Seeed-Studio/ArduinoCore-samd.git

All boards will compile ok. Tested against VSCODE 1.51.1 / PIO 5.0.3 on Windows 10 20H2 and Ubuntu 20.04 with the same result.

@bentwookie
Copy link

Chiming in to say I'm having the same problem on an ESP 01 with the ini & versions below.

[env:esp01]
platform = espressif8266
board = esp01
framework = arduino
lib_deps = 
    adafruit/Adafruit NeoPixel@^1.7.0
    painlessmesh/painlessMesh@^1.4.5
    yiannisbourkelis/Uptime Library@^1.0.0
monitor_port = COM4
monitor_speed = 115200
build_type = debug
monitor_filters = esp8266_exception_decoder
check_tool = cppcheck

About info:

Version: 1.51.1 (user setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041


@ivankravets ivankravets transferred this issue from platformio/platformio-vscode-ide Jan 5, 2021
@ivankravets ivankravets added this to the 5.0.5 milestone Jan 5, 2021
@SERJSOCHI
Copy link

Same problem. Wemos D1 mini PRO.

Platform.ini

[env:d1_mini_pro]
platform = espressif8266
board = d1_mini_pro
framework = arduino
upload_speed = 921600
build_type = debug
build_flags = -Wall -Wextra -Wlogical-op -Wempty-body -Werror 

About:

Version: 1.52.1 (user setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042

@ivankravets ivankravets modified the milestones: 5.1.0, 5.1.1 Jan 27, 2021
@sannoxdev
Copy link
Author

Ivan, can I assist in troubleshooting the problem? Happy to assist if I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment