Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVT: jakartaee-11.0 platform shown as option but some versionless features do not resolve #1229

Open
hanczaryk opened this issue Jan 15, 2025 · 4 comments
Assignees
Labels
bug Something isn't working SVT
Milestone

Comments

@hanczaryk
Copy link
Member

SVT: jakartaee-11.0 platform shown as option but some versionless features do not resolve

I've setup IntelliJ CE 2024.3.1.1 with Liberty Tools 24.0.12 installed on Windows.

IntelliJ IDEA 2024.3.1.1 (Community Edition)
Build #IC-243.22562.218, built on December 18, 2024
Runtime version: 21.0.5+8-b631.28 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4054M
Cores: 20
Registry:
  ide.experimental.ui=true
  i18n.locale=
  llm.show.ai.promotion.window.on.start=false
Non-Bundled Plugins:
  com.redhat.devtools.lsp4ij (0.9.0)
  open-liberty.intellij (24.0.12)
Kotlin: 243.22562.218-IJ

I validated that I can utilize versionless feature with jakartaee-10.0 to specify required features for my application.

My desired featureManager stanza is as follows

    <featureManager>
        <platform>jakartaee-10.0</platform>
        <feature>cdi</feature>
        <feature>enterpriseBeansLite</feature>
        <feature>jdbc</feature>
        <feature>pages</feature>
        <feature>servlet</feature>
        <feature>jndi-1.0</feature>
        <feature>microProfile-6.1</feature>
    </featureManager>

I did observe the following 3 options for platform after typing 'jak' (jakartaee-10.0, jakartaee-11.0, jakartaee-9.1).

As a trial, I attempted to set jakartaee-11.0 for my platform. I don't believe jakartaee-11.0 is supported yet by Liberty (only beta at this point), so I was surprised to observe it in the list. When I select jakartaee-11.0, some of the features don't resolve properly (cdi / pages / servlet). Hovering over the red underlined servlet reports ERROR: The "servlet" versionless feature does not have a configured platform.

I can provide screenshots if desired.

@vaisakhkannan
Copy link
Contributor

I am able to reproduce the issue. I need to check with @arunvenmany-ibm regarding this

@cherylking
Copy link
Member

@hanczaryk Right, so Jakarta EE 11 is not supported yet by Liberty...it is in beta. Our language server detects available platforms from the published features JSON file from Liberty in Maven Central. We have no way of determining that that platform is beta only and should not be shown. I have discussed this with someone in Liberty development a couple of times. We currently have no way to prevent this platform from showing up.

@cherylking
Copy link
Member

I received some feedback from Liberty development and I will work on providing a fix for this. We have a strategy for a different way to gather the available platforms that will hopefully avoid this issue. I will post an update here when we have a new LCLS snapshot to try in a couple of days.

@vaisakhkannan
Copy link
Contributor

Just to note that, this issue is present in across all IDEs (LTI, LTE and LTV).
I am parking this issue now and waiting for a new LCLS snapshot.

@vaisakhkannan vaisakhkannan moved this from In Progress to Parked in Open Liberty Developer Experience Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SVT
Projects
Development

No branches or pull requests

4 participants