Debugee exit code not correctly reported during event_exited
まだ誰も着手していません。
評価
調査の方向性
まず、リンクされたサンプルプロジェクトと nvim-dap 統合で問題を再現し、次に Java デバッグサーバーが DAP の event_exited 通知をどのように処理するかを追跡します。報告された exitCode と debugee の実際のプロセス結果を比較します。コード 1 で終了する debugee が、0 ではなく 1 を報告する event_exited ペイロードを生成すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I am having an issue where the exit code of the debugee is reported as 0 instead of 1 when event_exited completes (fires back), when the debugee exits the session. I am using the latest version of this extension and I am using the following dap plugin in neovim https://github.com/mfussenegger/nvim-dap. I did report the issue first there but the maintiner considers this to be an issue within the actual implementation.
Environment
- Operating System: WSL
- JDK version: 19
Steps To Reproduce
Initially reported here - https://github.com/mfussenegger/nvim-dap/issues/886
Sample project for reproduction - sample.zip
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.7.1)
2023-03-05 08:59:45.792 INFO 5600 --- [ main] com.shit.TestApplication : Starting TestApplication using Java 19.0.1 on Asmodeus with PID 5600 (/h
ome/asmodeus/.projects/terere/target/classes started by asmodeus in /home/asmodeus/.projects/terere)
2023-03-05 08:59:45.794 INFO 5600 --- [ main] com.shit.TestApplication : No active profile set, falling back to 1 default profile: "default"
2023-03-05 08:59:46.418 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configura
tion mode
2023-03-05 08:59:46.420 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-03-05 08:59:46.430 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 4 ms. Found 0 JPA repository
interfaces.
2023-03-05 08:59:46.468 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configura
tion mode
2023-03-05 08:59:46.468 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
2023-03-05 08:59:46.469 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 0 ms. Found 0 MongoDB reposi
tory interfaces.
2023-03-05 08:59:46.482 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configura
tion mode
2023-03-05 08:59:46.483 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2023-03-05 08:59:46.489 INFO 5600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 0 ms. Found 0 Redis reposito
ry interfaces.
2023-03-05 08:59:46.743 INFO 5600 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=a07847a1-12f3-3597-b28d-50072cc2df75
2023-03-05 08:59:47.126 INFO 5600 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-03-05 08:59:47.136 INFO 5600 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-03-05 08:59:47.137 INFO 5600 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.64]
2023-03-05 08:59:47.226 INFO 5600 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-03-05 08:59:47.227 INFO 5600 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1381 ms
2023-03-05 08:59:47.508 WARN 5600 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resour
ce [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method 'dataSourceScriptDatabaseI
nitializer' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resou
rce [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframewor
k.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springf
ramework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
2023-03-05 08:59:47.523 INFO 5600 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-03-05 08:59:47.539 INFO 5600 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-03-05 08:59:47.555 ERROR 5600 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
[Process exited 1]
{
exitCode = 0,
type = "exited"
}
Current Result
Exit code is 0
Expected Result
Exit code is 1
Additional Information
None
- 主要言語
- Java
- スター
- 409
- フォーク
- 204
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/java-debug のほかの issue
-
ai-triaged bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/java-debug#611 · コメント 2 件 ·
-
ai-triaged enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/java-debug#608 · コメント 3 件 ·
-
ai-triaged question
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
microsoft/java-debug#597 · コメント 1 件 ·
-
ai-triaged bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
microsoft/java-debug#588 · コメント 1 件 ·
-
ai-triaged question
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
microsoft/java-debug#582 · コメント 1 件 ·
microsoft/java-debug の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
elastic/gradle-plugins#157 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
cryptomator/hub#497 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
johanhaleby/occurrent#1120 ·