-
Notifications
You must be signed in to change notification settings - Fork 16
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
Update to LSP4MP 0.13.3 #1035
Update to LSP4MP 0.13.3 #1035
Conversation
rgrunber
commented
Dec 4, 2024
•
edited
Loading
edited
- ProjectLabelTest, and PropertiesManagerLocationTest should import all test projects initially (@BeforeClass) as now, load{Maven,Gradle}Project will clear any previously imported test projects
- quarkus-renarde-todo, microprofile-applicationpath test projects do not need .project/.classpath files
- artifactID should match project folder for quarkus-renarde-todo
There's a test that failing consistently: |
This fixed the vertx test for me: diff --git a/quarkus.jdt.ext/com.redhat.microprofile.jdt.quarkus.test/src/main/java/com/redhat/microprofile/jdt/quarkus/PropertiesManagerLocationTest.java b/quarkus.jdt.ext/com.redhat.microprofile.jdt.quarkus.test/src/main/java/com/redhat/microprofile/jdt/quarkus/PropertiesManagerLocationTest.java
index fb33f04e..47acc2a0 100644
--- a/quarkus.jdt.ext/com.redhat.microprofile.jdt.quarkus.test/src/main/java/com/redhat/microprofile/jdt/quarkus/PropertiesManagerLocationTest.java
+++ b/quarkus.jdt.ext/com.redhat.microprofile.jdt.quarkus.test/src/main/java/com/redhat/microprofile/jdt/quarkus/PropertiesManagerLocationTest.java
@@ -19,12 +19,14 @@ import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin;
+import org.eclipse.jdt.ls.core.internal.ProjectUtils;
import org.eclipse.lsp4j.ClientCapabilities;
import org.eclipse.lsp4j.Location;
import org.eclipse.lsp4mp.jdt.core.BasePropertiesManagerTest;
import org.eclipse.lsp4mp.jdt.core.PropertiesManager;
import org.eclipse.lsp4mp.jdt.core.utils.IJDTUtils;
import org.junit.Assert;
+import org.junit.BeforeClass;
import org.junit.Test;
@@ -36,12 +38,17 @@ import org.junit.Test;
*/
public class PropertiesManagerLocationTest extends BasePropertiesManagerTest {
+ @BeforeClass
+ public static void setupTetststs() throws CoreException, Exception {
+ loadMavenProject(MicroProfileMavenProjectName.using_vertx);
+ }
+
@Test
public void usingVertxTest() throws Exception {
// Enable classFileContentsSupport to generate jdt Location
enableClassFileContentsSupport();
- IJavaProject javaProject = loadMavenProject(MicroProfileMavenProjectName.using_vertx);
+ IJavaProject javaProject = ProjectUtils.getJavaProject(MicroProfileMavenProjectName.using_vertx);
// Test with JAR
// quarkus.datasource.url |
6cae8b8
to
0acfad5
Compare
I think it's worth investigating
before merging. They only fail in the GHA job, and never locally so I suspect something about the GHA configuration. |
Thanks to @datho7561 for helping me narrow down the issue. Specifically, A progress monitor needs to be passed in to correctly resolve secondary types. |
@@ -36,12 +38,17 @@ | |||
*/ | |||
public class PropertiesManagerLocationTest extends BasePropertiesManagerTest { | |||
|
|||
@BeforeClass | |||
public static void setupTetststs() throws CoreException, Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a good idea to fix this name (this was my fault, sorry)
- ProjectLabelTest, and PropertiesManagerLocationTest should import all test projects initially (@BeforeClass) as now, load{Maven,Gradle}Project will clear any previously imported test projects - quarkus-renarde-todo, microprofile-applicationpath, scheduler-diagnostic test projects do not need .project/.classpath files - artifactID should match project folder for quarkus-renarde-todo Signed-off-by: Roland Grunberg <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks, Roland!