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

Running the tests on a vanilla fork fails #9539

Closed
carlosduclos opened this issue Oct 30, 2017 · 6 comments · Fixed by #9545
Closed

Running the tests on a vanilla fork fails #9539

carlosduclos opened this issue Oct 30, 2017 · 6 comments · Fixed by #9545
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly build This change relates to ESLint's build process

Comments

@carlosduclos
Copy link

Tell us about your environment

  • ESLint Version: cloned from master
  • Node Version: v6.10.2
  • npm Version: 3.10.10

What parser (default, Babel-ESLint, etc.) are you using?

Please show your full configuration:

Configuration

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

npm test

What did you expect to happen?

What actually happened? Please include the actual, raw output from ESLint.

> node Makefile.js test

Validating Makefile.js
Validating .eslintrc.js
Validating JSON Files
Validating Markdown Files
Validating JavaScript files
Validating JavaScript test files
Validating rules

  [▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬․]
  [▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬]

  17437 passing (2m)
  25 failing

  1) indent valid function foo() {
  <span>
    {condition ?
      <Thing
        foo={super}
      /> :
      <Thing/>
    }
  </span>
}:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: '        foo={super}',
    message: 'Parsing error: Unexpected token }',
    line: 5,
    column: 19 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  2) keyword-spacing valid class A { a() { [super]; } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { [super]; } }',
    message: 'Parsing error: Unexpected token ]',
    line: 1,
    column: 23 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  3) keyword-spacing valid class A { a() { [ super ]; } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { [ super ]; } }',
    message: 'Parsing error: Unexpected token ]',
    line: 1,
    column: 25 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  4) keyword-spacing valid class A { a() { () =>super; } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { () =>super; } }',
    message: 'Parsing error: Unexpected token ;',
    line: 1,
    column: 27 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  5) keyword-spacing valid class A { a() { () => super; } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { () => super; } }',
    message: 'Parsing error: Unexpected token ;',
    line: 1,
    column: 28 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  6) keyword-spacing valid class A { a() {super} }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() {super} }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 21 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  7) keyword-spacing valid class A { a() { super } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { super } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 23 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  8) keyword-spacing valid class A { a() { (0,super) } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { (0,super) } }',
    message: 'Parsing error: Unexpected token )',
    line: 1,
    column: 25 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  9) keyword-spacing valid class A { a() { (0, super) } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { (0, super) } }',
    message: 'Parsing error: Unexpected token )',
    line: 1,
    column: 26 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  10) keyword-spacing valid class A { a() { ({[super]: 0}) } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { ({[super]: 0}) } }',
    message: 'Parsing error: Unexpected token ]',
    line: 1,
    column: 25 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  11) keyword-spacing valid class A { a() { ({[ super ]: 0}) } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { ({[ super ]: 0}) } }',
    message: 'Parsing error: Unexpected token ]',
    line: 1,
    column: 27 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  12) keyword-spacing valid class A { a() { ({a:super }) } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { ({a:super }) } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 27 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  13) keyword-spacing valid class A { a() { ({a: super }) } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { ({a: super }) } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 28 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  14) keyword-spacing valid class A { a() { ;super; } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { ;super; } }',
    message: 'Parsing error: Unexpected token ;',
    line: 1,
    column: 23 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  15) keyword-spacing valid class A { a() { ; super ; } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { ; super ; } }',
    message: 'Parsing error: Unexpected token ;',
    line: 1,
    column: 25 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  16) keyword-spacing valid class A { a() { (super) } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { (super) } }',
    message: 'Parsing error: Unexpected token )',
    line: 1,
    column: 23 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  17) keyword-spacing valid class A { a() { ( super ) } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { ( super ) } }',
    message: 'Parsing error: Unexpected token )',
    line: 1,
    column: 25 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  18) keyword-spacing valid class A { a() { b =super } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { b =super } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 26 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  19) keyword-spacing valid class A { a() { b = super } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { b = super } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 27 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  20) keyword-spacing valid class A { a() { !super } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { !super } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 24 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  21) keyword-spacing valid class A { a() { ! super } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { ! super } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 25 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  22) keyword-spacing valid class A { a() { `${super}` } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { `${super}` } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 25 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  23) keyword-spacing valid class A { a() { `${ super }` } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { `${ super }` } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 27 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  24) keyword-spacing valid class A { a() { <Foo onClick={super} /> } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { <Foo onClick={super} /> } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 36 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)

  25) keyword-spacing valid class A { a() { <Foo onClick={ super } /> } }:

      AssertionError: Should have no errors but had 1: [ { ruleId: null,
    fatal: true,
    severity: 2,
    source: 'class A { a() { <Foo onClick={ super } /> } }',
    message: 'Parsing error: Unexpected token }',
    line: 1,
    column: 38 } ]
      + expected - actual

      -1
      +0
      
      at testValidTemplate (lib/testers/rule-tester.js:9:10578)
      at Context.RuleTester.it (lib/testers/rule-tester.js:9:16858)



=============================================================================
Writing coverage object [/home/carlos/dev/jsfoundation/carlos-eslint/coverage/coverage.json]
Writing coverage reports at [/home/carlos/dev/jsfoundation/carlos-eslint/coverage]
=============================================================================

=============================== Coverage summary ===============================
Statements   : 99.49% ( 13566/13635 ), 156 ignored
Branches     : 98.47% ( 10434/10596 ), 116 ignored
Functions    : 99.79% ( 2324/2329 ), 26 ignored
Lines        : 99.49% ( 13438/13507 )
================================================================================
[BABEL] Note: The code generator has deoptimised the styling of "/home/carlos/dev/jsfoundation/carlos-eslint/node_modules/lodash/lodash.js" as it exceeds the max of "500KB".

START:
30 10 2017 10:31:43.221:WARN [watcher]: All files matched by "/home/carlos/dev/jsfoundation/carlos-eslint/node_modules/mocha/mocha.js" were excluded or matched by prior matchers.
30 10 2017 10:31:45.319:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
30 10 2017 10:31:45.320:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
30 10 2017 10:31:45.333:INFO [launcher]: Starting browser PhantomJS
30 10 2017 10:31:46.494:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket 9_ygSMgqoE3DAiG7AAAA with id 8091554

Finished in 0.743 secs / 0.563 secs @ 10:31:47 GMT+0100 (CET)

SUMMARY:
✔ 229 tests completed
npm ERR! Test failed.  See above for more details.
@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Oct 30, 2017
@aladdin-add aladdin-add added the needs info Not enough information has been provided to triage this issue label Oct 30, 2017
@eslint-deprecated
Copy link

Hi @carlosduclos, thanks for the issue. It looks like there's not enough information for us to know how to help you.

If you're reporting a bug, please be sure to include:

  1. The version of ESLint you are using (run eslint -v)
  2. What you did (the source code and ESLint configuration)
  3. The actual ESLint output complete with numbers
  4. What you expected to happen instead

Requesting a new rule? Please see Proposing a New Rule for instructions.

Requesting a rule change? Please see Proposing a Rule Change for instructions.

If it's something else, please just provide as much additional information as possible. Thanks!

@carlosduclos
Copy link
Author

  1. The version of ESLint you are using (run eslint -v)
    The latest from master, I forked and cloned the repository to my computer. I have not done anything except what is listed in https://eslint.org/docs/developer-guide/development-environment

  2. What you did (the source code and ESLint configuration)

npm install
npm test
  1. The actual ESLint output complete with numbers
    Pasted above

  2. What you expected to happen instead
    0 tests failed, since the build indicator in github shows that the build is passing.

@ilyavolodin
Copy link
Member

@carlosduclos Are you running this on Windows or Mac/Linux?

@not-an-aardvark
Copy link
Member

not-an-aardvark commented Oct 30, 2017

This issue was also noticed in #9542 (comment), so the build is failing on master too. At first glance, it looks like this was caused by the latest acorn upgrade; we seem to have some tests that rely on super being usable in an arbitrary location, but that now results in a parsing error due to a bugfix in acorn.

I think the correct fix is for us to remove all the tests that are currently failing, since they're not valid JavaScript.

@not-an-aardvark not-an-aardvark added accepted There is consensus among the team that this change meets the criteria for inclusion bug ESLint is working incorrectly build This change relates to ESLint's build process and removed needs info Not enough information has been provided to triage this issue triage An ESLint team member will look at this issue soon labels Oct 30, 2017
not-an-aardvark added a commit that referenced this issue Oct 30, 2017
This corrects some tests which used `super` in an invalid way, and are
now failing due to an acorn upgrade.
not-an-aardvark added a commit that referenced this issue Oct 30, 2017
This corrects some tests which used `super` in an invalid way, and are
now failing due to an acorn upgrade.
not-an-aardvark added a commit that referenced this issue Oct 30, 2017
This corrects some tests which used `super` in an invalid way, and are
now failing due to an acorn upgrade.
@carlosduclos
Copy link
Author

I ran this on Linux, Elementary Linux 04 (based on Ubuntu 16.04)

@ilyavolodin
Copy link
Member

@carlosduclos This issue has been fixed. It was caused by upgrade of Acorn library that started flagging some improper use of super keyword.

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Apr 29, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Apr 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly build This change relates to ESLint's build process
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants