GithubHelp home page GithubHelp logo

jetbrains / qodana Goto Github PK

View Code? Open in Web Editor NEW
389.0 23.0 57.0 167.21 MB

๐Ÿ“ Source repository of Qodana Help

Home Page: https://www.jetbrains.com/help/qodana

License: Apache License 2.0

javascript kotlin python java php typescript static-code-analysis continuous-integration ci static-analysis

qodana's People

Contributors

a-kuznetsova avatar ahus1 avatar alexpshe avatar avafanasiev avatar elenaerratic avatar katerinared avatar localheropro avatar nicolascarpi avatar niki999922 avatar quattro8 avatar rayshade avatar rillig avatar sepich avatar shkate avatar smth-to-smb avatar tiulpin avatar utkarsh006 avatar zeitgen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qodana's Issues

Define the value of some constants

I've just given a shot to this tool, and it looks very promising.

One thing though it is skewing the results.

The code I'm analysing relies on the definition of a bunch of constants that are defined dynamically.

For instance, the project's root path, which is a WordPress plugin, is stored in a constant.

Code analysis will show a bunch of Can't resolve target of expression 'path/to/core/...'.

For instance, include MY_PLUGIN_PATH . '/some-cript.php'; will report Can't resolve target of expression 'path/to/core/some-cript.php'.

I assume path/to/core is added by Qodana because this string is nowhere in my code.

Is it possible to define the value of these constants in the YAML file?

For instance, the value of MY_PLUGIN_PATH would be ./ (I'm running the analysis from GitLab CI).

Kotlin multiplatform projects support

Thanks for cool tool! but for my purposes now it seems bugged.

i got simple multiplatform project - https://github.com/icerockdev/moko-parcelize
and run qodana by docker.

git clone https://github.com/icerockdev/moko-parcelize.git
cd moko-parcelize
docker run --rm -it -v $(pwd):/data/project/ -p 8080:8080 jetbrains/qodana --show-report

and after 10 minutes got results:
image
these errors is invalid - inspections cant see dependencies.
Qodana.htm.zip

also for speed up analisis how can we use cache of .gradle dependencies?

HTTP proxy support

I am behind a corporate proxy and need Qodana to talk to it for internet access.

Opening project...[INFO] Validation error:
[ERROR] org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.3.3.RELEASE from/to cache-central (https://cache-redirector.jetbrains.com/maven-central): Transfer failed for https://cache-redirector.jetbrains.com/maven-central/org/springframework/boot/spring-boot-dependencies/2.3.3.RELEASE/spring-boot-dependencies-2.3.3.RELEASE.pom[ERROR] Maven server structure problem
[ERROR] org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.3.3.RELEASE from/to cache-central (https://cache-redirector.jetbrains.com/maven-central): Transfer failed for https://cache-redirector.jetbrains.com/maven-central/org/springframework/boot/spring-boot-dependencies/2.3.3.RELEASE/spring-boot-dependencies-2.3.3.RELEASE.pom[INFO] Validation error:
[ERROR] org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact com.fasterxml.jackson:jackson-bom:pom:2.11.0 from/to cache-central (https://cache-redirector.jetbrains.com/maven-central): Transfer failed for https://cache-redirector.jetbrains.com/maven-central/com/fasterxml/jackson/jackson-bom/2.11.0/jackson-bom-2.11.0.pom[ERROR] Maven server structure problem
[ERROR] org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact com.fasterxml.jackson:jackson-bom:pom:2.11.0 from/to cache-central (https://cache-redirector.jetbrains.com/maven-central): Transfer failed for https://cache-redirector.jetbrains.com/maven-central/com/fasterxml/jackson/jackson-bom/2.11.0/jackson-bom-2.11.0.pom[INFO] Validation error:
[ERROR] org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.glassfish.jersey:jersey-bom:pom:2.26-b03 from/to cache-central (https://cache-redirector.jetbrains.com/maven-central): Transfer failed for https://cache-redirector.jetbrains.com/maven-central/org/glassfish/jersey/jersey-bom/2.26-b03/jersey-bom-2.26-b03.pom[ERROR] Maven server structure problem
[ERROR] org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.glassfish.jersey:jersey-bom:pom:2.26-b03 from/to cache-central (https://cache-redirector.jetbrains.com/maven-central): Transfer failed for https://cache-redirector.jetbrains.com/maven-central/org/glassfish/jersey/jersey-bom/2.26-b03/jersey-bom-2.26-b03.pom[INFO] Validation error:
[ERROR] org.apache.maven.artifact.InvalidArtifactRTException: For artifact {commons-codec:commons-codec:null:jar}: The version cannot be empty.[ERROR] Maven server structure problem
[ERROR] org.apache.maven.artifact.InvalidArtifactRTException: For artifact {commons-codec:commons-codec:null:jar}: The version cannot be empty.done.

How to do that? Thanks.

Document performance tips on second run of Qodana

This is something we've done locally for Qodana and I'm willing to share this information:

First, run

  • Mount /root/.cache into Qodana container
  • Execute the first clean run of Qodana (--save-report), first run will be very slow because IDEA needs to index everything and - parse everything
  • After a successful run, run archivation of the idea folder, which is located in a folder that was mounted to /root/.cache, and save artifact into shared-storage (in our case it's minio)

Second run

  • Download artifact and unpack it, you should have an "idea" folder
  • Mount /root/.cache into Qodana container
  • Second run will be much faster as IDEA has a cache and does not need to index/parse everything again

Ref.: https://youtrack.jetbrains.com/issue/QD-697

File /data/project cannot be found

I am running the docker image on a Win10, Docker for Windows 3.0.0:

winpty docker run --rm -it -v /C/Docker/my-fancy-project/:/data/project/ -p 8080:8080 jetbrains/qodana --show-report

and get this error:

$ winpty docker run --rm -it -v  /C/Docker/my-fancy-project/:/data/project/ -p 8080:8080 jetbrains/qodana --show-report[YourKit Java Profiler 2020.9-b412] Log file: /data/results/log/Main-13.log
Listening for transport dt_socket at address: 5005
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ui.StartupUiUtil to constructor com.sun.java.swing.plaf.gtk.GTKLookAndFeel()
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ui.StartupUiUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Starting up IntelliJ IDEA 2020.3 (build IJCA-203.6527) ...done.
File /data/project cannot be found
Expected parameters: <project_file_path> <inspection_profile> <output_path> <inspections_profile> -- use here profile name configured in the project or locally or path to the inspection profile; can be stabbed when one of the -e|-profileName|-profilePath is used
[<options>]
 Available options are:
 -d <directory_path>  --  directory to be inspected. Optional. Whole project is inspected by default.
 -e                   --  skip
-v[0|1|2]            --  verbose level. 0 - silent, 1 - verbose, 2 - most verbose.
-profileName         --  name of a profile defined in project
 -profilePath         --  absolute path to the profile file
 -format              --  report output format. Supported options: xml, json, plain. Defaults to xml
 -changes             --  inspect uncommitted changes and report new problems

What am I doing wrong?

MalformedJsonException

Hello,

I was curious about trying out Qodana locally, but it is not working. I cd into my PHP project home folder and I ran qodana scan --show-report. First I received errors about Docker not being present (also: the documentation does not state that you need Docker to run Qodana). I resolved that, but now I am getting this:

Preparing for the Project configuration stage ...                                                                                                                                            
                                                                                                                                                                                             
The Project configuration stage completed in 27ms                                                                                                                                            
2023-03-16 15:56:41,240 [  24123] SEVERE - #c.i.c.InspectionApplicationBase - com.google.gson.stream.MalformedJsonException: Unterminated object at line 26 column 10 path $.require.vlucas/phpdotenv
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 26 column 10 path $.require.vlucas/phpdotenv                                 
        at com.google.gson.internal.Streams.parse(Streams.java:60)                                                                                                                           
        at com.google.gson.JsonParser.parseReader(JsonParser.java:99)                                                                                                                        
        at com.google.gson.JsonParser.parseReader(JsonParser.java:68)                                                                                                                        
        at com.google.gson.JsonParser.parseString(JsonParser.java:50)                                                                                                                        
        at com.google.gson.JsonParser.parse(JsonParser.java:112)                                                                                                                             
        at com.jetbrains.php.composer.ComposerConfigUtils.parseJson(ComposerConfigUtils.java:49)                                                                                             
        at org.jetbrains.qodana.staticAnalysis.projectDescription.php.PhpComposerProjectDescriber.description(PhpComposerProjectDescriber.kt:25)                                             
        at org.jetbrains.qodana.staticAnalysis.projectDescription.php.PhpComposerProjectDescriber.description(PhpComposerProjectDescriber.kt:14)                                             
        at org.jetbrains.qodana.staticAnalysis.projectDescription.QodanaProjectDescriber.describeAfterWork(QodanaProjectDescriber.java:45)                                                   
        at org.jetbrains.qodana.staticAnalysis.projectDescription.QodanaProjectDescriber.runDescribersAfterWork(QodanaProjectDescriber.java:56)                                              
        at org.jetbrains.qodana.staticAnalysis.script.QodanaScript.writeProjectDescriptionAfterWork(QodanaScript.kt:62)                                                                      
        at org.jetbrains.qodana.staticAnalysis.script.QodanaScript.writeProjectDescriptionAfterWork$default(QodanaScript.kt:59)                                                              
        at org.jetbrains.qodana.staticAnalysis.script.DefaultScript.run(default.kt:72)                                                                                                       
        at org.jetbrains.qodana.staticAnalysis.inspections.runner.QodanaRunner.run(QodanaRunner.kt:42)                                                                                       
        at org.jetbrains.qodana.staticAnalysis.inspections.runner.QodanaInspectionApplication.launchRunner(QodanaInspectionApplication.kt:143)                                               
        at org.jetbrains.qodana.staticAnalysis.inspections.runner.QodanaInspectionApplication.run(QodanaInspectionApplication.kt:125)                                                        
        at com.intellij.codeInspection.InspectionApplicationBase.execute(InspectionApplicationBase.java:155)                                                                                 
        at com.intellij.codeInspection.InspectionApplicationBase.startup(InspectionApplicationBase.java:123)                                                                                 
        at com.intellij.codeInspection.InspectionMain.main(InspectionMain.java:119)                                                                                                          
        at com.intellij.idea.ApplicationLoader.initApplicationImpl$lambda$3(ApplicationLoader.kt:174)                                                                                        
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)                                                                                        
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)                                                                                       
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)                                                                                                         
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)                                                                                        
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)                                                                                                          
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)                                                                                                     
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)                                                                                            
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 26 column 10 path $.require.vlucas/phpdotenv                                                           
        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1607)                                                                                                               
        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:501)                                                                                                                     
        at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:424)                                                                                                                    
        at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:752)                                                                                                         
        at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:698)                                                                                                         
        at com.google.gson.internal.Streams.parse(Streams.java:48)                                                                                                                           
        ... 26 more                                                                                                                                                                          
2023-03-16 15:56:41,245 [  24128] SEVERE - #c.i.c.InspectionApplicationBase - Qodana for PHP 2022.3 EAP  Build #QDPHP-223.8787.117                                                           
2023-03-16 15:56:41,245 [  24128] SEVERE - #c.i.c.InspectionApplicationBase - JDK: 17.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.                                            
2023-03-16 15:56:41,246 [  24129] SEVERE - #c.i.c.InspectionApplicationBase - OS: Linux                                                                                                      
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 26 column 10 path $.require.vlucas/phpdotenv                                 
        at com.google.gson.internal.Streams.parse(Streams.java:60)                                                                                                                           
        at com.google.gson.JsonParser.parseReader(JsonParser.java:99)                                                                                                                        
        at com.google.gson.JsonParser.parseReader(JsonParser.java:68)                                                                                                                        
        at com.google.gson.JsonParser.parseString(JsonParser.java:50)                                                                                                                        
        at com.google.gson.JsonParser.parse(JsonParser.java:112)                                                                                                                             
        at com.jetbrains.php.composer.ComposerConfigUtils.parseJson(ComposerConfigUtils.java:49)                                                                                             
        at org.jetbrains.qodana.staticAnalysis.projectDescription.php.PhpComposerProjectDescriber.description(PhpComposerProjectDescriber.kt:25)                                             
        at org.jetbrains.qodana.staticAnalysis.projectDescription.php.PhpComposerProjectDescriber.description(PhpComposerProjectDescriber.kt:14)                                             
        at org.jetbrains.qodana.staticAnalysis.projectDescription.QodanaProjectDescriber.describeAfterWork(QodanaProjectDescriber.java:45)                                                   
        at org.jetbrains.qodana.staticAnalysis.projectDescription.QodanaProjectDescriber.runDescribersAfterWork(QodanaProjectDescriber.java:56)                                              
        at org.jetbrains.qodana.staticAnalysis.script.QodanaScript.writeProjectDescriptionAfterWork(QodanaScript.kt:62)                                                                      
        at org.jetbrains.qodana.staticAnalysis.script.QodanaScript.writeProjectDescriptionAfterWork$default(QodanaScript.kt:59)                                                              
        at org.jetbrains.qodana.staticAnalysis.script.DefaultScript.run(default.kt:72)                                                                                                       
        at org.jetbrains.qodana.staticAnalysis.inspections.runner.QodanaRunner.run(QodanaRunner.kt:42)                                                                                       
        at org.jetbrains.qodana.staticAnalysis.inspections.runner.QodanaInspectionApplication.launchRunner(QodanaInspectionApplication.kt:143)                                               
        at org.jetbrains.qodana.staticAnalysis.inspections.runner.QodanaInspectionApplication.run(QodanaInspectionApplication.kt:125)                                                        
        at com.intellij.codeInspection.InspectionApplicationBase.execute(InspectionApplicationBase.java:155)                                                                                 
        at com.intellij.codeInspection.InspectionApplicationBase.startup(InspectionApplicationBase.java:123)                                                                                 
        at com.intellij.codeInspection.InspectionMain.main(InspectionMain.java:119)                                                                                                          
        at com.intellij.idea.ApplicationLoader.initApplicationImpl$lambda$3(ApplicationLoader.kt:174)                                                                                        
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)                                                                                        
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)                                                                                       
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)                                                                                                         
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)                                                                                        
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)                                                                                                          
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)                                                                                                     
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)                                                                                            
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 26 column 10 path $.require.vlucas/phpdotenv                                                           
        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1607)                                                                                                               
        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:501)                                                                                                                     
        at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:424)                                                                                                                    
        at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:752)                                                                                                         
        at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:698)                                                                                                         
        at com.google.gson.internal.Streams.parse(Streams.java:48)                                                                                                                           
        ... 26 more                                                                                                                                                                          
                                                                                                                                                                                             
2023/03/16 15:56:41 Sync IDEA cache from: /data/project/.idea to: /data/cache/.idea                                                                                                          
โœ—  Qodana exited with code 1                                                                                                                                                                 

Am I doing anything wrong?

I am using Ubuntu 20.04.

Exclude not working

Discussed in #109

Originally posted by burberius July 29, 2022
I try to scan a project on GitLab CI with Qodana and specified the Qodana cache into the project folder so it can be cached by GitLab CI.
But Qodana also scans the Gradle in there and finds some hundret problems.

So I tried to exclude it with, but that is not recognized! I tried relative paths, absolute and also tried to exclude some of the project files, but it was all ignored!

version: "1.0"
profile:
  name: qodana.recommended
exclude:
  - name: ALL
    paths:
      - qodana/cache

Can it be broken in the latest release? Unfortunatelly I couldn't verify it by using an old one...

Hi, I've been having this problem so I decided to revive this issue.

This is my exclude in my qodana.yaml:
image

Which should be working, however when I see the actual files being analyzed I see this:
image

Getting the GameAssembly is ok since its within the Assets/Project/Code folder, the one I'm interested in.
However Its getting the contents of the Library folder, which I told Qodana to ignore specifically.

Am I doing something wrong here? Thanks for the help in advance.

qodana.yaml file isn't read and load

Steps to reproduce:

  1. Create qodana.yaml file in the same folder where you point docer - for me it's -v /var/www/site.local/html/:
version: 1.0
failThreshold: 0
profile:
  name: qodana.site
exclude:
  - name: All
    paths:
      - public
      - storage
      - vendor
  1. Run docker:
docker run --rm -it -v /var/www/site.local/html/:/data/project/ -p 8080:8080 jetbrains/qodana --show-report

I get

// ...
Starting up IntelliJ IDEA 2020.3.2 (build IJCA-203.6906) ...done.
Opening project...done.
Initializing project...Loaded profile 'qodana.recommended' from file '/data/profile.xml'
Inspecting with profile 'qodana.recommended'
Analyzing code 0%
// ...

So I can't see that my custom qodana.yaml file is imported ;/
Also, can I check in the browser what settings are imported? Or or what name of profile is imported?

Provide IntelliJ formatting check

Hi,

since Qodana is built on top of IntelliJ, would it be possible to use it to check that source code conforms to the IntelliJ formatter settings? Currently, there is no standardized way to enforce formatting based on the IntelliJ formatter, and since there are subtle differences between its and Eclipses formatter, you can't just use spotless to do this.

See also https://youtrack.jetbrains.com/issue/IDEA-185010

Optimize how qodana is creating result-allProblems.json

If the project has a lot of issues this file could be very-very big >120M
It would be awesome to split this file into chunks.

This "main" file JSON would have locations to other chunks and later it could be downloaded in parallel.
image

Make HTML report work without access to localStorage

We are securing all user generated reports with the following HTTP header:

content-security-policy: sandbox allow-scripts

Which makes sure the user generated files won't have access to cookies and localStorage for security purposes. In case of Qodana report I'm seeing a blank page and the following error:

Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.

which comes from SA-main.js:1.

Error: QodanaScan Azure pipeline task v1.0.4

Discussed in https://github.com/JetBrains/Qodana/discussions/80

Originally posted by pa-tthibodeau April 12, 2022
Following the instructions from the Qodana Azure Pipelines blog announcement, I tried running the QodanaScan task and receive the following error:

Starting: QodanaScan
==============================================================================
Task         : Qodana Scan
Description  : Scan your project with Qodana (https://jetbrains.com/qodana)
Version      : 1.0.4
Author       : JetBrains
Help         : Qodana documentation is available at [https://jetbrains.com/help/qodana/.](https://jetbrains.com/help/qodana/) This task will scan your project.
==============================================================================
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'azure-pipelines-task-lib/task'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/vsts/work/_tasks/QodanaScan_822d6cb9-d4d1-431b-9513-e7db7d718a49/1.0.4/index.js:4458:10)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
##[error]Exit code 1 returned from process: file name '/home/vsts/agents/2.202.0/externals/node10/bin/node', arguments '"/home/vsts/work/_tasks/QodanaScan_822d6cb9-d4d1-431b-9513-e7db7d718a49/1.0.4/index.js"'.
Finishing: QodanaScan

The azure-pipelines.yml task is using the default settings:

          - task: QodanaScan@1
            inputs:
              artifactName: 'CodeAnalysisLogs'

As ours is a Java project, I also tried, with the same error:


          - task: QodanaScan@1
            inputs:
              args: '--linter jetbrains/qodana-jvm:2021.3-eap'
              artifactName: 'CodeAnalysisLogs'
```</div>

Qodana TeamCity Integration not working properly when TeamCity agents are running in docker

Discussed in #122

Originally posted by Sp0tlight August 24, 2022
Our TeamCity and all agents are running via individual docker containers on a common host.

The default Qodana Teamcity integration (Build Step -> Qodana) therefore requires it that the working directory is synced from the agent to the host, so that the Qodana docker image that is spinned up via TC can access it:

Agent (docker volume mount):
<HOST>/tc/agent-1/work:/opt/buildagent/work

Qodana build step config:
Working directory=<HOST>/tc/agent-1/work/checkoutDirID/

Currently we encounter 2 issues:

  1. We can't set the result directory as it is already mapped internally by the command and therefore the internal default one pollutes the host. This docker volume mapping is used internally by the integration plugin:
/opt/buildagent/temp/buildTmp/Static_Analysis_Results/Code_Inspection:/data/results/

so the results will be written directly on the host at <HOST>/opt/buildagent/temp/buildTmp/Static_Analysis_Results/Code_Inspection. Here we would expect some additional config option like the working directory, so we can redirect the output to the host mapped agent volume.

  1. Qodana don't report anything at all in TeamCity but rather fails after successful analysis, as it can't resolve the written results.

Analysis is running successfully

22:13:09 Qodana - Detailed summary
22:13:09 Analysis results: 238 problems detected
22:13:09 By severity: Critical - 11, High - 217, Moderate - 10
22:13:09 ----------------------------------------------------------------------------
22:13:09 Name Severity Problems count
22:13:09 ----------------------------------------------------------------------------
22:13:09 Usage of API marked for removal Critical 11
22:13:09 Constant conditions & exceptions High 17
[.........]

But completion and TeamCity report is failing

22:13:12 Generating final reports...
22:13:13 The project doesn't contain qodana.yaml config file
22:13:13 Done
22:13:13 2022/08/24 20:13:13 Sync IDEA cache from: /data/project/.idea to: /data/cache/.idea
22:13:14 Docker exit code: 0
22:13:14 Can't resolve .descriptions.json << error
22:13:14 Process exited with code 0
22:13:14 Reporting as tests is enabled
22:13:14 Mode: test on each problem
22:13:14 Reported as tests: 0 problems
22:13:14 No one instrument is enabled, or all enabled have failed << error

The file itself exists on the host, so it's probably some issue in the way that the qodana image or integration plugin wants to read the results for reporting it to TeamCity.

ls -a <HOST>/opt/buildagent/temp/buildTmp/Static_Analysis_Results/Code_Inspection | grep .des

.descriptions.json

Quick fix support

Do you have a plan to quick fix by Qodana.
I want to exec quick fix in command line.

ServiceNotReadyException in Gitlab CI

I'm trying to use Qodana in a Gitlab-CI job. The runner schedules it jobs into a kubernetes-cluster. The job-container has a memory-limit of 8Gi and a Cpu-Limit of 8 cores.

I run qodana exactly like in the example for gitlab using the jetbrains/qodana:2021.1-eap image. The only modification is that I add some gradle-properties (to point it to a private maven registry) and add our internal ca-cert to the java-keystore.

The code is a gradle-project. The very same setup run manually in a docker container works just fine. In the gitlab-ci-job it produces a ServiceNotReadyException ans then hangs until the runner kills the job with a timeout.

The full stdout:

# /opt/idea/bin/entrypoint --results-dir=/builds/testteam/testdata/root/qodana --save-report --report-dir=/builds/testteam/testdata/root/qodana/report Listening for transport dt_socket at address: 5005
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ui.StartupUiUtil to constructor com.sun.java.swing.plaf.gtk.GTKLookAndFeel()
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ui.StartupUiUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[   1372][ApplicationImpl pooled thread 1]   WARN - j.internal.DebugAttachDetector - Unable to start DebugAttachDetector, please add `--add-exports java.base/jdk.internal.vm=ALL-UNNAMED` to VM options 
Starting up IntelliJ IDEA 2021.1 Beta (build IJCA-211.6432.7) ...done.
Opening project...Python environment configuration...
Python interpreters detected:
/usr/bin/python3.8
/usr/bin/python3
Settings up interpreter /usr/bin/python3.8
[   3109][AWT-EventQueue-0]   WARN - roject.impl.ProjectManagerImpl - Do not open project in EDT 
[   3187][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - com.intellij.ide.startup.ServiceNotReadyException 
java.lang.Exception: com.intellij.ide.startup.ServiceNotReadyException
        at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:312)
        at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$executeActivitiesFromExtensionPoint$2(StartupManagerImpl.java:207)
        at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processImplementations(ExtensionPointImpl.java:320)
        at com.intellij.ide.startup.impl.StartupManagerImpl.executeActivitiesFromExtensionPoint(StartupManagerImpl.java:188)
        at com.intellij.ide.startup.impl.StartupManagerImpl.runStartUpActivities(StartupManagerImpl.java:180)
        at com.intellij.ide.startup.impl.StartupManagerImpl.projectOpened(StartupManagerImpl.java:145)
        at com.intellij.openapi.project.impl.ProjectManagerExImplKt.openProject(ProjectManagerExImpl.kt:370)
        at com.intellij.openapi.project.impl.ProjectManagerExImplKt.access$openProject(ProjectManagerExImpl.kt:1)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl.doOpenProject(ProjectManagerExImpl.kt:176)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl.access$doOpenProject(ProjectManagerExImpl.kt:55)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl$openProjectAsync$1.invoke(ProjectManagerExImpl.kt:119)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl$openProjectAsync$1.invoke(ProjectManagerExImpl.kt:55)
        at com.intellij.openapi.project.impl.ProjectFrameAllocator.run(ProjectFrameAllocator.kt:54)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl.openProjectAsync(ProjectManagerExImpl.kt:107)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl.openProject(ProjectManagerExImpl.kt:71)
        at com.intellij.openapi.externalSystem.importing.AbstractOpenProjectProvider.openProject(AbstractOpenProjectProvider.kt:83)
        at org.jetbrains.plugins.gradle.service.project.open.GradleProjectImportUtil.openGradleProject(GradleProjectImportUtil.kt:31)
        at org.jetbrains.plugins.gradle.service.project.open.GradleProjectOpenProcessor.doOpenProject(GradleProjectOpenProcessor.kt:20)
        at com.intellij.ide.impl.ProjectUtil.lambda$chooseProcessorAndOpen$9(ProjectUtil.java:331)
        at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:218)
        at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
        at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:200)
        at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781)
        at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeAndWait$7(ApplicationImpl.java:428)
        at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:134)
        at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)
        at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:133)
        at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
        at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:189)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:969)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)
        at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
        at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808)
        at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
        at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: com.intellij.ide.startup.ServiceNotReadyException
        at com.intellij.util.indexing.FileBasedIndexImpl.waitUntilIndicesAreInitialized(FileBasedIndexImpl.java:399)
        at com.intellij.util.indexing.FileBasedIndexImpl.ensureStaleIdsDeleted(FileBasedIndexImpl.java:794)
        at com.intellij.util.indexing.FileBasedIndexImpl.filesUpdateStarted(FileBasedIndexImpl.java:787)
        at com.intellij.util.indexing.UnindexedFilesUpdater.performInDumbMode(UnindexedFilesUpdater.java:426)
        at com.intellij.openapi.project.DumbServiceMergingTaskQueue$QueuedDumbModeTask.executeTask(DumbServiceMergingTaskQueue.java:200)
        at com.intellij.openapi.project.DumbServiceSyncTaskQueue.doRunTaskSynchronously(DumbServiceSyncTaskQueue.java:62)
        at com.intellij.openapi.project.DumbServiceSyncTaskQueue.processQueue(DumbServiceSyncTaskQueue.java:48)
        at com.intellij.openapi.project.DumbServiceSyncTaskQueue.runTaskSynchronously(DumbServiceSyncTaskQueue.java:38)
        at com.intellij.openapi.project.DumbServiceImpl.queueTask(DumbServiceImpl.java:293)
        at com.intellij.util.indexing.ProjectFileBasedIndexStartupActivity.runActivity(ProjectFileBasedIndexStartupActivity.java:47)
        at com.intellij.openapi.project.DumbServiceImpl.queueStartupActivitiesRequiredForSmartMode(DumbServiceImpl.java:146)
        at com.intellij.openapi.project.DumbServiceStartupActivity.runActivity(DumbServiceStartupActivity.java:11)
        at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivity(StartupManagerImpl.java:335)
        at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:309)
        ... 48 more
[   3190][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - IntelliJ IDEA 2021.1 Beta  Build #IJCA-211.6432.7 
[   3224][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: Amazon.com Inc. 
[   3224][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - OS: Linux 
[   3225][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - Last Action:  

In qodana/log/idea.log:

2021-03-23 14:19:28,165 [      0][Idea Main Thread]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
2021-03-23 14:19:28,209 [     44][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IJCA-211.6432.7, 10 Mar 2021 06:21) 
2021-03-23 14:19:28,210 [     45][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - OS: Linux (5.9.0-0.bpo.2-amd64, amd64) 
2021-03-23 14:19:28,216 [     51][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - JRE: 11.0.10+9-LTS (Amazon.com Inc.) 
2021-03-23 14:19:28,217 [     52][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - JVM: 11.0.10+9-LTS (OpenJDK 64-Bit Server VM) 
2021-03-23 14:19:28,220 [     55][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - JVM Args: -XX:ReservedCodeCacheSize=350m -XX:SoftRefLRUPolicyMSPerMB=5 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djdk.http.auth.tunneling.disabledSchemes= -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -XX:MaxJavaStackTraceDepth=10000 -Dsun.tools.attach.tmp.only=true -XX:+UseG1GC -XX:MaxRAMPercentage=70 -Xlog:gc*:/builds/testteam/testdata/root/qodana/log/gc.log -Didea.config.path=/root/.config/idea -Didea.system.path=/data/cache/idea -XX:HeapDumpPath=/builds/testteam/testdata/root/qodana/log/OOMheapdump.hprof -XX:ErrorFile=/builds/testteam/testdata/root/qodana/log/java_error_in_IDEA.log -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -Didea.is.internal=true -Djava.awt.headless=true -Didea.headless.enable.statistics=true -Didea.headless.statistics.device.id=200820300000000-7cca-0237-2ffe-e42599e8fbb5 -Didea.log.config.file=/opt/idea/bin/log.xml -Didea.log.path=/builds/testteam/testdata/root/qodana/log/ -Dinspect.save.project.settings=true -Djava.net.useSystemProxies=true -Didea.headless.statistics.salt=603276a9f1499eda42d3650b654412bc -Didea.vendor.name=JetBrains -Didea.paths.selector=IntelliJIdea2021.1 -Djb.vmOptionsFile=/opt/idea/bin/idea64.vmoptions -Didea.jre.check=true 
2021-03-23 14:19:28,220 [     55][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - library path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib 
2021-03-23 14:19:28,220 [     55][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - boot library path: /usr/lib/jvm/java-11-amazon-corretto/lib 
2021-03-23 14:19:28,260 [     95][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - locale=en_US JNU=ANSI_X3.4-1968 file.encoding=ANSI_X3.4-1968
  idea.config.path=/root/.config/idea
  idea.system.path=/data/cache/idea
  idea.plugins.path=/root/.config/idea/plugins
  idea.log.path=/builds/testteam/testdata/root/qodana/log 
2021-03-23 14:19:28,286 [    121][ApplicationImpl pooled thread 3]   INFO -        #com.intellij.idea.Main - JNA library (64-bit) loaded in 21 ms 
2021-03-23 14:19:28,666 [    501][AWT-EventQueue-0]   INFO - ntellij.idea.ApplicationLoader - CPU cores: 1; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@7dd5dce1[Running, parallelism = 1, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@229681b7 
2021-03-23 14:19:28,729 [    564][ApplicationImpl pooled thread 1]   INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=PHP, id=com.jetbrains.php, descriptorPath=plugin.xml, path=/opt/idea/plugins/php, version=211.6432.7, package=null) misses optional descriptor php-shared-indexes.xml 
2021-03-23 14:19:29,036 [    871][ApplicationImpl pooled thread 1]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: IDEA CORE (211.6432.7), com.intellij.platform.images (211.6432.7), JetBrains maven model api classes (211.6432.7), JetBrains Repository Search (211.6432.7), Git (211.6432.7), HTML Tools (211.6432.7), Subversion (211.6432.7), XPathView + XSLT (211.6432.7), Configuration Script (211.6432.7), CSS (211.6432.7), W3C Validators (211.6432.7), Java (211.6432.7), JUnit (211.6432.7), Lombok (211.6432.7), Spring AOP/@AspectJ (211.6432.7), Java IDE Customization (211.6432.7), Microservices UAST (211.6432.7), Eclipse Interoperability (211.6432.7), Properties (211.6432.7), Ant (211.6432.7), Gradle (211.6432.7), Guice (211.6432.7), Java Internationalization (211.6432.7), UI Designer (211.6432.7), Microservices Application Configuration (211.6432.7), Velocity (211.6432.7), Mercurial (211.6432.7), IntelliLang (211.6432.7), TestNG (211.6432.7), Database Tools and SQL (211.6432.7), Python (211.6432.7), Persistence Frameworks (211.6432.7), Groovy (211.6432.7), Maven (211.6432.7), Gradle-Java (211.6432.7), Plugin DevKit (211.6432.7), Frameworks Starters (211.6432.7), Java EE Platform (211.6432.7), Java EE: Bean Validation (211.6432.7), Java EE: Contexts and Dependency Injection (CDI) (211.6432.7), Java EE: Persistence (JPA) (211.6432.7), Java EE: Enterprise Java Beans (EJB) (211.6432.7), Hibernate (211.6432.7), Java EE: Application Servers (211.6432.7), WebLogic (211.6432.7), Java EE: Web/Servlets (211.6432.7), Java Server Pages (JSP) (211.6432.7), Gradle Extension (211.6432.7), Spring (211.6432.7), Spring Security (211.6432.7), Spring Data (211.6432.7), Java EE: Web Services (JAX-WS) (211.6432.7), Spring Web Services (211.6432.7), FreeMarker (211.6432.7), Spring MVC (211.6432.7), Spring Web Flow (211.6432.7), Spring Batch (211.6432.7), Spring Messaging (211.6432.7), Spring Integration Patterns (211.6432.7), Spring Boot (211.6432.7), Spring WebSocket (211.6432.7), Spring OSGi (211.6432.7), Maven Extension (211.6432.7), Kotlin (211-1.4.21-release-IJ6432.2), Feature Usage Statistics (1.0.0), PHP (211.6432.7), Static Analysis Project (211.6432.7) 
2021-03-23 14:19:29,119 [    954][ApplicationImpl pooled thread 1]   INFO - spection.InspectionApplication - Command line arguments: [inspect, /builds/testteam/testdata/root, /data/profile.xml, /builds/testteam/testdata/root/qodana, -v3, -format, sa, -qodana] 
2021-03-23 14:19:29,201 [   1036][ApplicationImpl pooled thread 1]   INFO - m.intellij.util.io.StorageLock - lower=100; upper=500; buffer=10; max=5716 
2021-03-23 14:19:29,214 [   1049][DirectBufferWrapper allocation thread]   INFO - tellij.util.io.FileChannelUtil - uninterruptible FileChannels will be used for indexes 
2021-03-23 14:19:29,265 [   1100][ApplicationImpl pooled thread 1]   INFO - om.intellij.ui.scale.JBUIScale - System scale factor: 1.0 (IDE-managed HiDPI) 
2021-03-23 14:19:29,431 [   1266][ApplicationImpl pooled thread 4]   INFO - til.net.ssl.CertificateManager - Default SSL context initialized 
2021-03-23 14:19:29,537 [   1372][ApplicationImpl pooled thread 1]   WARN - j.internal.DebugAttachDetector - Unable to start DebugAttachDetector, please add `--add-exports java.base/jdk.internal.vm=ALL-UNNAMED` to VM options 
2021-03-23 14:19:29,548 [   1383][ApplicationImpl pooled thread 1]   INFO -                         STDOUT - Starting up IntelliJ IDEA 2021.1 Beta (build IJCA-211.6432.7) ...done. 
2021-03-23 14:19:29,624 [   1459][File Watcher[ApplicationImpl pooled thread 2]]   INFO - pl.local.NativeFileWatcherImpl - Native file watcher is disabled 
2021-03-23 14:19:29,762 [   1597][ApplicationImpl pooled thread 1]   INFO - pi.util.registry.RegistryValue - Registry value 'unknown.sdk.auto' has changed to 'false' 
2021-03-23 14:19:29,763 [   1598][ApplicationImpl pooled thread 1]   INFO - pi.util.registry.RegistryValue - Registry value 'external.system.auto.import.disabled' has changed to 'true' 
2021-03-23 14:19:29,795 [   1630][ApplicationImpl pooled thread 1]   INFO -                         STDOUT - Opening project...Python environment configuration... 
2021-03-23 14:19:29,796 [   1631][ApplicationImpl pooled thread 1]   INFO -                         STDOUT - Python interpreters detected: 
2021-03-23 14:19:29,919 [   1754][ApplicationImpl pooled thread 1]   INFO -                         STDOUT - /usr/bin/python3.8 
2021-03-23 14:19:29,919 [   1754][ApplicationImpl pooled thread 1]   INFO -                         STDOUT - /usr/bin/python3 
2021-03-23 14:19:29,929 [   1764][AWT-EventQueue-0]   INFO -                         STDOUT - Settings up interpreter /usr/bin/python3.8 
2021-03-23 14:19:30,068 [   1903][ApplicationImpl pooled thread 1]   INFO - ns.python.sdk.PythonSdkUpdater - Updating sys.path took 29 ms 
2021-03-23 14:19:30,078 [   1913][ApplicationImpl pooled thread 1]   INFO - ns.python.sdk.PythonSdkUpdater - Bogus sys.path entry /usr/lib/python38.zip 
2021-03-23 14:19:30,080 [   1915][ApplicationImpl pooled thread 1]   INFO - ns.python.sdk.PythonSdkUpdater - Binary skeletons directory for SDK /usr/bin/python3.8 (/usr/bin/python3.8)): /data/cache/idea/python_stubs/-1247971761 
2021-03-23 14:19:30,085 [   1920][ApplicationImpl pooled thread 1]   INFO - ns.python.sdk.PythonSdkUpdater - User skeletons directory for SDK /usr/bin/python3.8 (/usr/bin/python3.8)): /opt/idea/plugins/python/helpers/python-skeletons 
2021-03-23 14:19:30,195 [   2030][AWT-EventQueue-0]   INFO - ication.options.PathMacrosImpl - Loaded path macros: {MAVEN_REPOSITORY=/root/.m2/repository, KOTLIN_BUNDLED=/opt/idea/plugins/Kotlin/kotlinc} 
2021-03-23 14:19:30,346 [   2181][AWT-EventQueue-0]   INFO - BridgeProjectLifecycleListener - Using workspace model to open project 
2021-03-23 14:19:30,553 [   2388][ApplicationImpl pooled thread 4]   INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings. 
2021-03-23 14:19:30,669 [   2504][AWT-EventQueue-0]   INFO - on.JpsProjectModelSynchronizer - Workspace model loaded without cache. Loading real project state into workspace model. Thread[AWT-EventQueue-0,6,Idea Thread Group] 
2021-03-23 14:19:30,852 [   2687][ApplicationImpl pooled thread 5]   INFO - ots.impl.jdkDownloader.JdkAuto - Looking for a local SDK for JDK with name SdkLookup{JDK, withVersionFilter, withSdkHomeFilter} 
2021-03-23 14:19:31,129 [   2964][AWT-EventQueue-0]   INFO - impl.UnknownMissingSdkFixLocal - Automatically set Sdk SdkLookup{JDK, withVersionFilter, withSdkHomeFilter} to /usr/lib/jvm/java-11-amazon-corretto 
2021-03-23 14:19:31,274 [   3109][AWT-EventQueue-0]   WARN - roject.impl.ProjectManagerImpl - Do not open project in EDT 
2021-03-23 14:19:31,319 [   3154][ApplicationImpl pooled thread 6]   INFO - penapi.application.Experiments - Experimental features enabled for user: wsl.p9.support, wsl.prefer.p9.support, wsl.p9.show.roots.in.file.chooser, wsl.execute.with.wsl.exe, inline.browse.button, linux.native.menu, recent.and.edited.files.together, show.create.new.element.in.popup, search.everywhere.mixed.results, i18n.match.actions, editor.reader.mode, edit.run.configurations.while.dumb, new.large.text.file.viewer, property.value.inplace.editing 
2021-03-23 14:19:31,352 [   3187][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - com.intellij.ide.startup.ServiceNotReadyException 
java.lang.Exception: com.intellij.ide.startup.ServiceNotReadyException
        at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:312)
        at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$executeActivitiesFromExtensionPoint$2(StartupManagerImpl.java:207)
        at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processImplementations(ExtensionPointImpl.java:320)
        at com.intellij.ide.startup.impl.StartupManagerImpl.executeActivitiesFromExtensionPoint(StartupManagerImpl.java:188)
        at com.intellij.ide.startup.impl.StartupManagerImpl.runStartUpActivities(StartupManagerImpl.java:180)
        at com.intellij.ide.startup.impl.StartupManagerImpl.projectOpened(StartupManagerImpl.java:145)
        at com.intellij.openapi.project.impl.ProjectManagerExImplKt.openProject(ProjectManagerExImpl.kt:370)
        at com.intellij.openapi.project.impl.ProjectManagerExImplKt.access$openProject(ProjectManagerExImpl.kt:1)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl.doOpenProject(ProjectManagerExImpl.kt:176)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl.access$doOpenProject(ProjectManagerExImpl.kt:55)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl$openProjectAsync$1.invoke(ProjectManagerExImpl.kt:119)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl$openProjectAsync$1.invoke(ProjectManagerExImpl.kt:55)
        at com.intellij.openapi.project.impl.ProjectFrameAllocator.run(ProjectFrameAllocator.kt:54)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl.openProjectAsync(ProjectManagerExImpl.kt:107)
        at com.intellij.openapi.project.impl.ProjectManagerExImpl.openProject(ProjectManagerExImpl.kt:71)
        at com.intellij.openapi.externalSystem.importing.AbstractOpenProjectProvider.openProject(AbstractOpenProjectProvider.kt:83)
        at org.jetbrains.plugins.gradle.service.project.open.GradleProjectImportUtil.openGradleProject(GradleProjectImportUtil.kt:31)
        at org.jetbrains.plugins.gradle.service.project.open.GradleProjectOpenProcessor.doOpenProject(GradleProjectOpenProcessor.kt:20)
        at com.intellij.ide.impl.ProjectUtil.lambda$chooseProcessorAndOpen$9(ProjectUtil.java:331)
        at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:218)
        at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
        at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:200)
        at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781)
        at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeAndWait$7(ApplicationImpl.java:428)
        at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:134)
        at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)
        at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:133)
        at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
        at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:189)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:969)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)
        at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
        at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808)
        at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
        at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: com.intellij.ide.startup.ServiceNotReadyException
        at com.intellij.util.indexing.FileBasedIndexImpl.waitUntilIndicesAreInitialized(FileBasedIndexImpl.java:399)
        at com.intellij.util.indexing.FileBasedIndexImpl.ensureStaleIdsDeleted(FileBasedIndexImpl.java:794)
        at com.intellij.util.indexing.FileBasedIndexImpl.filesUpdateStarted(FileBasedIndexImpl.java:787)
        at com.intellij.util.indexing.UnindexedFilesUpdater.performInDumbMode(UnindexedFilesUpdater.java:426)
        at com.intellij.openapi.project.DumbServiceMergingTaskQueue$QueuedDumbModeTask.executeTask(DumbServiceMergingTaskQueue.java:200)
        at com.intellij.openapi.project.DumbServiceSyncTaskQueue.doRunTaskSynchronously(DumbServiceSyncTaskQueue.java:62)
        at com.intellij.openapi.project.DumbServiceSyncTaskQueue.processQueue(DumbServiceSyncTaskQueue.java:48)
        at com.intellij.openapi.project.DumbServiceSyncTaskQueue.runTaskSynchronously(DumbServiceSyncTaskQueue.java:38)
        at com.intellij.openapi.project.DumbServiceImpl.queueTask(DumbServiceImpl.java:293)
        at com.intellij.util.indexing.ProjectFileBasedIndexStartupActivity.runActivity(ProjectFileBasedIndexStartupActivity.java:47)
        at com.intellij.openapi.project.DumbServiceImpl.queueStartupActivitiesRequiredForSmartMode(DumbServiceImpl.java:146)
        at com.intellij.openapi.project.DumbServiceStartupActivity.runActivity(DumbServiceStartupActivity.java:11)
        at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivity(StartupManagerImpl.java:335)
        at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:309)
        ... 48 more
2021-03-23 14:19:31,355 [   3190][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - IntelliJ IDEA 2021.1 Beta  Build #IJCA-211.6432.7 
2021-03-23 14:19:31,389 [   3224][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: Amazon.com Inc. 
2021-03-23 14:19:31,389 [   3224][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - OS: Linux 
2021-03-23 14:19:31,390 [   3225][AWT-EventQueue-0]  ERROR - tartup.impl.StartupManagerImpl - Last Action:  
2021-03-23 14:19:31,391 [   3226][ApplicationImpl pooled thread 1]   INFO - spection.InspectionApplication - Waiting for startup activities 
2021-03-23 14:19:31,497 [   3332][ApplicationImpl pooled thread 5]   INFO - ge.ExternalProjectsDataStorage - Load external projects data in 3 millis (read time: 1) 
2021-03-23 14:19:31,522 [   3357][AWT-EventQueue-0]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [/builds/testteam/testdata/root] 
2021-03-23 14:19:31,575 [   3410][ApplicationImpl pooled thread 7]   INFO -  #git4idea.commands.GitHandler - [.] git version 
2021-03-23 14:19:31,581 [   3416][BaseDataReader: git]   INFO -  #git4idea.commands.GitHandler - git version 2.25.1 
2021-03-23 14:19:31,602 [   3437][ApplicationImpl pooled thread 7]   INFO - ea.config.GitExecutableManager - Git version for /usr/bin/git: 2.25.1.0 (UNIX) 
2021-03-23 14:19:31,632 [   3467][ApplicationImpl pooled thread 7]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342 
2021-03-23 14:19:31,742 [   3577][ApplicationImpl pooled thread 5]   INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found 
2021-03-23 14:19:31,830 [   3665][ApplicationImpl pooled thread 5]   INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 427ms; general responsiveness: ok; EDT responsiveness: ok 
2021-03-23 14:19:31,841 [   3676][ApplicationImpl pooled thread 5]   INFO - CompilerWorkspaceConfiguration - Available processors: 1 
2021-03-23 14:19:36,935 [   8770][ApplicationImpl pooled thread 2]   INFO - gnostic.MemorySizeConfigurator - Memory size configurator skipped: Unable to determine current -Xmx. VM options file is /opt/idea/bin/idea64.vmoptions 
2021-03-23 14:19:36,982 [   8817][ApplicationImpl pooled thread 2]   INFO - processContentRootDataActivity - Ignored reprocess of content root data service for new projects 
2021-03-23 14:20:27,622 [  59457][Shutdown tracker]   INFO - newvfs.persistent.PersistentFS - VFS dispose started 
2021-03-23 14:20:27,632 [  59467][Shutdown tracker]   INFO - newvfs.persistent.PersistentFS - VFS dispose completed 
2021-03-23 14:20:27,633 [  59468][Shutdown tracker]   INFO - stubs.SerializationManagerImpl - Start shutting down /data/cache/idea/index/rep.names 
2021-03-23 14:20:27,633 [  59468][Shutdown tracker]   INFO - stubs.SerializationManagerImpl - Finished shutting down /data/cache/idea/index/rep.names 
2021-03-23 14:20:27,633 [  59468][Shutdown tracker]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------ 
2021-03-23 14:20:27,636 [  59471][Shutdown tracker]   INFO - org.jetbrains.io.BuiltInServer - web server stopped 

Where 14:20:27,622 marks the time when I interrupted the process in the debugging session.

According to the javadoc at https://github.com/JetBrains/intellij-community/blob/master/platform/platform-impl/src/com/intellij/ide/startup/ServiceNotReadyException.java#L7-L8 the exception should not be fatal but even after a timeout of one hour there is no progress.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.