microsoft / vscode-edge-devtools

A VSCode extension that allows you to use browser devtools from within the editor. The devtools will connect to an instance of Microsoft Edge giving you the ability to alter CSS styling, perform diagnostics, and debugging. Get it now at http://aka.ms/devtools-for-code
https://docs.microsoft.com/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension
MIT License
745 stars 254 forks source link

AnalyzerError: Missing or incompatible dependencies and hint breaking change #1385

Open iPoetDev opened 1 year ago

iPoetDev commented 1 year ago

Environment (please complete the following information):

Describe the bug:

Unable to sgtart webhint. Ensuare you are using the latest version of the hint package. Source: Microsoft Edge Tools for VS Code

Repro steps:

In VSCode Output

**** is a replace string / user account name.

Found hint at c:\Users\****\AppData\Roaming\Code - Insiders\User\globalStorage\ms-edgedevtools.vscode-edge-devtools\node_modules\hint\dist\src\lib\index.js

AnalyzerError: Missing or incompatible dependencies
    at validateResources (c:\Users\****AppData\Roaming\Code - Insiders\User\globalStorage\ms-edgedevtools.vscode-edge-devtools\node_modules\hint\dist\src\lib\analyzer.js:22:15)
    at Object.create [as createAnalyzer] (c:\Users\****\AppData\Roaming\Code - Insiders\User\globalStorage\ms-edgedevtools.vscode-edge-devtools\node_modules\hint\dist\src\lib\analyzer.js:67:9)
    at t.Analyzer.initWebhint (c:\Users\*****\.vscode\extensions\ms-edgedevtools.vscode-edge-devtools-2.1.1\node_modules\vscode-webhint\dist\src\server.js:1:3433)
    at async t.Analyzer.initWebhint (c:\Users\****\.vscode\extensions\ms-edgedevtools.vscode-edge-devtools-2.1.1\node_modules\vscode-webhint\dist\src\server.js:1:3484)
    at async t.Analyzer.validateTextDocument (c:\Users\****\.vscode\extensions\ms-edgedevtools.vscode-edge-devtools-2.1.1\node_modules\vscode-webhint\dist\src\server.js:1:3955)
    at async c:\Users\****\.vscode\extensions\ms-edgedevtools.vscode-edge-devtools-2.1.1\node_modules\vscode-webhint\dist\src\server.js:1:146537 {
  status: 'ResourceError',
  resources: {
    connector: [class LocalConnector] { schema: [Object] },
    formatters: [],
    hints: [
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function], [Function], [Function],
      [Function]
    ],
    incompatible: [],
    missing: [ 'hint-no-broken-links', 'hint-typescript-config/no-comment' ],
    parsers: [
      [class ManifestParser extends Parser],
      [class BabelConfigParser extends Parser],
      [class CSSParser extends Parser],
      [class HTMLParser extends Parser],
      [class JavascriptParser extends Parser],
      [class JSXParser extends Parser],
      [class CSSParser extends Parser],
      [class CSSParser extends Parser],
      [class TypeScriptParser extends Parser],
      [class TypeScriptConfigParser extends Parser],
      [class WebpackConfigParser extends Parser],
      [class JavascriptParser extends Parser]
    ]
  }
}

Expected behavior:

For webhint as bundled in MS Edge Tools to work without error and without notification

Additional context:

Have webhint installed separately as a NPM global/dev package and ran npm audit fix and got this


Will install hint@2.0.0, which is a breaking change
node_modules/package-json/node_modules/got
  package-json  <=6.5.0
  Depends on vulnerable versions of got
  node_modules/package-json
    latest-version  0.2.0 - 5.1.0
    Depends on vulnerable versions of package-json
    node_modules/latest-version
      update-notifier  0.2.0 - 5.1.0
      Depends on vulnerable versions of latest-version
      node_modules/update-notifier
        hint  >=3.0.0-beta.0
        Depends on vulnerable versions of @hint/configuration-development
        Depends on vulnerable versions of @hint/configuration-web-recommended
        Depends on vulnerable versions of update-notifier
        node_modules/hint
          @hint/configuration-accessibility  *
          Depends on vulnerable versions of @hint/connector-puppeteer
          Depends on vulnerable versions of @hint/formatter-html
          Depends on vulnerable versions of @hint/formatter-summary
          Depends on vulnerable versions of @hint/hint-axe
          Depends on vulnerable versions of hint
          node_modules/@hint/configuration-accessibility
            @hint/configuration-development  *
            Depends on vulnerable versions of @hint/configuration-accessibility
            Depends on vulnerable versions of @hint/configuration-progressive-web-apps
            Depends on vulnerable versions of @hint/connector-local
            Depends on vulnerable versions of @hint/formatter-html
            Depends on vulnerable versions of @hint/formatter-json
            Depends on vulnerable versions of @hint/formatter-summary
            Depends on vulnerable versions of @hint/hint-babel-config
            Depends on vulnerable versions of @hint/hint-button-type
            Depends on vulnerable versions of @hint/hint-compat-api
            Depends on vulnerable versions of @hint/hint-create-element-svg
            Depends on vulnerable versions of @hint/hint-css-prefix-order
            Depends on vulnerable versions of @hint/hint-disown-opener
            Depends on vulnerable versions of @hint/hint-highest-available-document-mode
            Depends on vulnerable versions of @hint/hint-leading-dot-classlist
            Depends on vulnerable versions of @hint/hint-meta-charset-utf-8
            Depends on vulnerable versions of @hint/hint-meta-viewport
            Depends on vulnerable versions of @hint/hint-no-bom
            Depends on vulnerable versions of @hint/hint-no-inline-styles
            Depends on vulnerable versions of @hint/hint-no-protocol-relative-urls
            Depends on vulnerable versions of @hint/hint-scoped-svg-styles
            Depends on vulnerable versions of @hint/hint-sri
            Depends on vulnerable versions of @hint/hint-typescript-config
            Depends on vulnerable versions of @hint/hint-webpack-config
            Depends on vulnerable versions of @hint/parser-babel-config
            Depends on vulnerable versions of @hint/parser-css
            Depends on vulnerable versions of @hint/parser-html
            Depends on vulnerable versions of @hint/parser-javascript
            Depends on vulnerable versions of @hint/parser-jsx
            Depends on vulnerable versions of @hint/parser-less
            Depends on vulnerable versions of @hint/parser-sass
            Depends on vulnerable versions of @hint/parser-typescript
            Depends on vulnerable versions of @hint/parser-typescript-config
            Depends on vulnerable versions of @hint/parser-webpack-config
            Depends on vulnerable versions of hint
            node_modules/@hint/configuration-development
            @hint/configuration-web-recommended  *
            Depends on vulnerable versions of @hint/configuration-accessibility
            Depends on vulnerable versions of @hint/connector-jsdom
            Depends on vulnerable versions of @hint/connector-local
            Depends on vulnerable versions of @hint/connector-puppeteer
            Depends on vulnerable versions of @hint/formatter-html
            Depends on vulnerable versions of @hint/formatter-json
            Depends on vulnerable versions of @hint/formatter-stylish
            Depends on vulnerable versions of @hint/formatter-summary
            Depends on vulnerable versions of @hint/hint-button-type
            Depends on vulnerable versions of @hint/hint-compat-api
            Depends on vulnerable versions of @hint/hint-content-type
            Depends on vulnerable versions of @hint/hint-create-element-svg
            Depends on vulnerable versions of @hint/hint-css-prefix-order
            Depends on vulnerable versions of @hint/hint-disown-opener
            Depends on vulnerable versions of @hint/hint-highest-available-document-mode
            Depends on vulnerable versions of @hint/hint-html-checker
            Depends on vulnerable versions of @hint/hint-http-cache
            Depends on vulnerable versions of @hint/hint-http-compression
            Depends on vulnerable versions of @hint/hint-image-optimization-cloudinary
            Depends on vulnerable versions of @hint/hint-leading-dot-classlist
            Depends on vulnerable versions of @hint/hint-meta-charset-utf-8
            Depends on vulnerable versions of @hint/hint-meta-viewport
            Depends on vulnerable versions of @hint/hint-no-bom
            Depends on vulnerable versions of @hint/hint-no-disallowed-headers
            Depends on vulnerable versions of @hint/hint-no-friendly-error-pages
            Depends on vulnerable versions of @hint/hint-no-html-only-headers
            Depends on vulnerable versions of @hint/hint-no-http-redirects
            Depends on vulnerable versions of @hint/hint-no-inline-styles
            Depends on vulnerable versions of @hint/hint-no-protocol-relative-urls
            Depends on vulnerable versions of @hint/hint-no-vulnerable-javascript-libraries
            Depends on vulnerable versions of @hint/hint-scoped-svg-styles
            Depends on vulnerable versions of @hint/hint-sri
            Depends on vulnerable versions of @hint/hint-ssllabs
            Depends on vulnerable versions of @hint/hint-strict-transport-security
            Depends on vulnerable versions of @hint/hint-stylesheet-limits
            Depends on vulnerable versions of @hint/hint-validate-set-cookie-header
            Depends on vulnerable versions of @hint/hint-x-content-type-options
            Depends on vulnerable versions of @hint/parser-css
            Depends on vulnerable versions of @hint/parser-html
            Depends on vulnerable versions of @hint/parser-javascript
            Depends on vulnerable versions of hint
            node_modules/@hint/configuration-web-recommended
          @hint/configuration-progressive-web-apps  *
          Depends on vulnerable versions of @hint/connector-jsdom
          Depends on vulnerable versions of @hint/connector-puppeteer
          Depends on vulnerable versions of @hint/formatter-html
          Depends on vulnerable versions of @hint/formatter-summary
          Depends on vulnerable versions of @hint/hint-apple-touch-icons
          Depends on vulnerable versions of @hint/hint-manifest-app-name
          Depends on vulnerable versions of @hint/hint-manifest-exists
          Depends on vulnerable versions of @hint/hint-manifest-file-extension
          Depends on vulnerable versions of @hint/hint-manifest-is-valid
          Depends on vulnerable versions of @hint/parser-manifest
          Depends on vulnerable versions of hint
          node_modules/@hint/configuration-progressive-web-apps
          @hint/connector-jsdom  *
          Depends on vulnerable versions of @hint/utils-connector-tools
          Depends on vulnerable versions of hint
          node_modules/@hint/connector-jsdom
          @hint/connector-local  *
          Depends on vulnerable versions of hint
          node_modules/@hint/connector-local
          @hint/connector-puppeteer  *
          Depends on vulnerable versions of @hint/utils-connector-tools
          Depends on vulnerable versions of hint
          node_modules/@hint/connector-puppeteer
          @hint/formatter-html  *
          Depends on vulnerable versions of hint
          node_modules/@hint/formatter-html
          @hint/formatter-json  *
          Depends on vulnerable versions of hint
          node_modules/@hint/formatter-json
          @hint/formatter-stylish  *
          Depends on vulnerable versions of hint
          node_modules/@hint/formatter-stylish
          @hint/formatter-summary  *
          Depends on vulnerable versions of hint
          node_modules/@hint/formatter-summary
          @hint/hint-apple-touch-icons  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-apple-touch-icons
          @hint/hint-axe  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-axe
          @hint/hint-babel-config  *
          Depends on vulnerable versions of @hint/parser-babel-config
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-babel-config
          @hint/hint-button-type  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-button-type
          @hint/hint-compat-api  *
          Depends on vulnerable versions of @hint/parser-css
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-compat-api
          @hint/hint-content-type  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-content-type
          @hint/hint-create-element-svg  *
          Depends on vulnerable versions of @hint/parser-javascript
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-create-element-svg
          @hint/hint-css-prefix-order  *
          Depends on vulnerable versions of @hint/parser-css
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-css-prefix-order
          @hint/hint-disown-opener  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-disown-opener
          @hint/hint-highest-available-document-mode  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-highest-available-document-mode
          @hint/hint-html-checker  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-html-checker
          @hint/hint-http-cache  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-http-cache
          @hint/hint-http-compression  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-http-compression
          @hint/hint-image-optimization-cloudinary  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-image-optimization-cloudinary
          @hint/hint-leading-dot-classlist  *
          Depends on vulnerable versions of @hint/parser-javascript
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-leading-dot-classlist
          @hint/hint-manifest-app-name  *
          Depends on vulnerable versions of @hint/parser-manifest
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-manifest-app-name
          @hint/hint-manifest-exists  *
          Depends on vulnerable versions of @hint/parser-manifest
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-manifest-exists
          @hint/hint-manifest-file-extension  *
          Depends on vulnerable versions of @hint/parser-manifest
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-manifest-file-extension
          @hint/hint-manifest-is-valid  *
          Depends on vulnerable versions of @hint/parser-manifest
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-manifest-is-valid
          @hint/hint-meta-charset-utf-8  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-meta-charset-utf-8
          @hint/hint-meta-viewport  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-meta-viewport
          @hint/hint-no-bom  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-no-bom
          @hint/hint-no-disallowed-headers  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-no-disallowed-headers
          @hint/hint-no-friendly-error-pages  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-no-friendly-error-pages
          @hint/hint-no-html-only-headers  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-no-html-only-headers
          @hint/hint-no-http-redirects  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-no-http-redirects
          @hint/hint-no-inline-styles  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-no-inline-styles
          @hint/hint-no-protocol-relative-urls  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-no-protocol-relative-urls
          @hint/hint-no-vulnerable-javascript-libraries  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-no-vulnerable-javascript-libraries
          @hint/hint-scoped-svg-styles  *
          Depends on vulnerable versions of @hint/parser-css
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-scoped-svg-styles
          @hint/hint-sri  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-sri
          @hint/hint-ssllabs  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-ssllabs
          @hint/hint-strict-transport-security  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-strict-transport-security
          @hint/hint-stylesheet-limits  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-stylesheet-limits
          @hint/hint-typescript-config  *
          Depends on vulnerable versions of @hint/parser-typescript-config
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-typescript-config
          @hint/hint-validate-set-cookie-header  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-validate-set-cookie-header
          @hint/hint-webpack-config  *
          Depends on vulnerable versions of @hint/parser-babel-config
          Depends on vulnerable versions of @hint/parser-typescript-config
          Depends on vulnerable versions of @hint/parser-webpack-config
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-webpack-config
          @hint/hint-x-content-type-options  *
          Depends on vulnerable versions of hint
          node_modules/@hint/hint-x-content-type-options
          @hint/parser-babel-config  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-babel-config
          @hint/parser-css  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-css
          @hint/parser-html  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-html
          @hint/parser-javascript  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-javascript
          @hint/parser-jsx  *
          Depends on vulnerable versions of @hint/parser-javascript
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-jsx
          @hint/parser-less  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-less
          @hint/parser-manifest  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-manifest
          @hint/parser-sass  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-sass
          @hint/parser-typescript  *
          Depends on vulnerable versions of @hint/parser-javascript
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-typescript
          @hint/parser-typescript-config  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-typescript-config
          @hint/parser-webpack-config  *
          Depends on vulnerable versions of hint
          node_modules/@hint/parser-webpack-config
          @hint/utils-connector-tools  *
          Depends on vulnerable versions of hint
          node_modules/@hint/utils-connector-tools
captainbrosset commented 1 year ago

Thanks for reaching out. I'll make sure this shows up on the team's radar for evaluation and fixing.

codepo8 commented 1 year ago

Seems to be an outdated hint package. Thanks for flagging this up

niemyjski commented 9 months ago

Yes, this is really annoying. I'm getting @layer is not supported when it is.

iPoetDev commented 9 months ago

I investigate or triage anymore as old machine has died and repeating the circumstances are impossible/impractical.

iPoetDev commented 9 months ago

I can not investigate or triage anymore as old machine has died and repeating the circumstances are impossible/impractical.