Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1157

[DMN Designer] New models must be named with the file name on VSCode

XMLWordPrintable

    • 2020 Week 07-09 (from Feb 10), 2020 Week 10-12 (from Mar 2)

      Currently, new models are being named with unique UUIDs.

      However, it sometimes generates odd API names, and sometimes it breaks the compilation (when the UUID starts with a number):

      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[12,13] <identifier> expected
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[12,18] illegal start of type
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[12,66] ';' expected
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[20,22] ';' expected
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[20,62] ';' expected
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[37,2] reached end of file while parsing
      [INFO] 6 errors 
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.001 s
      [INFO] Finished at: 2020-02-11T16:34:03-02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0-jboss-1:compile (default-compile-1) on project dmn-quarkus-example: Compilation failure: Compilation failure: 
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[12,13] <identifier> expected
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[12,18] illegal start of type
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[12,66] ';' expected
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[20,22] ';' expected
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[20,62] ';' expected
      [ERROR] /Users/karreiro/Downloads/kogito-examples-0.7.1/dmn-quarkus-example/target/generated-sources/kogito/https_58_47_47kiegroup_46org_47dmn_47_A3744FED_45B972_4542E9_459F12_4553DF11814979/1E0D1976_45BED7_454489_458B58_452E0335A66F82Resource.java:[37,2] reached end of file while parsing
      [ERROR] -> [Help 1]
      
      

      To fix this issue, new models must be named with the file name on VSCode.

      ⚠️ This JIRA comprehends an investigation to check if the same change must applied on BC.

              dadossan Daniel José dos Santos (Inactive)
              karreiro_ Guilherme Gomes (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: