Skip to content

[BUG] - dto语言spec新增或者删除字段后编译没有触发对应的class的重编译 #936

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

Closed
zzxzz12345 opened this issue Feb 21, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@zzxzz12345
Copy link

Jimmer Version

0.9.56

JDK Version

JDK 21

Database

MySQL

OS

Mac

Expected behavior

dto语言spec新增或者删除字段后编译没有触发对应的class的重编译

Actual behavior

dto file能够正常被编译

Description

Reproduction steps

比如有这样一个dto


specification BOMSpec implements Paged {
    productNo

    productType

}

加入一部分内容后

specification BOMSpec implements Paged {
    productNo

    productType

    flat(bom) {
        flat(parentProduct) {
            productNo as parentProductNo
        }

        flat(componentProduct) {
            productNo as childProductNo
        }
    }
}

通过./gradlew build -x test不会触发对应文件的重编译

此外ksp增量编译经常报错

kspcaches/main/symbollookups/id-to-file.tab] is already registered

所以目前gradle.properties里是把ksp的增量编关掉的

ksp.incremental=false

Generated SQL

No response

Relation Model

No response

Screenshots

No response

Logs

No response

@zzxzz12345 zzxzz12345 added the bug Something isn't working label Feb 21, 2025
@babyfish-ct
Copy link
Owner

Image

@babyfish-ct
Copy link
Owner

目前的技术体系无法解决,智能靠IDE插件体系优化体验

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants