Skip to content

PVS Studio throws AttributeError: 'NoneType' object has no attribute 'lower' #4237

@TD-er

Description

@TD-er

Configuration

Operating system:

PlatformIO Version (platformio --version):

Description of problem

The error itself seems to be similar to this (closed) issue: #3989

I also have contacted the PVS Studio team about this and their reply was:

Hello, Gijs.

We built and analyzed your project with settings as you described on the screenshot. It seems that the PlatformIO starts preprocessing incorrectly which causes fail of a preprocessor (non-zero return code) and an error log window to appear instead of the normal interface.

Unfortunately, this problem is specific for your project and doesn't reproduce with clear projects. Perhaps it will be a good idea to open an issue at the PlatformIO repository.

It is about my project ESPEasy: https://github.com/letscontrolit/ESPEasy

I do have several PIO envs defined for checking with PVS Studio. They all have names starting with: spec_debug_*

A while ago, the PVS Studio inspect option was running, but I could not browse through the found issues anymore.
Still the error output contained all PVS Studio output, so I could browse through it by copying it to a notepad and process them by hand.

N.B. Due to a very busy time with me moving to my rebuilt house, I had not yet found the time to open this issue.
My mail contact about this with the PVS Studio team was in the first half of March.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions