Skip to content

fix(templates): restore live template loading for 1.0.0-alpha.6.1 - #15

Merged
mambax7 merged 3 commits into
masterfrom
fix/live-template-resource
Nov 25, 2026
Merged

mambax7 merged 3 commits into
masterfrom
fix/live-template-resource

Conversation

@mambax7

@mambax7 mambax7 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

PhpStorm 2026.3 reports a missing resource when loading the XOOPS live templates. The descriptor now points to the exact case-sensitive path in the plugin JAR, liveTemplates/Xoops.xml.

This patch sets the plugin version to 1.0.0-alpha.6.1 and updates the changelog and Marketplace change notes.

Gradle check and buildPlugin passed. Inspection of the distribution ZIP confirmed the plugin version and all eight templates at the registered path.

Summary by Sourcery

Restore live-template loading and release the fix as version 1.0.0-alpha.6.1.

Bug Fixes:

  • Restore PhpStorm loading of all eight XOOPS live templates by correcting the registered resource path.

Enhancements:

  • Add descriptor validation to verify the registered live-template resource and its complete template set inside the plugin JAR.

Build:

  • Bump the plugin version to 1.0.0-alpha.6.1 and update distribution references.

Documentation:

  • Update the changelog, README, tutorial, and Marketplace change notes for the corrected release and eight available live templates.

Tests:

  • Add a plugin JAR test that validates the live-template registration, resource availability, group, and template names.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed an issue that prevented PhpStorm from loading the eight XOOPS live templates. All eight templates are now available for use.
  • Documentation
    • Updated the installation instructions for version 1.0.0-alpha.6.1 and documented language-constant completion and the available live templates.
  • Release
    • This update is version 1.0.0-alpha.6.1. The release includes the live-template loading fix and updated guidance for installing and using the plugin.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 05:32
@sourcery-ai

sourcery-ai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Correct the live-template resource path in the plugin descriptor and bump the plugin version for the alpha.6.1 release.

  • gradle.properties L1
  • src/main/resources/META-INF/plugin.xml L58-59, L139

Pass the packaged plugin JAR to tests so they can validate the registered live-template resource.

  • build.gradle.kts L61-65

Documentation

Record the fix and update the release and template instructions for version alpha.6.1 and the eight shortcuts.

  • CHANGELOG.md L7-10
  • README.md L68-69, L76
  • TUTORIAL.md L9, L161-163

Tests

Verify the plugin archive contains the resource registered by the descriptor and all eight expected template names.

  • src/test/kotlin/org/xoops/support/PluginDescriptorTest.kt L9, L15-37

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The plugin version changes to 1.0.0-alpha.6.1. The default live-template resource path changes. Release notes and documentation describe the fix, language-constant completion, and eight live templates. A test checks the registered template resource in the plugin JAR.

Changes: Live-template resource path release

Layer / File(s) Summary
Template path and release metadata
src/main/resources/META-INF/plugin.xml, gradle.properties, CHANGELOG.md
The default resource path changes from /liveTemplates/XOOPS.xml to liveTemplates/Xoops.xml. The plugin version and release notes are updated to 1.0.0-alpha.6.1.
Completion and template documentation
README.md, TUTORIAL.md
The documentation describes language-constant completion and eight live templates, including xofetchdb, xohead, and xoexec. The documented installation archive name is updated.
Packaged template registration test
build.gradle.kts, src/test/kotlin/org/xoops/support/PluginDescriptorTest.kt
The test task passes the plugin JAR path to a test that checks the descriptor’s live-template registration, referenced resource, XOOPS group, and template content.

Estimated code review effort: 2 (Simple) | ~8 minutes

Possibly related PRs

  • XOOPS/phpstorm-plugin#9: Introduces the plugin resource set and descriptor that this change updates to use the case-sensitive live-template resource path.
Merge Risk: Minimal · up to ff464

This change fixes the live-template resource path so PhpStorm can load the XOOPS templates, and adds a packaging test. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: restoring live template loading for the 1.0.0-alpha.6.1 release. The raw summary and PR objectives confirm the fix. The plugin.xml resource path changes to liveTemplat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: restoring live template loading for the 1.0.0-alpha.6.1 release. The raw summary and PR objectives confirm the fix. The plugin.xml resource path changes to liveTemplates/Xoops.xml, the version moves to alpha.6.1, and a test checks the registered template resource. The title follows a conventional commit style and is 65 characters long, which is concise.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 43df0291-7675-4788-842b-3e608870c9ec
Commits

Reviewing files that changed from the base of the PR and between c81fa2f and ff46423.

Files selected for processing: 2

  • README.md
  • src/test/kotlin/org/xoops/support/PluginDescriptorTest.kt
Files skipped from review as they are similar to previous changes: 1

  • README.md

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

@gitar-bot

gitar-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Gitar is working

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

Gitar

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

This PR restores XOOPS live templates by pointing PhpStorm at the exact case-sensitive path in the plugin JAR.

  • PhpStorm can load all eight XOOPS live templates again.
  • The plugin release is labeled 1.0.0-alpha.6.1.

Reviews (3) · Last reviewed commit: "test(templates): check all eight documen..." · Reviewed by Greptile

Comment thread src/main/resources/META-INF/plugin.xml Resolved
Comment thread gradle.properties Resolved

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 3 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="src/main/resources/META-INF/plugin.xml" line_range="139" />
<code_context>
         <postStartupActivity implementation="org.xoops.support.XoopsProjectDetector"/>

-        <defaultLiveTemplates file="/liveTemplates/XOOPS.xml"/>
+        <defaultLiveTemplates file="liveTemplates/Xoops.xml"/>

         <completion.contributor language="PHP"
</code_context>
<issue_to_address>
**Live templates remain unavailable**

When phpStorm loads the default live-template extension, `defaultLiveTemplates` points to a resource path PhpStorm does not resolve, so none of the eight templates load.

Point `defaultLiveTemplates` at the existing `/liveTemplates/XOOPS.xml` resource.
</issue_to_address>

### Comment 2
<location path="gradle.properties" line_range="1" />
<code_context>
-pluginVersion=1.0.0-alpha.6
+pluginVersion=1.0.0-alpha.6.1
 org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
 org.gradle.caching=true
</code_context>
<issue_to_address>
**Documented archive cannot be found**

When a user follows the README or tutorial build and installation instructions after the version bump, `buildPlugin` produces `xoops-support-1.0.0-alpha.6.1.zip`, while the README and tutorial name `xoops-support-1.0.0-alpha.6.zip`, so users cannot select the documented archive.

Update the README and tutorial archive paths to `xoops-support-1.0.0-alpha.6.1.zip`.
</issue_to_address>

### Comment 3
<location path="src/main/resources/META-INF/plugin.xml" line_range="139" />
<code_context>
         <postStartupActivity implementation="org.xoops.support.XoopsProjectDetector"/>

-        <defaultLiveTemplates file="/liveTemplates/XOOPS.xml"/>
+        <defaultLiveTemplates file="liveTemplates/Xoops.xml"/>

         <completion.contributor language="PHP"
</code_context>
<issue_to_address>
**Template count remains outdated**

When a user reads the feature inventory after PhpStorm loads the corrected resource, `defaultLiveTemplates` now loads a resource containing eight templates, but README.md:69 still says there are five, so the feature inventory understates what users get.

Update the README’s live-template count to eight.
</issue_to_address>

Sourcery assessment

Approval pending. 2 findings to address first.

Blocking findings: src/main/resources/META-INF/plugin.xml:139, gradle.properties:1


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

<postStartupActivity implementation="org.xoops.support.XoopsProjectDetector"/>

<defaultLiveTemplates file="/liveTemplates/XOOPS.xml"/>
<defaultLiveTemplates file="liveTemplates/Xoops.xml"/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟠 High · Live templates remain unavailable

When phpStorm loads the default live-template extension, defaultLiveTemplates points to a resource path PhpStorm does not resolve, so none of the eight templates load.

Point defaultLiveTemplates at the existing /liveTemplates/XOOPS.xml resource.

Prompt for AI agents
In `src/main/resources/META-INF/plugin.xml` at line 139:

**Live templates remain unavailable**

When phpStorm loads the default live-template extension, `defaultLiveTemplates` points to a resource path PhpStorm does not resolve, so none of the eight templates load.

Point `defaultLiveTemplates` at the existing `/liveTemplates/XOOPS.xml` resource.

Comment thread gradle.properties Resolved
Comment thread src/main/resources/META-INF/plugin.xml Resolved
Comment thread README.md Resolved
@sonarqubecloud

Copy link
Copy Markdown

@mambax7
mambax7 merged commit c906cba into master Nov 25, 2026
7 checks passed
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