microsoft / microsoft/java-debug

install error requires 'osgi.bundle; org.eclipse.core.resources [3.21.0,4.0.0)'

Offen
#569 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

ai-triaged bug question
Vorherrschende Sprache
Java
Sterne
409
Forks
204
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
4

Beschreibung


i use 0.53.0 version but i`m getting these errors
i see other issues change




help

./mvnw clean verify -U
[INFO] Scanning for projects...
[INFO] Tycho Version: 4.0.6 (9942454590ad8a6e1c9aa907852cf017dc2ccb98)
[INFO] Tycho Mode: project
[INFO] Tycho Builder: maven
[INFO] Build Threads: 1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Java Debug Server for Visual Studio Code :: Parent [pom]
[INFO] Java Debug Server for Visual Studio Code :: Debugger Core [jar]
[INFO] Java Debug Server for Visual Studio Code :: Debugger Plugin [eclipse-plugin]
[INFO] Java Debug Server for Visual Studio Code :: P2 Update site [eclipse-repository]
[INFO] Java Debug Server for Visual Studio Code :: Target Platform [eclipse-target-definition]
[INFO]
[INFO] ----------------< com.microsoft.java:java-debug-parent >----------------
[INFO] Building Java Debug Server for Visual Studio Code :: Parent 0.53.0 [1/5]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ java-debug-parent ---
[INFO]
[INFO] ----------< com.microsoft.java:com.microsoft.java.debug.core >----------
[INFO] Building Java Debug Server for Visual Studio Code :: Debugger Core 0.53.0 [2/5]
[INFO] from com.microsoft.java.debug.core/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ com.microsoft.java.debug.core ---
[INFO] Deleting /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ com.microsoft.java.debug.core ---
[INFO] skip non existing resourceDirectory /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/main/resources
[INFO]
[INFO] --- compiler:3.7.0:compile (default-compile) @ com.microsoft.java.debug.core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 130 source files to /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/target/classes
[INFO] /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/EvaluatableBreakpoint.java: 某些输入文件
使用或覆盖了已过时的 API。
[INFO] /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/EvaluatableBreakpoint.java: 有关详细信息,
请使用 -Xlint:deprecation 重新编译。
[INFO] /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/SetBreakpointsRequestHand
ler.java: 某些输入文件使用了未经检查或不安全的操作。
[INFO] /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/SetBreakpointsRequestHand
ler.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ com.microsoft.java.debug.core ---
[INFO] skip non existing resourceDirectory /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/test/resources
[INFO]
[INFO] --- compiler:3.7.0:testCompile (default-testCompile) @ com.microsoft.java.debug.core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 18 source files to /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/target/test-classes
[INFO] /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/test/java/com/microsoft/java/debug/core/CompileUtils.java: /Users/johnny/.local/s
hare/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/test/java/com/microsoft/java/debug/core/CompileUtils.java使用或覆盖了已过时的 API。
[INFO] /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/test/java/com/microsoft/java/debug/core/CompileUtils.java: 有关详细信息, 请使用 -
Xlint:deprecation 重新编译。
[INFO] /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/test/java/com/microsoft/java/debug/core/adapter/LRUCacheTest.java: 某些输入文件使
用了未经检查或不安全的操作。
[INFO] /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/src/test/java/com/microsoft/java/debug/core/adapter/LRUCacheTest.java: 有关详细信息,
请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] --- surefire:3.1.2:test (default-test) @ com.microsoft.java.debug.core ---
[INFO] Using auto detected provider org.apache.maven.surefire.junit4.JUnit4Provider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.ClassObjectFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.419 s -- in com.microsoft.java.debug.core.adapter.formatter.ClassObjectFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.CharacterFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 s -- in com.microsoft.java.debug.core.adapter.formatter.CharacterFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.TypeIdentifiersTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s -- in com.microsoft.java.debug.core.adapter.formatter.TypeIdentifiersTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.SimpleTypeFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 s -- in com.microsoft.java.debug.core.adapter.formatter.SimpleTypeFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.ObjectFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.058 s -- in com.microsoft.java.debug.core.adapter.formatter.ObjectFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.ArrayObjectFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 s -- in com.microsoft.java.debug.core.adapter.formatter.ArrayObjectFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.StringObjectFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 s -- in com.microsoft.java.debug.core.adapter.formatter.StringObjectFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.NumericFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 s -- in com.microsoft.java.debug.core.adapter.formatter.NumericFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.NullObjectFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 s -- in com.microsoft.java.debug.core.adapter.formatter.NullObjectFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.formatter.BooleanFormatterTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 s -- in com.microsoft.java.debug.core.adapter.formatter.BooleanFormatterTest
[INFO] Running com.microsoft.java.debug.core.adapter.LRUCacheTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.773 s -- in com.microsoft.java.debug.core.adapter.LRUCacheTest
[INFO] Running com.microsoft.java.debug.core.adapter.ProviderContextTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s -- in com.microsoft.java.debug.core.adapter.ProviderContextTest
[INFO] Running com.microsoft.java.debug.core.adapter.variables.VariableUtilsTest
Breakpoint is accepted.
Breakpoint is hit.
Shutdown debug session.
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053 s -- in com.microsoft.java.debug.core.adapter.variables.VariableUtilsTest
[INFO] Running com.microsoft.java.debug.core.BreakpointTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -- in com.microsoft.java.debug.core.BreakpointTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 48, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ com.microsoft.java.debug.core ---
[INFO] Building jar: /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/target/com.microsoft.java.debug.core-0.53.0.jar
[INFO]
[INFO] --- failsafe:2.15:integration-test (integration-tests) @ com.microsoft.java.debug.core ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO]
[INFO] --- failsafe:2.15:verify (integration-tests) @ com.microsoft.java.debug.core ---
[INFO] Failsafe report directory: /Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.core/target/failsafe-reports
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO]
[INFO] ---------< com.microsoft.java:com.microsoft.java.debug.plugin >---------
[INFO] Building Java Debug Server for Visual Studio Code :: Debugger Plugin 0.53.0 [3/5]
[INFO] from com.microsoft.java.debug.plugin/pom.xml
[INFO] ---------------------------[ eclipse-plugin ]---------------------------
[WARNING] Parameter 'resolver' is unknown for plugin 'target-platform-configuration:4.0.6:target-platform (default-target-platform)'
[WARNING] Using JavaSE-17 to fulfill requested profile of JavaSE-11. This might lead to faulty dependency resolution, consider defining a suitable JDK in the toolchains.
xml.
[INFO] Resolving target definition file:/Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.target/com.microsoft.java.debug.tp.target for environment
s=[macosx/cocoa/aarch64], include source mode=honor, referenced repository mode =ignore, execution environment=StandardEEResolutionHints [executionEnvironment=OSGi profi
le 'JavaSE-17' { source level: 17, target level: 17}], remote p2 repository options=org.eclipse.tycho.p2maven.DefaultProvisioningAgent@1d323dd8
[INFO] ### Using TychoRepositoryTransport for remote P2 access ###
[INFO] Cache location: /Users/johnny/.m2/repository/.cache/tycho
[INFO] Transport mode: online
[INFO] Http Transport type: Java11Client
[INFO] Update mode: forced
[INFO] Minimum cache duration: 60 minutes
[INFO] (you can configure this with -Dtycho.p2.transport.min-cache-minutes=)
[INFO] Downloading from p2: https://download.eclipse.org/tools/orbit/R-builds/R20170516192513/repository/p2.index
[INFO] Downloaded from p2: https://download.eclipse.org/tools/orbit/R-builds/R20170516192513/repository/p2.index (134 bytes at 0 bytes/s)
[INFO] Downloading from p2: https://download.eclipse.org/tools/orbit/downloads/drops/R20170303204511/repository/p2.index
[INFO] Downloading from p2: https://download.eclipse.org/tools/orbit/downloads/drops2/R20170516192513/repository/p2.index
[INFO] Downloaded from p2: https://download.eclipse.org/tools/orbit/downloads/drops2/R20170516192513/repository/p2.index (172 bytes at 0 bytes/s)
[INFO] Downloading from p2: https://download.eclipse.org/eclipse/updates/4.31/p2.index
[INFO] Downloaded from p2: https://download.eclipse.org/eclipse/updates/4.31/p2.index (128 bytes at 0 bytes/s)
[INFO] Downloading from p2: https://download.eclipse.org/eclipse/updates/4.31/categories/p2.index
[INFO] Downloading from p2: https://download.eclipse.org/eclipse/updates/4.31/R-4.31-202402290520/p2.index
[INFO] Downloaded from p2: https://download.eclipse.org/eclipse/updates/4.31/R-4.31-202402290520/p2.index (172 bytes at 0 bytes/s)
[INFO] Downloading from p2: https://download.eclipse.org/jdtls/jdt-core-incubator/snapshots/p2.index
[INFO] Downloaded from p2: https://download.eclipse.org/jdtls/jdt-core-incubator/snapshots/p2.index (172 bytes at 0 bytes/s)
[INFO] Downloading from p2: https://download.eclipse.org/releases/2024-03/202403131000/p2.index
[INFO] Downloaded from p2: https://download.eclipse.org/releases/2024-03/202403131000/p2.index (140 bytes at 0 bytes/s)
[INFO] Downloading from p2: https://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-apt/1.5.3-2019-11-08_11-04-22-H22/p2.index
[INFO] Downloaded from p2: https://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-apt/1.5.3-2019-11-08_11-04-22-H22/p2.index (172 bytes at 0 bytes/s)
[INFO] Downloading from p2: https://download.eclipse.org/jdtls/snapshots/repository/latest/p2.index
[INFO] Downloaded from p2: https://download.eclipse.org/jdtls/snapshots/repository/latest/p2.index (172 bytes at 0 bytes/s)
[INFO] Downloading from p2: https://download.eclipse.org/lsp4j/updates/releases/0.23.1/p2.index
[INFO] Downloaded from p2: https://download.eclipse.org/lsp4j/updates/releases/0.23.1/p2.index (172 bytes at 0 bytes/s)
[ERROR] Cannot resolve target definition:
[ERROR] Software being installed: org.eclipse.jdt.apt.core 3.8.500.v20240702-1051
[ERROR] Missing requirement: org.eclipse.jdt.apt.core 3.8.500.v20240702-1051 requires 'osgi.bundle; org.eclipse.core.resources [3.21.0,4.0.0)' but it could not be foun
d
[ERROR]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Java Debug Server for Visual Studio Code :: Parent 0.53.0:
[INFO]
[INFO] Java Debug Server for Visual Studio Code :: Parent . SUCCESS [ 0.024 s]
[INFO] Java Debug Server for Visual Studio Code :: Debugger Core SUCCESS [ 3.605 s]
[INFO] Java Debug Server for Visual Studio Code :: Debugger Plugin FAILURE [ 9.217 s]
[INFO] Java Debug Server for Visual Studio Code :: P2 Update site SKIPPED
[INFO] Java Debug Server for Visual Studio Code :: Target Platform SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.087 s
[INFO] Finished at: 2024-09-13T14:28:43+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to resolve target definition file:/Users/johnny/.local/share/nvim/lsp/java-debug/com.microsoft.java.debug.target/com.microsoft.java.debug.tp.target: See l
og for details
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der Untersuchung von com.microsoft.java.debug.target/com.microsoft.java.debug.tp.target und den aufgeführten Eclipse-Repository-Speicherorten und reproduziere anschließend den Fehler mit ./mvnw clean verify -U. Als erledigt gilt die Aufgabe, wenn die Zielplattform org.eclipse.core.resources auflöst und das Java-Debug-Projekt seinen Build abschließt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.