eureka2 / G6K

Generator of calculation simulator (calculator)
MIT License
20 stars 19 forks source link

Widget abDatepicker is not installed #28

Closed momos95 closed 4 years ago

momos95 commented 4 years ago

Hello,

thank you for the good job you did with the simulator.

So, I have an issue, I am trying to import a similator .xml and I got this error : 'Simulator Importer: The widget 'abDatepicker' doesn't exists'

Could you help me please ?

Warmest Regards, Mamadou

eureka2 commented 4 years ago

Hello

Can you verify that : 1) the file "config\packages\g6k.yml" contains the lines :

    widgets:
        abListbox:
            label: Accessible and customizable listbox
            target: [ choice, department, region, country, year, month, day ]
            input: [ select ]
            css:
                - css/listbox.css
            js: 
                - js/listbox.js
                - js/abListbox.js
        abDatepicker:
            label: Accessible and customizable datepicker
            target: [ date ]
            input: [ text ]
            css: 
                - css/datepicker.css
            js: 
                - js/locales/%app_locale%.js
                - js/datepicker.js
                - js/abDatepicker.js

2) The file "calcul/assets/base/widgets/abDatepicker/js/abDatepicker.js" exists

Is it possible to upload your xml file here ?

Best regards

momos95 commented 4 years ago

Hello

Can you verify that :

  1. the file "config\packages\g6k.yml" contains the lines :
    widgets:
        abListbox:
            label: Accessible and customizable listbox
            target: [ choice, department, region, country, year, month, day ]
            input: [ select ]
            css:
                - css/listbox.css
            js: 
                - js/listbox.js
                - js/abListbox.js
        abDatepicker:
            label: Accessible and customizable datepicker
            target: [ date ]
            input: [ text ]
            css: 
                - css/datepicker.css
            js: 
                - js/locales/%app_locale%.js
                - js/datepicker.js
                - js/abDatepicker.js
  1. The file "calcul/assets/base/widgets/abDatepicker/js/abDatepicker.js" exists

Is it possible to upload your xml file here ?

Best regards

I can see all the assets about the abDatepicker at the right directory (the same as you mentionned).

momos95 commented 4 years ago

it's a XML I can transform it to .txt and upload it.

momos95 commented 4 years ago

definitions-des-simulateurs_cout-certificat-immatriculation.txt

eureka2 commented 4 years ago

Ok, do the filenames respect upper and lower case?

What are your operating system and version of PHP?

momos95 commented 4 years ago

Ok, do the filenames respect upper and lower case?

What are your operating system and version of PHP?

Yes, upper and lower cases are respected.

OS : Windows 10 PHP version : 7.2.9

eureka2 commented 4 years ago

I don't understand because i imported successfully your file.

Please open the PHP file "src\G6K\Command\ImportSimulatorCommand.php" and add the following line after the line 146 :

$this->success($output, "The assets directory is '%s%'", array('%s%' => $assetsDir)); and retry

momos95 commented 4 years ago

Thank,

After run, I have seen that my PUBLIC_DIR was bad, indeed, it didnt index the "caclul" folder.

Thank you very much.

eureka2 commented 4 years ago

ok, y're welcome