Skip to content

Conversation

Vladislav0Art
Copy link
Collaborator

Description of changes made

This PR introduces an implementation of a headless2 task that is runnable on a newer IntelliJ 2024.3.

The exact setup:

  1. IntelliJ version:
IntelliJ IDEA 2024.3
Build #JBC-243.21565.193, built on November 13, 2024
Licensed to JetBrains Team / Vladislav Artiukhov
You have a perpetual fallback license for this version.
Subscription is active until December 31, 2025.
Runtime version: 21.0.5+8-b631.16 x86_64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 14.2.1
Controller in Remote Development
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 1500M
Cores: 16
Metal Rendering is ON
Registry:
  debugger.auto.attach.from.console=true
  ide.experimental.ui=true
  i18n.locale=
Non-Bundled Plugins:
  com.intellij.plugins.visualstudiokeymap (243.21565.122)
  com.intellij.plugins.netbeanskeymap (243.21565.122)
  com.intellij.plugins.eclipsekeymap (243.21565.122)
  1. The machine on which I tested the headless2 task:
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
  1. How to run and test (I attached a zip with a sample project):
./gradlew :headless2 -p "/path/to/project/folder/TestSpark" \
	-Proot="/path/to/sample-projects/hello-world-java" \
	-Pfile="src/main/java/hello/world/Calculator.java" \
	-Pcut="hello.world.Calculator" \
	-Pcp="/home/ubuntu/research-work-2024/sample-projects/hello-world-java/build/classes:/home/ubuntu/research-work-2024/sample-projects/hello-world-java/build/classes/java:/home/ubuntu/research-work-2024/sample-projects/hello-world-java/build/classes/java/main" \
	-Pjunitv="5" \
	-Pjavahome="/home/ubuntu/.gradle/jdks/adoptium-17-x64-hotspot-linux/jdk-17.0.10+7/bin/java (any >=17 fits)" \
	-Pllm="GPT-4o" \
	-Ptoken="Grazie Token" \
	-Pprompt="/path/to/prompt.txt" \
	-Pout="/path/to/out/folder" \
	-PenableCoverage="true" \
	-Dspace.username="Vladislav.Artiukhov" \
	-Dspace.pass="Space Token" \
	--stacktrace

Here is the sample project to test on:
hello-world-java.zip

Other notes

The PR is not for merging! See below.

What is missing?

The modifications are messy; I do not plan to merge the PR into development. The PR is opened as a draft to raise awareness of other folks.

@Vladislav0Art Vladislav0Art self-assigned this Dec 3, 2024
Comment on lines +50 to +51
intellijDependencies()
localPlatformArtifacts()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, it is not needed.

Copy link
Collaborator Author

@Vladislav0Art Vladislav0Art left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment about intellijPlatform block.

@Vladislav0Art Vladislav0Art changed the base branch from development to headless-mode December 4, 2024 14:06
@Vladislav0Art Vladislav0Art changed the title Revive headless mode for IntelliJ 2024.3 Revive headless mode for IntelliJ 2024.3 [DO NOT REVIEW] Jan 17, 2025
@Vladislav0Art Vladislav0Art changed the title Revive headless mode for IntelliJ 2024.3 [DO NOT REVIEW] [DO NOT REVIEW] Revive headless mode for IntelliJ 2024.3 Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants