TAGGED: Bug report
-
-
August 5, 2026 at 2:42 pm
Etienne Tachouzin
SubscriberWhen a chemical component contains parentheses in its name, there is a bug during CLI import and export.
For example, I have a
.ftsimproject with the componentsoil(l)andoil(vapor). I want to automate part of the setup using the CLI.My initial approach was to export the data using:
forte.sh CLI -project my_project.ftsim -export my_setup.txtThen I edited the exported file (for example, to change the pressure and other parameters).
After that, I tried to import the modified file using:
forte.sh CLI -project my_project.ftsim -import my_new_setup.txtHowever, the import fails because the file contains the component name
oil(l).The most surprising part is that exporting a file and then importing the exact same file—without making any changes—also causes the import to fail.
In other words, the export operation produces a file that cannot be imported back, making the export/import process non-reversible.
Exception in thread "main" com.reactiondesign.core.textio.TokenMgrError: Lexical error at line 481, column 10. Â Encountered: "(" (40), after : ""
    at com.reactiondesign.core.textio.ForteGrammarTokenManager.getNextToken(ForteGrammarTokenManager.java:648)
    at com.reactiondesign.core.textio.ForteGrammar.jj_scan_token(ForteGrammar.java:667)
    at com.reactiondesign.core.textio.ForteGrammar.jj_3R_7(ForteGrammar.java:521)
    at com.reactiondesign.core.textio.ForteGrammar.jj_3_4(ForteGrammar.java:384)
    at com.reactiondesign.core.textio.ForteGrammar.jj_3_3(ForteGrammar.java:391)
    at com.reactiondesign.core.textio.ForteGrammar.jj_2_3(ForteGrammar.java:234)
    at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:61)
    at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:69)
    at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:69)
    at com.reactiondesign.core.textio.ForteGrammar.parse(ForteGrammar.java:38)
    at com.reactiondesign.cfd.amg.commands.ImportProjectText.findParameterInTextFile(ImportProjectText.java:311)
    at com.reactiondesign.cfd.amg.commands.ImportProjectText.importText(ImportProjectText.java:430)
    at com.reactiondesign.cfd.amg.commands.ImportProjectText.main(ImportProjectText.java:1121)
-
- You must be logged in to reply to this topic.
-
6880
-
1906
-
1544
-
1344
-
1217
© 2026 Copyright ANSYS, Inc. All rights reserved.