wallabyjs / public

Repository for Wallaby.js questions and issues
http://wallabyjs.com
759 stars 45 forks source link

Optional Chaining broken in newest Wallaby version [Follow Up] #2976

Closed andrewryan1906 closed 2 years ago

andrewryan1906 commented 2 years ago

Hello,

This is a follow up to #2975. It was closed and I was unable to open it, and I wasn't sure if adding a comment to a closed issue would cause it to be visible to you; I apologize if this is a breach of protocol.

Your response @smcenlly was that I was using an old version of Wallaby; I'm using the latest version, 1.0.238. To confirm, I just reinstalled and re-downloaded Wallaby from here:

https://plugins.jetbrains.com/plugin/15742-wallaby

I also reset the cache. Same error. Diagnostics report says plugin version 1.0.238; but oddly now, the core version says 1.0.801 (not 802). Not sure what the difference is between the plugin and core version is, or how I can get a newer "core" version.

Diagnostics report:

{
  editorVersion: 'WebStorm 2022.1',
  pluginVersion: '1.0.238',
  editorType: 'IntelliJ',
  osVersion: 'darwin 20.6.0',
  nodeVersion: 'v14.16.0',
  coreVersion: '1.0.801',
  config: {
    files: [
      { pattern: 'config.js', ignore: false, trigger: true, load: true, instrument: true, order: 1 },
      { pattern: 'src/**/*.js', ignore: false, trigger: true, load: true, instrument: true, order: 2 },
      { pattern: 'tests/json/**/*', ignore: false, trigger: true, load: true, instrument: true, order: 3 }
    ],
    tests: [ { pattern: 'tests/unit/**/*spec.js', ignore: false, trigger: true, load: true, test: true, order: 4 } ],
    testFramework: { version: 'mocha@2.1.0', configurator: 'mocha@2.1.0', reporter: 'mocha@2.1.0', starter: 'mocha@2.1.0' },
    env: { type: 'node', runner: 'node', params: {}, viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
    diagnostics: {},
    filesWithNoCoverageCalculated: [],
    runAllTestsInAffectedTestFile: false,
    compilers: { '**/*.?(lit)coffee?(.md)': [Function (anonymous)] },
    preprocessors: {},
    maxConsoleMessagesPerTest: 100,
    autoConsoleLog: true,
    delays: { run: 0, edit: 100, update: 0 },
    workers: { initial: 0, regular: 0, recycle: false },
    teardown: undefined,
    hints: {
      ignoreCoverage: '__REGEXP /ignore coverage|istanbul ignore/',
      ignoreCoverageForFile: '__REGEXP /ignore file coverage/',
      commentAutoLog: '?',
      testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' }
    },
    automaticTestFileSelection: true,
    runSelectedTestsOnly: false,
    extensions: {},
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    loose: undefined,
    configCode: 'module.exports = function () {\n' +
      '    return {\n' +
      '\n' +
      '        files: [\n' +
      "            'config.js',\n" +
      "            'src/**/*.js',\n" +
      "            'tests/json/**/*',\n" +
      '        ],\n' +
      '\n' +
      '        tests: [\n' +
      "            'tests/unit/**/*spec.js'\n" +
      '        ],\n' +
      "        testFramework: 'mocha',\n" +
      '        setup: function () {\n' +
      "            global.expect = require('chai').expect;\n" +
      '        },\n' +
      '        env: {\n' +
      "            type: 'node',\n" +
      "            runner: 'node'\n" +
      '        }\n' +
      '    };\n' +
      '\n' +
      '};\n'
  },
  packageJSON: {
    dependencies: {
      '@rhythmsoftware/awards-nomination-processes-sdk': '^1.0.53',
      '@rhythmsoftware/aws': '^3.0.0',
      '@rhythmsoftware/devops': '^2.0.0',
      '@rhythmsoftware/dynamodb': '^5.0.0',
      '@rhythmsoftware/expressions': '^1.0.48',
      '@rhythmsoftware/feature-flags': '^1.0.9',
      '@rhythmsoftware/joi': '^1.0.8',
      '@rhythmsoftware/locking': '^2.0.0',
      '@rhythmsoftware/rolodex-contacts-sdk': '^1.0.742',
      '@rhythmsoftware/rolodex-records': '^1.0.27',
      '@rhythmsoftware/smartclient': '^2.0.0',
      '@rhythmsoftware/system-audit-logs-sdk': '^1.0.0',
      '@rhythmsoftware/system-emails-sdk': '^1.0.288',
      '@rhythmsoftware/system-unique-identifiers-sdk': '^1.0.91',
      '@rhythmsoftware/util': '^2.0.0'
    },
    devDependencies: {
      '@hapi/hoek': '^9.0.0',
      '@hapi/joi': '^17.0.0',
      '@splitsoftware/splitio': '^10.18.1',
      algoliasearch: '^4.0.0',
      'app-root-path': '^3.0.0',
      'async-retry': '^1.3.3',
      'aws-sdk': '^2.1056.0',
      'aws-xray-sdk': '^3.0.0',
      'aws-xray-sdk-core': '^3.0.0',
      axios: '^0.25.0',
      backoff: '^2.0.0',
      chai: '^4.0.0',
      'chai-as-promised': '^7.0.0',
      'chai-string': '^1.0.0',
      'child-process-promise': '^2.0.0',
      'clean-deep': '^3.4.0',
      cronstrue: '^1.125.0',
      'date-fns': '^2.28.0',
      'deep-diff': '^1.0.0',
      'deep-sort-object': '^1.0.0',
      expect: '^26.0.0',
      'expr-eval': '^2.0.2',
      'fast-json-patch': '^3.0.0-1',
      'google-libphonenumber': '^3.2.27',
      'handlebars-helpers': '^0.9.8',
      joi: '^14.0.0',
      'js-yaml': '^3.0.0',
      'json-rules-engine': '^6.1.2',
      'json-size': '^1.0.0',
      jsonpath: '^1.0.0',
      lodash: '^4.0.0',
      log4js: '^6.4.1',
      md5: '^2.0.0',
      minimatch: '^3.0.0',
      mocha: '^9.2.2',
      'mocha-junit-reporter': '^2.0.2',
      moment: '^2.29.3',
      'moment-timezone': '^0.5.0',
      'node-cache': '^5.1.2',
      'node-gzip': '^1.0.0',
      numeral: '^2.0.0',
      pluralize: '^8.0.0',
      'pre-commit': '^1.0.0',
      randomstring: '^1.0.0',
      'short-uuid': '^3.0.0',
      should: '^13.0.0',
      sinon: '^9.0.0',
      'sleep-promise': '^8.0.0',
      'stop-only': '^1.2.1',
      uuid: '^8.0.0',
      zipcodes: '^8.0.0'
    }
  },
  fs: { numberOfFiles: 33 },
  debug: [
    '2022-04-21T14:31:55.960Z project Wallaby Node version: v14.16.0\n',
    '2022-04-21T14:31:55.960Z project Wallaby config: <homeDir>/rhythm/awards-nominations/wallaby.js\n',
    '2022-04-21T14:31:56.557Z project File cache: <homeDir>/Library/Caches/JetBrains/WebStorm2022.1/wallaby/projects/da356babc4b1c32d\n',
    '2022-04-21T14:31:56.569Z uiService Listening port 51235\n',
    '2022-04-21T14:31:56.576Z workers Parallelism for initial run: 10, for regular run: 5\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #0\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #1\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #2\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #3\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #4\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #5\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #6\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #7\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #8\n',
    '2022-04-21T14:31:56.576Z workers Starting run worker instance #9\n',
    '2022-04-21T14:31:56.578Z workers Web server is listening at 56072\n',
    '2022-04-21T14:31:56.956Z workers Started run worker instance (delayed) #0\n',
    '2022-04-21T14:31:56.957Z workers Started run worker instance (delayed) #1\n',
    '2022-04-21T14:31:57.002Z workers Started run worker instance (delayed) #3\n',
    '2022-04-21T14:31:57.005Z workers Started run worker instance (delayed) #4\n',
    '2022-04-21T14:31:57.005Z workers Started run worker instance (delayed) #2\n',
    '2022-04-21T14:31:57.130Z workers Started run worker instance (delayed) #5\n',
    '2022-04-21T14:31:57.134Z workers Started run worker instance (delayed) #6\n',
    '2022-04-21T14:31:57.237Z workers Started run worker instance (delayed) #7\n',
    '2022-04-21T14:31:57.265Z workers Started run worker instance (delayed) #8\n',
    '2022-04-21T14:31:57.390Z workers Started run worker instance (delayed) #9\n',
    '2022-04-21T14:31:57.782Z project Stopping process pool\n'
  ]
}

Thanks, Andrew

smcenlly commented 2 years ago

It was closed and I was unable to open it, and I wasn't sure if adding a comment to a closed issue would cause it to be visible to you; I apologize if this is a breach of protocol.

No problem - it's completely fine to comment on closed issues.


If you are using a JetBrains editor (such as WebStorm, IntelliJ IDEA, PhpStorm, RubyMine or PyCharm), and your license expired after June 2019, Wallaby automatically uses the latest version available for your license. In your case, this means you have our latest JetBrains plugin version (v1.0.238), but are using an older version of Wallaby's core runtime (v1.0.801).

If you have reinstalled and version v1.0.801 is still being used, it means that your license has expired and so Wallaby has automatically downloaded/installed the last version supported by your license.

To use optional chaining with Wallaby, you may renew your license via our website (select to Claim your existing user discount), or else email us: hello@wallabyjs.com.

If you'd like to confirm the issue doesn't exist in the latest version prior to renewing your license, you may request a 15-day trial.