Picture of Jason Wilson
Possible to get better error reporting on translation import?
by Jason Wilson - Friday, 28 May 2021, 12:50 AM
 

Hi guys, just wondering if there is something I can do to get better error reporting when using the following command to create a language version of my course?

grunt translate:import --targetLang=th-th --format=csv --replace

Currently, I'm only getting the following error message:

>> TypeError: Cannot read property 'length' of undefined

This, unfortunately, tells me nothing - I really need to know what line etc. the issue is so I can attempt to fix it.

If it makes any difference, it is the course.csv file, exported from Adapt Author Tool.

Thanks for any help.

Full output message:

$ grunt translate:import --targetLang=th-th --format=csv --replace
Running "translate:import" (translate) task
>> Using src/ folder for course data...
>> Encoding detected as UTF-8 languagefiles/th-th/articles.csv
>> Delimiter detected as , in languagefiles/th-th/articles.csv
>> Encoding detected as UTF-8 languagefiles/th-th/blocks.csv
>> Delimiter detected as , in languagefiles/th-th/blocks.csv
>> Encoding detected as UTF-8 languagefiles/th-th/components.csv
>> Delimiter detected as , in languagefiles/th-th/components.csv
>> Encoding detected as UTF-8 languagefiles/th-th/contentObjects.csv
>> Delimiter detected as , in languagefiles/th-th/contentObjects.csv
>> Encoding detected as UTF-8 languagefiles/th-th/course.csv
>> Delimiter detected as , in languagefiles/th-th/course.csv
>> TypeError: Cannot read property 'length' of undefined

Done.

Picture of Oliver Foster
Re: Possible to get better error reporting on translation import?
by Oliver Foster - Tuesday, 1 June 2021, 10:46 AM
 

Hi Jason,

Can you use github issues to report this bug please? https://github.com/adaptlearning/adapt_framework/issues

When you report the issue there, can you specify the versions of authoring tool, framework and node.

You may also need to provide a zip of your course.

Warm regards,

Ollie

Picture of Jason Wilson
Re: Possible to get better error reporting on translation import?
by Jason Wilson - Tuesday, 1 June 2021, 9:48 PM
 

Thanks, Ollie - will do.