WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@xHeaven
Copy link
Collaborator

@xHeaven xHeaven commented Nov 29, 2025

Closes #14.

@github-actions
Copy link

github-actions bot commented Nov 29, 2025

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

@xHeaven
Copy link
Collaborator Author

xHeaven commented Dec 2, 2025

@xepozz Does this look fine?

@xepozz
Copy link
Collaborator

xepozz commented Dec 2, 2025

image

Thanks @xHeaven. I've tried to perform such collecting, but nothing worked.
The way is simple:

  • Target to a File in Injector
  • Find XmlValue/etc manually with PsiTreeUtil
  • Inject as it is now

But PHP layer don't work in this way, all completion is broken.

I've pushed a minor refactoring, I'm ok to merge it.

@xepozz
Copy link
Collaborator

xepozz commented Dec 2, 2025

image

The picture I attached to the previous post is related to the web types. Lets disable injections from the web types / symbols, they block our manual injection. Can you check?

@xepozz
Copy link
Collaborator

xepozz commented Dec 2, 2025

image With enabled web types. It blocks autocompletion, inspections

@xHeaven
Copy link
Collaborator Author

xHeaven commented Dec 2, 2025

Interesting, which one do you think holds more value as it is right now, web types or autocomplete?

With web types, we have less autocomplete, but the IDE is less of a Christmas tree.
Without web types, we get autocomplete along with all kinds of issues such as syntax errors and attribute warnings:
without web types

We also have a weird issue where we type the variable called $item wrongfully for no apparent reason - not introduced in this PR but weird regardless:
wrong type

I'm not sure we should disable web types just to make the feature in OP work, more like we should fix the behavior of web types, but that's out of the scope of this PR.

We could probably do either:

  • wait with merging this PR, find a solution for the web types issue and merge later
  • merge regardless (autocomplete still works outside of Tempest built-in attributes), and find a solution for the web types issue later

What are your thoughts?

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.

Undefined view variable

3 participants