Skip to main content
GMeur
Associate III
January 8, 2025
Solved

Internal ruby error 'require' : cannot load such file --lib/version (LoadError)

  • January 8, 2025
  • 3 replies
  • 2058 views

Hi,

A colleague of mine, afer installing touchgfx 4.24.0 on his machine and cloning our git project gets this error message when trying to generate the files in the designer :

Captura error ruby.PNG

 

Can someone give me a hint of what's going on? (error message is quite nebulous tbh)

I don't know if it matters but I recently upgrated touchgfx from version 16.0 to 24.0 on my computer (still have both installed) and it works just fine.

I made him installed touchgfx 16.0 just in case but it didn't help.

Thanks in advance.

 

 

 

 

 

 

    This topic has been closed for replies.
    Best answer by GMeur

    I just found the problem :

    The file 'version.rb' in the folder 'lib' of the textconvert folder (in touchgfx/framewoork/tools) was missing…

    (As stated in the error message and pretty obvious for anyone knowing ruby…)

     

     

     

    3 replies

    GaetanGodart
    ST Employee
    January 8, 2025

    Hello @GMeur ,

     

    The error states that it is enable to finish the asset generation and more specifically for the texts.

    Maybe your colleague have some hidden files on the asset/text folder that should not be there.

    I am sorry I cannot help you more.

     

    Regards,

    Gaetan GodartSoftware engineer at ST (TouchGFX)
    GMeur
    GMeurAuthor
    Associate III
    January 9, 2025

    Hey @GaetanGodart ,

    Thanks for your answer. Yes, I figured it had to do with the texts generation. My problem is trying to understand what's going on exactly :p

    My colleague doesn't seem to have any hidden files in the text folder… Which would be weird anyway as he just cloned the whole git project and I don't have any in mine.

    Isn't there any touchgfx employee who works specifically on the generation tools and that could help here?

    The error is kind of big because it prevents from even compiling the code…

    Thanks in advance.

    GMeur
    GMeurAuthorBest answer
    Associate III
    January 9, 2025

    I just found the problem :

    The file 'version.rb' in the folder 'lib' of the textconvert folder (in touchgfx/framewoork/tools) was missing…

    (As stated in the error message and pretty obvious for anyone knowing ruby…)

     

     

     

    GaetanGodart
    ST Employee
    January 9, 2025

    Hello @GMeur ,

     

    I am glad you were able to fix your issue! :smiling_face_with_smiling_eyes:

     

    Regards,

    Gaetan GodartSoftware engineer at ST (TouchGFX)