Error parsing vue files

Env and config

  • V1.2.0
  • Docker
  • Scan repository at Bitbucket
  • Run the pipeline manually for sonarqube
#Pipeline yml
    - step:
        size: 2x
        services:
        - docker
        name: SonarQube analysis
        script:
        - pipe: sonarsource/sonarqube-scan:1.2.0
          variables:
            SONAR_HOST_URL: $SONAR_HOST_URL
            SONAR_TOKEN: $SONAR_TOKEN
        caches:
        - sonar

//# Define the services and caches outside of the 'pipelines' section
definitions:
  services:
    docker:
      memory: 3072
  caches:
    sonar: ~/.sonar
#sonar-project.properties

sonar.projectKey=
sonar.projectName=
//# Set sources to analyse path
sonar.sources=api, frontend
//# Set file types by extension
sonar.javascript.file.suffixes=.js
sonar.typescript.file.suffixes=.ts,.tsx,.vue
sonar.eslint.reportPaths=eslint-report.json
sonar.typescript.lcov.reportPaths=coverage/lcov-report/lcov.info
//# set default encoding utf-8
sonar.sourceEncoding=UTF-8
sonar.javascript.node.maxspace=4096

#Process listing

INFO: 204/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/mixins/useDateFormatter.ts
ERROR: Failed to analyze file [frontend/src/components/molecules/Accordion.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/buttons/ActionButton.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/ToggleButton.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
ERROR: eslint-bridge Node.js process is unresponsive. This is most likely caused by process running out of memory. Consider setting sonar.javascript.node.maxspace to higher value (e.g. 4096).
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue

#Error
Error seems to be caused by an infinit loop sonarscanner runs into. It happens when the process get’s to the first vue file. This happens also on other repositories we have.

Hi,

Could we have the entire analysis log, please?

 
Thx,
Ann

Certainly

+ docker container run \
   --volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
   --volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
   --volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarqube-scan:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarqube-scan \
   --workdir=$(pwd) \
   --label=org.bitbucket.pipelines.system=true \
-env vars
   sonarsource/sonarqube-scan:1.2.0
Unable to find image 'sonarsource/sonarqube-scan:1.2.0' locally
1.2.0: Pulling from sonarsource/sonarqube-scan
c158987b0551: Pulling fs layer
ea25c8230e36: Pulling fs layer
bcb219a92eff: Pulling fs layer
9037f54546e0: Pulling fs layer
7d342efac65d: Pulling fs layer
7d342efac65d: Waiting
9037f54546e0: Waiting
c158987b0551: Verifying Checksum
c158987b0551: Download complete
bcb219a92eff: Verifying Checksum
bcb219a92eff: Download complete
c158987b0551: Pull complete
7d342efac65d: Download complete
9037f54546e0: Download complete
ea25c8230e36: Verifying Checksum
ea25c8230e36: Download complete
ea25c8230e36: Pull complete
bcb219a92eff: Pull complete
9037f54546e0: Pull complete
7d342efac65d: Pull complete
Digest: 
Status: Downloaded newer image for sonarsource/sonarqube-scan:1.2.0
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /opt/atlassian/pipelines/agent/build/sonar-project.properties
INFO: SonarScanner 4.8.0.2856
INFO: Java 11.0.17 Alpine (64-bit)
INFO: Linux 5.15.0-1037-aws amd64
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Analyzing on SonarQube server 10.0.0.68432
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=509ms
INFO: Server id: 
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=209ms
INFO: Load/download plugins (done) | time=10412ms
INFO: Process project properties
INFO: Process project properties (done) | time=9ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=2ms
INFO: Project key: 
INFO: Base dir: /opt/atlassian/pipelines/agent/build
INFO: Working dir: /opt/atlassian/pipelines/agent/build/.scannerwork
INFO: Load project settings for component key:
INFO: Load project settings for component key: (done) | time=122ms
INFO: Auto-configuring with CI 'Bitbucket Pipelines'
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=211ms
INFO: Load active rules
INFO: Load active rules (done) | time=4000ms
INFO: Load analysis cache
INFO: Load analysis cache (404) | time=102ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=129ms
INFO: Indexing files...
INFO: Project configuration:
INFO: 699 files indexed
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for json: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: Quality profile for web: 
INFO: ------------- Run sensors on module 
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=116ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=91ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=20ms
INFO: Sensor TypeScript analysis [javascript]
INFO: Found 3 tsconfig.json file(s): [/opt/atlassian/pipelines/agent/build/api/tsconfig.json, /opt/atlassian/pipelines/agent/build/cypress/tsconfig.json, /opt/atlassian/pipelines/agent/build/frontend/tsconfig.json]
WARN: Could not find tsconfig.json: /node_modules/@vue/tsconfig/tsconfig.node.json/tsconfig.json; falling back to an empty configuration.
WARN: Could not find tsconfig.json: /node_modules/@vue/tsconfig/tsconfig.web.json/tsconfig.json; falling back to an empty configuration.
WARN: Could not find tsconfig.json: /node_modules/@vue/tsconfig/tsconfig.web.json/tsconfig.json; falling back to an empty configuration.
INFO: Analyzing 180 files using tsconfig: /opt/atlassian/pipelines/agent/build/api/tsconfig.json
INFO: 485 source files to be analyzed
INFO: Analyzing 294 files using tsconfig: /opt/atlassian/pipelines/agent/build/frontend/tsconfig.app.json
INFO: 180/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/api/src/listings/listings.module.ts
ERROR: Failed to analyze file [frontend/src/components/views/onboard/agency/OnboardStep1.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconLinkedin.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/Link.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/organisms/modals/ModalHeader.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/admin/AdminListing.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/logos/LogoClient.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/ScrollableCheckboxField.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 187/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ScrollableCheckboxField.vue
ERROR: Failed to analyze file [frontend/src/components/molecules/DiscreteError.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconPadlock.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/mixins/commonFunctions.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/organisms/Table.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/views/project/creation/ProjectCreationStep03.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/templates/onboard/OnboardSteps.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/organisms/FocusJourneyHeader.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/views/superadmin/approvals/SuperadminApprovals.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 195/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/views/superadmin/approvals/SuperadminApprovals.vue
ERROR: Failed to analyze file [frontend/src/components/views/project/creation/ProjectCreationReview.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/mixins/useRedirection.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/organisms/project/ProjectInfoCard.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconCopy.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconStar.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconArrowDown.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/types/icons/index.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 202/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/types/icons/index.ts
ERROR: Failed to analyze file [frontend/src/components/views/user/ResetPassword.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/mixins/useDateFormatter.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/Accordion.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/buttons/ActionButton.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/ToggleButton.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
ERROR: eslint-bridge Node.js process is unresponsive. This is most likely caused by process running out of memory. Consider setting sonar.javascript.node.maxspace to higher value (e.g. 4096).
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
INFO: 207/485 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ToggleButton.vue
time="2023-07-17T11:54:17Z" level=error msg="error waiting for container: unexpected EOF"

If you need another repository log with the same result, let me know

Hi,

Thanks for the log. I see you’re not on the latest SonarQube, 10.1, but I’m not seeing any relevant-looking closed issues, so I’m going to flag this for the language experts.

 
Thx,
Ann

Hi @Carl_G,

can you try increasing the docker image memory to something like:

      services:
        docker:
          memory: 7168 or 8192

Also, increasing accordingly

sonar.javascript.node.maxspace=8192

Let me know if that helps, please.

Victor

I think both images are self explanatory …
bb_4096
and
bb_3072

So, no I cannot increase the memory quantity to be used

Hi @Carl_G,

I understand docker memory can still be increased to 4096, right? Can you change that?

Also, can you please provide debug logs (-X parameter or sonar.verbose=true in sonar.properties)?

Thanks,
Victor

When you see the last image it shows it is still to high (it was at 4096), so, again, no not possible. We are running against a Bitbucket ceiling here.

ok, sorry I thought you still had it set to 3072 as posted initially.

Please, provide the debug logs see if there is more information provided during analysis.

Cheers,
Victor

Look here:
https://community.sonarsource.com/t/error-parsing-vue-files/95914/3?u=carl_g

G’day Victor,

I had to exclude vue files as temporary solution
sonar.exclusions=**/*.vue
It has to do with the rules on vue which make the analysis crash. We build everything with typescript, could it be we need to build the application before analysing, instead of analysing the static code? That would further stress the limits of the memory I am afraid

Morning @Carl_G,

no, it’s not needed to build the project to be able to analyze it.

From what it seems those logs do not contain debug lines. You will need to add this line in your sonar.properties:

sonar.verbose=true

Can you please add that line and remove the exclusions on .vue files? Would like to see if the Node.js process which does the analysis prints any errors before crashing.

We know that Vue projects cause memory issues, and most of them appear on Bitbucket due to their memory limits. Having a single .vue file in your projects changes the way the js/ts analyzer works for the whole project, so depending on how many lines of code you have on .vue files it may be a worth compromise excluding .vue files: if there are not many, it may be worthy. Non-vue projects are much faster and memory efficient than non-Vue projects due to the on-the-fly .vue parsing. These are known issues and we would like to address them at some point.

In any case, it’s worth a try having an analysis that actually analyzes the whole project.

This was the first run without any limitations:

+ umask 000

+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone -n 
Cloning into '/opt/atlassian/pipelines/agent/build'...

+ git checkout 
Note: switching to ''.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at cf98fee resolved conflicts

+ git config user.name bitbucket-pipelines

+ git config user.email commits-noreply@bitbucket.org

+ git config push.default current

+ git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/

+ git remote set-url origin http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME

+ git reflog expire --expire=all --all

+ echo ".bitbucket/pipelines/generated" >> .git/info/exclude

+ chmod 777 $BUILD_DIR


Cache "sonar: ~/.sonar": Downloading
Cache "sonar: ~/.sonar": Not found

Default variables:
    XXXXX

Workspace variables:
    XXXXX

Repository variables:
    SONAR_HOST_URL
    SONAR_TOKEN

Images used:
    build : docker.io/atlassian/default-image@sha256:
+ docker container run \
   --volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
   --volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
   --volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarqube-scan:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarqube-scan \
   --workdir=$(pwd) \
   --label=org.bitbucket.pipelines.system=true \
   --env=......
   --env=SONAR_HOST_URL="$SONAR_HOST_URL" \
   --env=SONAR_TOKEN="$SONAR_TOKEN" \
   --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
   sonarsource/sonarqube-scan:1.2.0
Unable to find image 'sonarsource/sonarqube-scan:1.2.0' locally
1.2.0: Pulling from sonarsource/sonarqube-scan
c158987b0551: Pulling fs layer
ea25c8230e36: Pulling fs layer
bcb219a92eff: Pulling fs layer
9037f54546e0: Pulling fs layer
7d342efac65d: Pulling fs layer
9037f54546e0: Waiting
7d342efac65d: Waiting
c158987b0551: Verifying Checksum
c158987b0551: Download complete
bcb219a92eff: Verifying Checksum
bcb219a92eff: Download complete
c158987b0551: Pull complete
9037f54546e0: Verifying Checksum
9037f54546e0: Download complete
7d342efac65d: Download complete
ea25c8230e36: Verifying Checksum
ea25c8230e36: Download complete
ea25c8230e36: Pull complete
bcb219a92eff: Pull complete
9037f54546e0: Pull complete
7d342efac65d: Pull complete
Digest: sha256:169278ac7574b84e20d07ce775ac521b43807434fff1585dc5b81dedf4bd1256
Status: Downloaded newer image for sonarsource/sonarqube-scan:1.2.0
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /opt/atlassian/pipelines/agent/build/sonar-project.properties
INFO: SonarScanner 4.8.0.2856
INFO: Java 11.0.17 Alpine (64-bit)
INFO: Linux 5.15.0-1037-aws amd64
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Analyzing on SonarQube server 10.0.0.68432
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=575ms
INFO: Server id: 
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=163ms
INFO: Load/download plugins (done) | time=10936ms
INFO: Process project properties
INFO: Process project properties (done) | time=20ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=2ms
INFO: Project key: ............
INFO: Base dir: /opt/atlassian/pipelines/agent/build
INFO: Working dir: /opt/atlassian/pipelines/agent/build/.scannerwork
INFO: Load project settings for component key: '............'
INFO: Load project settings for component key: '............' (done) | time=124ms
INFO: Auto-configuring with CI 'Bitbucket Pipelines'
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=184ms
INFO: Load active rules
INFO: Load active rules (done) | time=4055ms
INFO: Load analysis cache
INFO: Load analysis cache (404) | time=102ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=130ms
INFO: Indexing files...
INFO: Project configuration:
INFO: 717 files indexed
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for json: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: Quality profile for web: .....
INFO: ------------- Run sensors on module xxxxxxxxxxxxx
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=122ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=168ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=39ms
INFO: Sensor TypeScript analysis [javascript]
INFO: Found 3 tsconfig.json file(s): [/opt/atlassian/pipelines/agent/build/api/tsconfig.json, /opt/atlassian/pipelines/agent/build/frontend/tsconfig.json, /opt/atlassian/pipelines/agent/build/cypress/tsconfig.json]
WARN: Could not find tsconfig.json: /node_modules/@vue/tsconfig/tsconfig.node.json/tsconfig.json; falling back to an empty configuration.
WARN: Could not find tsconfig.json: /node_modules/@vue/tsconfig/tsconfig.web.json/tsconfig.json; falling back to an empty configuration.
WARN: Could not find tsconfig.json: /node_modules/@vue/tsconfig/tsconfig.web.json/tsconfig.json; falling back to an empty configuration.
INFO: Analyzing 180 files using tsconfig: /opt/atlassian/pipelines/agent/build/api/tsconfig.json
INFO: 496 source files to be analyzed
INFO: 122/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/api/src/agencies/entities/location.entity.ts
INFO: Analyzing 294 files using tsconfig: /opt/atlassian/pipelines/agent/build/frontend/tsconfig.app.json
ERROR: Failed to analyze file [frontend/src/components/views/onboard/agency/OnboardStep1.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconLinkedin.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/Link.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 183/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/Link.vue
ERROR: Failed to analyze file [frontend/src/components/organisms/modals/ModalHeader.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/admin/AdminListing.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/logos/LogoClient.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/ScrollableCheckboxField.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 187/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/ScrollableCheckboxField.vue
ERROR: Failed to analyze file [frontend/src/components/molecules/DiscreteError.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconPadlock.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/mixins/commonFunctions.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/organisms/Table.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/views/project/creation/ProjectCreationStep03.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 192/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/views/project/creation/ProjectCreationStep03.vue
ERROR: Failed to analyze file [frontend/src/components/templates/onboard/OnboardSteps.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/organisms/FocusJourneyHeader.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/views/superadmin/approvals/SuperadminApprovals.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/views/project/creation/ProjectCreationReview.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/mixins/useRedirection.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/organisms/project/ProjectInfoCard.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 198/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/organisms/project/ProjectInfoCard.vue
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconCopy.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconStar.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/atoms/icons/IconArrowDown.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/types/icons/index.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/views/user/ResetPassword.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/mixins/useDateFormatter.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 204/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/mixins/useDateFormatter.ts
ERROR: Failed to analyze file [frontend/src/components/molecules/Accordion.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/components/molecules/buttons/ActionButton.vue]: File '@vue/tsconfig/tsconfig.web.json' not found.
ERROR: Failed to analyze file [frontend/src/stores/project.ts]: File '@vue/tsconfig/tsconfig.web.json' not found.
INFO: 206/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/components/molecules/buttons/ActionButton.vue
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
ERROR: eslint-bridge Node.js process is unresponsive. This is most likely caused by process running out of memory. Consider setting sonar.javascript.node.maxspace to higher value (e.g. 4096).
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
INFO: 207/496 files analyzed, current file: /opt/atlassian/pipelines/agent/build/frontend/src/stores/project.ts
ERROR: Failure during analysis, Node.js command to start eslint-bridge was: node --max-old-space-size=4096 /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/eslint-bridge-bundle/package/bin/server 41961 127.0.0.1 /opt/atlassian/pipelines/agent/build/.scannerwork true false 
java.lang.IllegalStateException: eslint-bridge is unresponsive
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:378)
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.analyzeTypeScript(EslintBridgeServerImpl.java:333)
	at org.sonar.plugins.javascript.eslint.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:155)
	at org.sonar.plugins.javascript.eslint.AnalysisWithWatchProgram.analyzeTsConfig(AnalysisWithWatchProgram.java:127)
	at org.sonar.plugins.javascript.eslint.AnalysisWithWatchProgram.analyzeFiles(AnalysisWithWatchProgram.java:84)
	at org.sonar.plugins.javascript.eslint.TypeScriptSensor.analyzeFiles(TypeScriptSensor.java:98)
	at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:73)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:88)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:61)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:79)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:61)
	at org.sonar.scanner.scan.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:82)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
	at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:403)
	at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:399)
	at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:368)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
	at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:137)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Caused by: java.net.http.HttpTimeoutException: request timed out
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:559)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:369)
	... 36 common frames omitted

INFO: Hit the cache for 0 out of 208
INFO: Miss the cache for 208 out of 208: ANALYSIS_MODE_INELIGIBLE [208/208]
INFO: Sensor TypeScript analysis [javascript] (done) | time=2226667ms
INFO: Sensor JavaScript inside HTML analysis [javascript]
time="2023-07-14T13:56:48Z" level=error msg="error waiting for container: unexpected EOF"

Hi @Carl_G,

sorry I still don’t see debug lines. Did you add the verbose property in sonar.properties?

Compare your output:

with debug enabled:

INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /github/workspace/sonar-project.properties
INFO: SonarScanner 4.8.0.2856
INFO: Java 11.0.19 Alpine (64-bit)
INFO: Linux 5.11.0-1028-aws amd64
DEBUG: keyStore is : 
DEBUG: keyStore type is : pkcs12
DEBUG: keyStore provider is : 
DEBUG: init keystore
DEBUG: init keymanager of type SunX509
DEBUG: Create: /opt/sonar-scanner/.sonar/cache
INFO: User cache: /opt/sonar-scanner/.sonar/cache

Sorry, not added, but having multiple problems on my desk right now. I’ll do it ASAP and post it

1 Like

Hi @Carl_G,

please post here your results after you are able to test the proposed solutions.