linter-clang icon indicating copy to clipboard operation
linter-clang copied to clipboard

[Bug] Array index error is not linting after upgrade to 4.1.1

Open jerrykal opened this issue 7 years ago • 10 comments

@Arcanemagus This problem is not duplicated either #200 and #202, linter only not linting when array index error, here's an example: v4.1.1 4 1 1 however, v4.0.0 doesn't have this problem: 4 0 0

jerrykal avatar Apr 05 '17 08:04 jerrykal

@Arcanemagus Can you take a look ??

jerrykal avatar May 19 '17 13:05 jerrykal

@Arcanemagus linter-gcc doesn't have this problem, maybe you can take a look.

jerrykal avatar May 25 '17 11:05 jerrykal

Hi @ooJerryLeeoo Can you show us the error message? and how it differs from the expected behavior

steelbrain avatar May 25 '17 15:05 steelbrain

@steelbrain The error message in the screenshot is

error: array type 'int [1]' is not assignable

and the expected behavior is in the second screenshot.

jerrykal avatar May 25 '17 15:05 jerrykal

Can you post the result of Linter: Debug command from command palette?

steelbrain avatar May 25 '17 15:05 steelbrain

@steelbrain

Platform: darwin
Atom Version: 1.18.0-beta1
Linter Version: 2.1.4
All Linter Providers: 
  - clang
  - ESLint
  - JSON Lint
Matching Linter Providers: 
  - clang
Disabled Linter Providers; 
Current File scopes: 
  - *
  - source.cpp
  - meta.block.c
  - constant.numeric.c

jerrykal avatar May 25 '17 15:05 jerrykal

I can debug it this weekend, busy before that sorry

steelbrain avatar May 25 '17 16:05 steelbrain

Okay, I got it 👍

jerrykal avatar May 25 '17 16:05 jerrykal

@steelbrain I've just found another linter error is not working too:

screen shot 2017-06-02 at 20 46 41

and the error message in the screenshot should be:

error: cannot initialize a variable of type 'int *' with an lvalue of type 'const char [5]'

jerrykal avatar Jun 02 '17 12:06 jerrykal

@steelbrain Can you take a look ??

jerrykal avatar Jun 14 '17 15:06 jerrykal