Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

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

Open
jerrykal opened this issue Apr 5, 2017 · 10 comments
Open

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

jerrykal opened this issue Apr 5, 2017 · 10 comments

Comments

@jerrykal
Copy link

jerrykal commented Apr 5, 2017

@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 jerrykal changed the title [Bug] some special error is not linting after upgrade to 4.1.1 [Bug] Array index error is not linting after upgrade to 4.1.1 Apr 10, 2017
@jerrykal
Copy link
Author

@Arcanemagus Can you take a look ??

@jerrykal
Copy link
Author

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

@steelbrain
Copy link

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

@jerrykal
Copy link
Author

@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.

@steelbrain
Copy link

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

@jerrykal
Copy link
Author

@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

@steelbrain
Copy link

I can debug it this weekend, busy before that sorry

@jerrykal
Copy link
Author

Okay, I got it 👍

@jerrykal
Copy link
Author

jerrykal commented Jun 2, 2017

@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
Copy link
Author

@steelbrain Can you take a look ??

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

No branches or pull requests

2 participants