File not found
RobotAvi opened this issue · comments
Tried to download project. So the reason is not "File not found". The cause is the structure of the file. Example is in attach
what_I_try_to_convert.txt
Doesn't work:
@startuml
entity Clients {
*id
client_id
user_name
FIO
}
entity Users {
*id
user_id
role_id
FIO
}
Clients }|.r.|| Users
@enduml
Works but without FK:
@startuml
entity "Clients" as clients{
- client_id: bigint(20)
user_name: bigint(20)
FIO: bigint(20)
}
entity "Users" as users {
- user_id: bigint(20)
- client_id: bigint(20) <>
role_id: bigint(20)
FIO: bigint(20)
}
clients }|-r-|| users
@enduml
Need field type explicitly and FK isnot supported.
我查看源码后找到问题了,因为我的 DDL 脚本在 IDEA 格式化后,第一行的 CREATE TABLE table_name (
的括号被换行了,导致项目里的正则表达式无法识别到 Table 。把括号切换到 Create 语句那一行即可。
@ReberMusk 我也出现这问题了,但是 似乎和你的原因不一样,还可能有什么原因 会导致这个问题?