Skip to content

🐛 java.lang.IllegalArgumentException: Missing text from raceName #845

Description

@DFPortela2001

Describe the bug

I tried doing it manually and using the TTRPG-Convert-CLI-UI tool and keep getting this error:

 OK| Finished reading config.
­ƒöÀ INFO| ÔÅ│ Reading C:\Users\XXX\Desktop\D&D\5etools - CLI Obsidian\bin\5etools-src\data
java.lang.IllegalArgumentException: Missing text from raceName
at dev.ebullient.convert.tools.JsonNodeReader.getTextOrThrow(JsonNodeReader.java:236)
at dev.ebullient.convert.tools.dnd5e.Tools5eIndex.addToSubraceIndex(Tools5eIndex.java:233)
at dev.ebullient.convert.tools.dnd5e.Tools5eIndexType.lambda$withArrayFrom$1(Tools5eIndexType.java:694)
at java.base@23.0.2/java.lang.Iterable.forEach(Iterable.java:75)
at dev.ebullient.convert.tools.dnd5e.Tools5eIndexType.withArrayFrom(Tools5eIndexType.java:694)
at dev.ebullient.convert.tools.dnd5e.Tools5eIndex.indexTypes(Tools5eIndex.java:165)
at dev.ebullient.convert.tools.dnd5e.Tools5eIndex.importTree(Tools5eIndex.java:116)
at dev.ebullient.convert.tools.dnd5e.Tools5eIndex.importTree(Tools5eIndex.java:45)
at dev.ebullient.convert.io.Tui.readFile(Tui.java:526)
at dev.ebullient.convert.io.Tui.readToolsDir(Tui.java:586)
at dev.ebullient.convert.io.Tui_ClientProxy.readToolsDir(Unknown Source)
at dev.ebullient.convert.RpgDataConvertCli.call(RpgDataConvertCli.java:193)
at dev.ebullient.convert.RpgDataConvertCli.call(RpgDataConvertCli.java:39)
at picocli.CommandLine.executeUserObject(CommandLine.java:2031)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
at dev.ebullient.convert.RpgDataConvertCli.executionStrategy(RpgDataConvertCli.java:263)
at picocli.CommandLine.execute(CommandLine.java:2174)
at dev.ebullient.convert.RpgDataConvertCli.run(RpgDataConvertCli.java:277)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:141)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:80)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:51)
at io.quarkus.runner.GeneratedMain.main(Unknown Source)
at java.base@23.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)

I saw this was a issue with the config file. Here is my config file:

{
"sources" : {
"adventure" : [
"LMoP"
],
"book" : [
"XPHB",
"XDMG",
"XMM"
],
"reference" : [
"MM"
],
"homebrew" : [
]
},
"paths" : {
"rules" : "/2. Mecanicas/CLI/rules",
"compendium" : "/2. Mecanicas/CLI"
},
"images" : {
"copyInternal" : true,
"copyExternal" : true,
"internalRoot" : "5etools-img"
},
"yamlStatblocks" : true,
"reprintBehavior" : "newest",
"useDiceRoller" : false,
"tagPrefix" : "ttrpg-cli",
"template" : {
"background" : "examples/templates/tools5e/images-background2md.txt",
"monster" : "examples/templates/tools5e/monster2md-yamlStatblock-body.txt",
"item" : "examples/templates/tools5e/images-item2md.txt",
"race" : "examples/templates/tools5e/images-race2md.txt",
"spell" : "examples/templates/tools5e/images-spell2md.txt"
}
}

Attached logs
ttrpg-convert.out.txt

Expected Behavior

It was expected to convert 5etools data into markdown to use in obsidian.

TTRPG CLI Version

ttrpg-convert version 3.2.3 Git commit: 3486459

Which Operating Systems have you experienced this on?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions