[Bug]: cap doctor fails to recognize valid Kotlin source directories
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- android, java, kotlin, typescript
Hướng nghiên cứu
The report is that npx cap doctor flags a missing java directory under android/app/src/main/java on Kotlin-only layouts. Start from PR #8600, which the body says already contains a fix, and check whether it is still open or merged before writing anything. Reproduce by running npx cap doctor on an Android project that has only src/main/kotlin. Done when the doctor check accepts a Kotlin source layout without reporting the java directory error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Capacitor Version
@capacitor/cli: 8.x.x
@capacitor/core: 8.x.x
@capacitor/android: 8.x.x
@capacitor/ios: 8.x.x
[error] java directory is missing in android/app/src/main/java (when using a Kotlin-only source layout)
Other API Details
npm --version: 11.x.x (or latest)
node --version: v22.x.x / v24.x.x
Platforms Affected
- iOS
- Android
- Web
Current Behavior
When running npx cap doctor on an Android project that uses Kotlin source directories (e.g., src/main/kotlin or custom Kotlin source sets instead of only src/main/java), the CLI fails to properly recognize or validate the source directory path, leading to incorrect diagnostic checks.
Expected Behavior
cap doctor should properly recognize and accept valid Kotlin source directories during Android project validation.
Project Reproduction
Provided directly via PR #8600: https://github.com/ionic-team/capacitor/pull/8600
Additional Information
A fix for this issue has already been implemented and submitted in PR #8600:
https://github.com/ionic-team/capacitor/pull/8600
- Ngôn ngữ chính
- TypeScript
- Star
- 17.1k
- Fork
- 1.3k
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 32
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ionic-team/capacitor
-
[Bug]: Plugin call after navigation can be answered before reply proxy is updatedCó thể đã có người làm @MateStrysewske đã nhận 56 ngày trước. Đang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
ionic-team/capacitor#8616 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug]: SystemBars shrinks the WebView twice for the keyboard on Android 10 (API 29) when WebView >= 140 and viewport-fit=coverCó thể đã có người làm @theproducer đã nhận 18 ngày trước. Đang mởneeds reply
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ionic-team/capacitor#8601 · 2 bình luận · 3 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ionic-team/capacitor#8574 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
SystemBars: safe area CSS injection throws "Cannot read properties of null" on startup (Android 16)Có thể đã có người làm @kttalley đã nhận 47 ngày trước. Đang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ionic-team/capacitor#8530 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
fix(android): remove unchecked Java compilation warningsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ionic-team/capacitor#8529 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của ionic-team/capacitor
Issue tương tự
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
lingdojo/kana-dojo#34223 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug status: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
mastra-ai/mastra#30587 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:web p2 product:business triage:active type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
cuadrao-ai/argus#2228 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
embedpdf/embed-pdf-viewer#1098 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
.Needs Triage .Team/Metabot Priority:P3 Type:Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
metabase/metabase#87252 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày