Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 13, 2025

PyCharm fails to load the plugin descriptor from the built ZIP due to naming inconsistencies between the archive and internal plugin structure. Additionally, this PR standardizes the default port to 8080 across the entire codebase.

Changes

  • Removed manual archiveBaseName override in buildPlugin task - This bypasses IntelliJ Platform Gradle Plugin's standard naming conventions and causes structural mismatches
  • Added settings.gradle.kts with rootProject.name = "intellij-plugin" - Project name now controls artifact naming through Gradle's standard mechanism
  • Changed all default ports from 8000 to 8080 - Updated Python backend, Kotlin plugin, and documentation to use port 8080 consistently

The IntelliJ Platform Gradle Plugin 2.x requires project name (not archiveBaseName) to determine plugin structure. The built artifact remains intellij-plugin-{version}.zip but with correct internal structure for PyCharm installation.

Plugin Descriptor Fix

// build.gradle.kts - Removed:
buildPlugin {
    archiveBaseName.set("intellij-plugin")
}

// settings.gradle.kts - Added:
rootProject.name = "intellij-plugin"

Port Changes

Updated default port from 8000 to 8080 in:

  • utils/config.py - Default UVICORN_PORT environment variable fallback
  • main.py - Fallback default port in uvicorn.run()
  • ide-plugins/src/main/kotlin/com/picocode/PicoCodeSettings.kt - Default serverPort in plugin settings
  • ide-plugins/src/main/kotlin/com/picocode/PicoCodeConfigurable.kt - Fallback default port in plugin configuration
  • REST_API.md - Updated all documentation examples to use port 8080

[!WARNING]

Original prompt

Fail to load plugin descriptor from file intellij-plugin-0.0.1-test.zip when installing the plugin on pycharm, maybe because the file inside the package not have the same filename??


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix plugin descriptor loading issue in PyCharm installation Fix plugin descriptor loading by using proper Gradle project naming Nov 13, 2025
Copilot AI requested a review from Mte90 November 13, 2025 08:15
Copilot finished work on behalf of Mte90 November 13, 2025 08:15
@Mte90
Copy link
Member

Mte90 commented Nov 13, 2025

@copilot I want also that you change all the default port in all the codebase to 8080

Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 13, 2025

@copilot I want also that you change all the default port in all the codebase to 8080

Changed all default ports from 8000 to 8080 across the entire codebase. Updated:

  • Python backend (utils/config.py, main.py)
  • Kotlin plugin (PicoCodeSettings.kt, PicoCodeConfigurable.kt)
  • Documentation (REST_API.md)

Commit: 2c17cba

Copilot AI changed the title Fix plugin descriptor loading by using proper Gradle project naming Fix plugin descriptor loading and change default port to 8080 Nov 13, 2025
Copilot finished work on behalf of Mte90 November 13, 2025 08:23
@Mte90 Mte90 marked this pull request as ready for review November 13, 2025 08:35
@Mte90 Mte90 merged commit ce1e448 into master Nov 13, 2025
1 check passed
@Mte90 Mte90 deleted the copilot/fix-plugin-descriptor-loading branch November 13, 2025 08:35
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