java.lang.IllegalStateException: Analysis of JS/TS files failed

Template for a good new topic, formatted with Markdown:

  • ALM used: Azure DevOps

  • CI system used: Azure DevOps

  • Scanner command used when applicable: SonarCloudPrepare@1

  • Languages of the repository: react

  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)

2024-03-12T09:29:26.2707326Z ##[error]ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Analysis of JS/TS files failed
2024-03-12T09:29:26.2708785Z ERROR: Error during SonarScanner execution
2024-03-12T09:29:26.2709322Z java.lang.IllegalStateException: Analysis of JS/TS files failed
2024-03-12T09:29:26.2718224Z ##[error]at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:102)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
2024-03-12T09:29:26.2723283Z 	at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:102)
2024-03-12T09:29:26.2723837Z 	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
2024-03-12T09:29:26.2724359Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
2024-03-12T09:29:26.2724923Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
2024-03-12T09:29:26.2725878Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
2024-03-12T09:29:26.2726419Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
2024-03-12T09:29:26.2726920Z 	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
2024-03-12T09:29:26.2727440Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-12T09:29:26.2728255Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-12T09:29:26.2729055Z 	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
2024-03-12T09:29:26.2729811Z 	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
2024-03-12T09:29:26.2730351Z 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
2024-03-12T09:29:26.2731025Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-12T09:29:26.2731528Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-12T09:29:26.2732125Z 	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
2024-03-12T09:29:26.2732650Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-12T09:29:26.2733158Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-12T09:29:26.2733646Z 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
2024-03-12T09:29:26.2734168Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-12T09:29:26.2734679Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-12T09:29:26.2735133Z 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
2024-03-12T09:29:26.2735558Z 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
2024-03-12T09:29:26.2739910Z ##[error]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:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at jdk.proxy1/jdk.proxy1.$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)
2024-03-12T09:29:26.2742920Z 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2024-03-12T09:29:26.2743438Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2024-03-12T09:29:26.2743931Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2024-03-12T09:29:26.2744495Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2024-03-12T09:29:26.2744993Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2024-03-12T09:29:26.2745481Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2024-03-12T09:29:26.2745939Z 	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
2024-03-12T09:29:26.2746351Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2024-03-12T09:29:26.2747158Z 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2024-03-12T09:29:26.2747603Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
2024-03-12T09:29:26.2748004Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
2024-03-12T09:29:26.2748399Z 	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
2024-03-12T09:29:26.2752795Z ##[error]Caused by: java.lang.IllegalArgumentException: Unable to create symbol on file filePath.tsx
	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:57)
	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.saveHighlightedSymbols(AnalysisProcessor.java:211)
	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:118)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyze(AnalysisWithProgram.java:179)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeProgram(AnalysisWithProgram.java:147)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeFiles(AnalysisWithProgram.java:100)
	at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:132)
	at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:79)
	... 33 more
2024-03-12T09:29:26.2755625Z Caused by: java.lang.IllegalArgumentException: Unable to create symbol on file filePath.tsx
2024-03-12T09:29:26.2756228Z 	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:57)
2024-03-12T09:29:26.2756809Z 	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.saveHighlightedSymbols(AnalysisProcessor.java:211)
2024-03-12T09:29:26.2757389Z 	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:118)
2024-03-12T09:29:26.2757949Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyze(AnalysisWithProgram.java:179)
2024-03-12T09:29:26.2758513Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeProgram(AnalysisWithProgram.java:147)
2024-03-12T09:29:26.2759084Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeFiles(AnalysisWithProgram.java:100)
2024-03-12T09:29:26.2759619Z 	at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:132)
2024-03-12T09:29:26.2760143Z 	at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:79)
2024-03-12T09:29:26.2760506Z 	... 33 more
2024-03-12T09:29:26.2763170Z ##[error]Caused by: java.lang.IllegalArgumentException: Start pointer [line=261, lineOffset=29] should be before end pointer [line=261, lineOffset=25]
	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRangeValidPointers(DefaultInputFile.java:347)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:288)
	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:55)
	... 40 more
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2024-03-12T09:29:26.2765026Z Caused by: java.lang.IllegalArgumentException: Start pointer [line=261, lineOffset=29] should be before end pointer [line=261, lineOffset=25]
2024-03-12T09:29:26.2765553Z 	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
2024-03-12T09:29:26.2766055Z 	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRangeValidPointers(DefaultInputFile.java:347)
2024-03-12T09:29:26.2766594Z 	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:288)
2024-03-12T09:29:26.2767138Z 	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:55)
2024-03-12T09:29:26.2767525Z 	... 40 more
2024-03-12T09:29:26.2767731Z ERROR: 
2024-03-12T09:29:26.2768158Z ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2024-03-12T09:29:26.6561545Z ##[error]The process 'C:\agent\_work\_tasks\SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1\1.44.0\sonar-scanner\bin\sonar-scanner.bat' failed with exit code 1
2024-03-12T09:29:26.6641936Z ##[section]Finishing: Run Code Analysis

If we remove these file, the Run Code Analysis works. We compare with other files and nothing different.

Hi,

Can you provide the full analysis log, starting from and including the analysis command?

And in the meantime, you can set exclusions for these files to be able to analyze the rest of the project.

 
Ann

It appears that it fails on the tsx (typescript) files when we are typed.

options={list?.countries.map((item: { country: string }) => {
  return {
    text: item?.country,
    value: item?.country,
  };
})}

basically it fails on this sentence: item: { country: string }

2024-03-14T12:42:17.0802918Z ##[section]Starting: Run Code Analysis
2024-03-14T12:42:17.0945379Z ==============================================================================
2024-03-14T12:42:17.0945686Z Task         : Run Code Analysis
2024-03-14T12:42:17.0945961Z Description  : Run scanner and upload the results to the SonarCloud server.
2024-03-14T12:42:17.0946190Z Version      : 1.44.0
2024-03-14T12:42:17.0946373Z Author       : sonarsource
2024-03-14T12:42:17.0946892Z Help         : Version: 1.44.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

[More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2024-03-14T12:42:17.0947613Z ==============================================================================
2024-03-14T12:42:17.4164502Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\agent2\_work\_tasks\SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1\1.44.0\sonar-scanner\bin\sonar-scanner.bat"
2024-03-14T12:42:17.5755368Z INFO: Scanner configuration file: C:\agent2\_work\_tasks\SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1\1.44.0\sonar-scanner\bin\..\conf\sonar-scanner.properties
2024-03-14T12:42:17.5768062Z INFO: Project root configuration file: NONE
2024-03-14T12:42:17.6032515Z INFO: SonarScanner 4.8.1.3023
2024-03-14T12:42:17.6033043Z INFO: Java 17.0.5 Oracle Corporation (64-bit)
2024-03-14T12:42:17.6033838Z INFO: Windows Server 2019 10.0 amd64
2024-03-14T12:42:17.9011853Z INFO: User cache: C:\Windows\ServiceProfiles\NetworkService\.sonar\cache
2024-03-14T12:42:18.4746651Z INFO: Analyzing on SonarCloud
2024-03-14T12:42:18.4747567Z INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
2024-03-14T12:42:18.9278427Z INFO: Load global settings
2024-03-14T12:42:19.1080819Z INFO: Load global settings (done) | time=187ms
2024-03-14T12:42:19.1127824Z INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
2024-03-14T12:42:19.1256494Z INFO: User cache: C:\Windows\ServiceProfiles\NetworkService\.sonar\cache
2024-03-14T12:42:19.1345167Z INFO: Loading required plugins
2024-03-14T12:42:19.1349731Z INFO: Load plugins index
2024-03-14T12:42:19.2687995Z INFO: Load plugins index (done) | time=136ms
2024-03-14T12:42:19.2690836Z INFO: Load/download plugins
2024-03-14T12:42:19.3033771Z INFO: Load/download plugins (done) | time=30ms
2024-03-14T12:42:19.8102465Z INFO: Found an active CI vendor: 'Azure DevOps'
2024-03-14T12:42:19.8251171Z INFO: Load project settings for component key: '@projectKey'
2024-03-14T12:42:20.0134812Z INFO: Load project settings for component key: '@projectKey' (done) | time=188ms
2024-03-14T12:42:20.0198098Z INFO: Process project properties
2024-03-14T12:42:20.0330751Z INFO: Project key: @projectKey
2024-03-14T12:42:20.0331192Z INFO: Base dir: C:\agent2\_work\249\s
2024-03-14T12:42:20.0331937Z INFO: Working dir: C:\agent2\_work\249\s\.scannerwork
2024-03-14T12:42:20.0407257Z INFO: Load project branches
2024-03-14T12:42:20.1743645Z INFO: Load project branches (done) | time=133ms
2024-03-14T12:42:20.1784566Z INFO: Check ALM binding of project '@projectKey'
2024-03-14T12:42:20.7724675Z INFO: Detected project binding: BOUND
2024-03-14T12:42:20.7728325Z INFO: Check ALM binding of project '@projectKey' (done) | time=594ms
2024-03-14T12:42:20.7761473Z INFO: Load project pull requests
2024-03-14T12:42:21.0014614Z INFO: Load project pull requests (done) | time=223ms
2024-03-14T12:42:21.0055966Z INFO: Load branch configuration
2024-03-14T12:42:21.2476253Z INFO: Load branch configuration (done) | time=244ms
2024-03-14T12:42:21.2578938Z INFO: Load quality profiles
2024-03-14T12:42:21.4477473Z INFO: Load quality profiles (done) | time=189ms
2024-03-14T12:42:21.4547563Z INFO: Load active rules
2024-03-14T12:42:24.2994421Z INFO: Load active rules (done) | time=2844ms
2024-03-14T12:42:24.3785208Z WARN: SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.
2024-03-14T12:42:24.4875637Z INFO: Organization key: @organizationKey
2024-03-14T12:42:24.4882972Z INFO: Pull request 22584 for merge into develop from features/minor_changes_operatives
2024-03-14T12:42:24.5133214Z INFO: Preprocessing files...
2024-03-14T12:42:25.0027970Z INFO: 6 languages detected in 493 preprocessed files
2024-03-14T12:42:25.0028813Z INFO: 0 files ignored because of inclusion/exclusion patterns
2024-03-14T12:42:25.2689293Z INFO: Loading plugins for detected languages
2024-03-14T12:42:25.2693614Z INFO: Load/download plugins
2024-03-14T12:42:25.3125014Z INFO: Load/download plugins (done) | time=43ms
2024-03-14T12:42:25.5562156Z INFO: Load project repositories
2024-03-14T12:42:25.7547861Z INFO: Load project repositories (done) | time=198ms
2024-03-14T12:42:25.7642746Z INFO: Indexing files...
2024-03-14T12:42:25.7643379Z INFO: Project configuration:
2024-03-14T12:42:25.7648982Z INFO:   Excluded sources: **/build-wrapper-dump.json, **/obj/**, **/*.dll, **/node_modules/**, **/packages/**, **/bin/**, **/coverage/**
2024-03-14T12:42:26.2515033Z INFO: 181 files indexed
2024-03-14T12:42:26.2592990Z INFO: Quality profile for css: Sonar way
2024-03-14T12:42:26.2593794Z INFO: Quality profile for json: SonarQube Way
2024-03-14T12:42:26.2594331Z INFO: Quality profile for ts: Sonar way
2024-03-14T12:42:26.2594861Z INFO: Quality profile for web: Sonar way
2024-03-14T12:42:26.2595400Z INFO: Quality profile for xml: Sonar way
2024-03-14T12:42:26.2595989Z INFO: ------------- Run sensors on module @PROJECT
2024-03-14T12:42:26.4555732Z INFO: Load metrics repository
2024-03-14T12:42:26.5750673Z INFO: Load metrics repository (done) | time=121ms
2024-03-14T12:42:26.5864187Z INFO: Sensor cache enabled
2024-03-14T12:42:26.5901318Z INFO: Load sensor cache
2024-03-14T12:42:26.6358396Z [javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake, javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake, javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake]
2024-03-14T12:42:26.6394132Z WARN: Failed to prepare download of the sensor cache
2024-03-14T12:42:26.6395497Z INFO: Load sensor cache (404) | time=50ms
2024-03-14T12:42:28.4276287Z INFO: Sensor HTML [web]
2024-03-14T12:42:28.4277085Z INFO: Sensor HTML is restricted to changed files only
2024-03-14T12:42:28.5121751Z INFO: Sensor HTML [web] (done) | time=85ms
2024-03-14T12:42:28.5124572Z INFO: Sensor XML Sensor [xml]
2024-03-14T12:42:28.5125118Z INFO: Sensor XML Sensor is restricted to changed files only
2024-03-14T12:42:28.5144349Z INFO: Sensor XML Sensor [xml] (done) | time=1ms
2024-03-14T12:42:28.5147507Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2024-03-14T12:42:28.5159567Z 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
2024-03-14T12:42:28.5169048Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2024-03-14T12:42:28.5169796Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
2024-03-14T12:42:28.5172473Z INFO: Sensor IaC CloudFormation Sensor [iac]
2024-03-14T12:42:28.5377240Z INFO: 0 source files to be analyzed
2024-03-14T12:42:28.5747600Z INFO: 0/0 source files have been analyzed
2024-03-14T12:42:28.5748136Z INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=58ms
2024-03-14T12:42:28.5752146Z INFO: Sensor IaC AzureResourceManager Sensor [iac]
2024-03-14T12:42:28.5753013Z INFO: Sensor IaC AzureResourceManager Sensor is restricted to changed files only
2024-03-14T12:42:28.5789518Z INFO: 0 source files to be analyzed
2024-03-14T12:42:28.6637945Z INFO: 0/0 source files have been analyzed
2024-03-14T12:42:28.6638655Z INFO: Sensor IaC AzureResourceManager Sensor [iac] (done) | time=89ms
2024-03-14T12:42:28.6642392Z INFO: Sensor JavaScript/TypeScript analysis [javascript]
2024-03-14T12:43:41.7851945Z INFO: Detected os: Windows Server 2019 arch: amd64 alpine: false. Platform: WIN_X64
2024-03-14T12:43:41.8813227Z INFO: Using embedded Node.js runtime
2024-03-14T12:43:41.8813818Z INFO: Using Node.js executable: 'C:\Windows\ServiceProfiles\NetworkService\.sonar\js\node-runtime\node.exe'.
2024-03-14T12:43:46.1865427Z INFO: Memory configuration: OS (32767 MB), Node.js (4144 MB).
2024-03-14T12:43:50.4579755Z INFO: Found 2 tsconfig.json file(s): [C:\agent2\_work\249\s\@PROJECT\packages\ui\tsconfig.json, C:\agent2\_work\249\s\@PROJECT\src\web\tsconfig.json]
2024-03-14T12:43:50.4595090Z INFO: Creating TypeScript program
2024-03-14T12:43:50.4595778Z INFO: TypeScript configuration file C:\agent2\_work\249\s\@PROJECT\packages\ui\tsconfig.json
2024-03-14T12:43:50.4596214Z INFO: 141 source files to be analyzed
2024-03-14T12:43:50.4959194Z INFO: Creating TypeScript program (done) | time=36ms
2024-03-14T12:43:50.4960040Z INFO: Starting analysis with current program
2024-03-14T12:43:50.4960686Z INFO: Analyzed 0 file(s) with current program
2024-03-14T12:43:50.4995674Z INFO: Creating TypeScript program
2024-03-14T12:43:50.4996420Z INFO: TypeScript configuration file C:\agent2\_work\249\s\@PROJECT\src\web\tsconfig.json
2024-03-14T12:43:54.5698589Z INFO: Creating TypeScript program (done) | time=4070ms
2024-03-14T12:43:54.5699311Z INFO: Starting analysis with current program
2024-03-14T12:44:00.4618171Z INFO: 72/141 files analyzed, current file: C:/agent2/_work/249/s/@PROJECT/src/web/src/contributions/helpers/index.tsx
2024-03-14T12:44:01.9712081Z ##[error]ERROR: Failure during analysis
java.lang.IllegalArgumentException: Unable to create symbol on file @PROJECT/src/web/src/profile/pages/address/step1.tsx
	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:57)
	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.saveHighlightedSymbols(AnalysisProcessor.java:211)
	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:118)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyze(AnalysisWithProgram.java:179)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeProgram(AnalysisWithProgram.java:147)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeFiles(AnalysisWithProgram.java:100)
	at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:132)
	at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:79)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
	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:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at jdk.proxy1/jdk.proxy1.$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.lang.IllegalArgumentException: Start pointer [line=308, lineOffset=44] should be before end pointer [line=308, lineOffset=41]
	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRangeValidPointers(DefaultInputFile.java:347)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:288)
	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:55)
	... 40 common frames omitted
2024-03-14T12:44:01.9723369Z ERROR: Failure during analysis
2024-03-14T12:44:01.9723843Z java.lang.IllegalArgumentException: Unable to create symbol on file @PROJECT/src/web/src/profile/pages/address/step1.tsx
2024-03-14T12:44:01.9724438Z 	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:57)
2024-03-14T12:44:01.9725025Z 	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.saveHighlightedSymbols(AnalysisProcessor.java:211)
2024-03-14T12:44:01.9725612Z 	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:118)
2024-03-14T12:44:01.9726174Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyze(AnalysisWithProgram.java:179)
2024-03-14T12:44:01.9726758Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeProgram(AnalysisWithProgram.java:147)
2024-03-14T12:44:01.9727332Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeFiles(AnalysisWithProgram.java:100)
2024-03-14T12:44:01.9727874Z 	at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:132)
2024-03-14T12:44:01.9728410Z 	at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:79)
2024-03-14T12:44:01.9728953Z 	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
2024-03-14T12:44:01.9729486Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
2024-03-14T12:44:01.9730008Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
2024-03-14T12:44:01.9730581Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
2024-03-14T12:44:01.9731129Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
2024-03-14T12:44:01.9731657Z 	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
2024-03-14T12:44:01.9732196Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:01.9733239Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:01.9734177Z 	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
2024-03-14T12:44:01.9734710Z 	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
2024-03-14T12:44:01.9735256Z 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
2024-03-14T12:44:01.9735784Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:01.9736304Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:01.9736912Z 	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
2024-03-14T12:44:01.9737447Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:01.9737968Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:01.9738478Z 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
2024-03-14T12:44:01.9738997Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:01.9739519Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:01.9739984Z 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
2024-03-14T12:44:01.9740406Z 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
2024-03-14T12:44:01.9740912Z 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2024-03-14T12:44:01.9741431Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2024-03-14T12:44:01.9741937Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2024-03-14T12:44:01.9742493Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2024-03-14T12:44:01.9742992Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2024-03-14T12:44:01.9743481Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2024-03-14T12:44:01.9744174Z 	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
2024-03-14T12:44:01.9744618Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2024-03-14T12:44:01.9745119Z 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2024-03-14T12:44:01.9745571Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
2024-03-14T12:44:01.9745990Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
2024-03-14T12:44:01.9746398Z 	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
2024-03-14T12:44:01.9746901Z Caused by: java.lang.IllegalArgumentException: Start pointer [line=308, lineOffset=44] should be before end pointer [line=308, lineOffset=41]
2024-03-14T12:44:01.9747442Z 	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
2024-03-14T12:44:01.9747950Z 	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRangeValidPointers(DefaultInputFile.java:347)
2024-03-14T12:44:01.9748495Z 	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:288)
2024-03-14T12:44:01.9749049Z 	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:55)
2024-03-14T12:44:01.9749464Z 	... 40 common frames omitted
2024-03-14T12:44:01.9749599Z 
2024-03-14T12:44:01.9749819Z INFO: Hit the cache for 0 out of 92
2024-03-14T12:44:01.9750140Z INFO: Miss the cache for 92 out of 92: FILE_CHANGED [92/92]
2024-03-14T12:44:17.8239966Z INFO: ------------------------------------------------------------------------
2024-03-14T12:44:17.8240727Z INFO: EXECUTION FAILURE
2024-03-14T12:44:17.8241246Z INFO: ------------------------------------------------------------------------
2024-03-14T12:44:17.8244438Z INFO: Total time: 2:00.264s
2024-03-14T12:44:17.8788081Z INFO: Final Memory: 17M/68M
2024-03-14T12:44:17.8789285Z INFO: ------------------------------------------------------------------------
2024-03-14T12:44:17.8791168Z ##[error]ERROR: Error during SonarScanner execution
2024-03-14T12:44:17.8792677Z ERROR: Error during SonarScanner execution
2024-03-14T12:44:17.8794004Z ##[error]java.lang.IllegalStateException: Analysis of JS/TS files failed
2024-03-14T12:44:17.8795251Z java.lang.IllegalStateException: Analysis of JS/TS files failed
2024-03-14T12:44:17.8800832Z ##[error]at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:102)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:17.8805043Z 	at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:102)
2024-03-14T12:44:17.8805843Z 	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
2024-03-14T12:44:17.8806669Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
2024-03-14T12:44:17.8807460Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
2024-03-14T12:44:17.8808295Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
2024-03-14T12:44:17.8809450Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
2024-03-14T12:44:17.8810224Z 	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
2024-03-14T12:44:17.8811007Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:17.8811763Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:17.8816727Z ##[error]at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:17.8820479Z 	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
2024-03-14T12:44:17.8821366Z 	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
2024-03-14T12:44:17.8822279Z 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
2024-03-14T12:44:17.8823209Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:17.8824024Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:17.8824544Z 	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
2024-03-14T12:44:17.8825065Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:17.8831794Z ##[error]at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
	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:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at jdk.proxy1/jdk.proxy1.$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)
2024-03-14T12:44:17.8835726Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:17.8836236Z 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
2024-03-14T12:44:17.8836759Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2024-03-14T12:44:17.8837273Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2024-03-14T12:44:17.8837730Z 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
2024-03-14T12:44:17.8838198Z 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
2024-03-14T12:44:17.8839037Z 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2024-03-14T12:44:17.8839568Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2024-03-14T12:44:17.8840068Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2024-03-14T12:44:17.8840633Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2024-03-14T12:44:17.8841124Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2024-03-14T12:44:17.8841616Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2024-03-14T12:44:17.8842077Z 	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
2024-03-14T12:44:17.8842502Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2024-03-14T12:44:17.8842997Z 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2024-03-14T12:44:17.8843450Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
2024-03-14T12:44:17.8843854Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
2024-03-14T12:44:17.8844235Z 	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
2024-03-14T12:44:17.8845748Z ##[error]Caused by: java.lang.IllegalArgumentException: Unable to create symbol on file @PROJECT/src/web/src/profile/pages/address/step1.tsx
	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:57)
2024-03-14T12:44:17.8846975Z Caused by: java.lang.IllegalArgumentException: Unable to create symbol on file @PROJECT/src/web/src/profile/pages/address/step1.tsx
2024-03-14T12:44:17.8847563Z 	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:57)
2024-03-14T12:44:17.8851130Z ##[error]at org.sonar.plugins.javascript.bridge.AnalysisProcessor.saveHighlightedSymbols(AnalysisProcessor.java:211)
	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:118)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyze(AnalysisWithProgram.java:179)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeProgram(AnalysisWithProgram.java:147)
	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeFiles(AnalysisWithProgram.java:100)
	at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:132)
	at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:79)
	... 33 more
2024-03-14T12:44:17.8853692Z 	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.saveHighlightedSymbols(AnalysisProcessor.java:211)
2024-03-14T12:44:17.8854286Z 	at org.sonar.plugins.javascript.bridge.AnalysisProcessor.processResponse(AnalysisProcessor.java:118)
2024-03-14T12:44:17.8854878Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyze(AnalysisWithProgram.java:179)
2024-03-14T12:44:17.8855453Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeProgram(AnalysisWithProgram.java:147)
2024-03-14T12:44:17.8856030Z 	at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeFiles(AnalysisWithProgram.java:100)
2024-03-14T12:44:17.8856563Z 	at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:132)
2024-03-14T12:44:17.8857100Z 	at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:79)
2024-03-14T12:44:17.8857483Z 	... 33 more
2024-03-14T12:44:17.8860413Z ##[error]Caused by: java.lang.IllegalArgumentException: Start pointer [line=308, lineOffset=44] should be before end pointer [line=308, lineOffset=41]
	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRangeValidPointers(DefaultInputFile.java:347)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:288)
	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:55)
	... 40 more
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2024-03-14T12:44:17.8862293Z Caused by: java.lang.IllegalArgumentException: Start pointer [line=308, lineOffset=44] should be before end pointer [line=308, lineOffset=41]
2024-03-14T12:44:17.8862828Z 	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
2024-03-14T12:44:17.8863346Z 	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRangeValidPointers(DefaultInputFile.java:347)
2024-03-14T12:44:17.8863898Z 	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:288)
2024-03-14T12:44:17.8864442Z 	at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable.newSymbol(DefaultSymbolTable.java:55)
2024-03-14T12:44:17.8864833Z 	... 40 more
2024-03-14T12:44:17.8865029Z ERROR: 
2024-03-14T12:44:17.8865338Z ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2024-03-14T12:44:18.2669831Z ##[error]The process 'C:\agent2\_work\_tasks\SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1\1.44.0\sonar-scanner\bin\sonar-scanner.bat' failed with exit code 1
2024-03-14T12:44:18.2740822Z ##[section]Finishing: Run Code Analysis
1 Like

Hello @soydachi,

is it possible for you to share the full file contents, please?

Thanks,
Victor