cancel
Showing results for 
Search instead for 
Did you mean: 

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

GMeur
Senior II

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.

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
GMeur
Senior II

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…)

 

 

 

View solution in original post

4 REPLIES 4
GaetanGodart
ST Employee

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 Godart
Software engineer at ST (TouchGFX)
GMeur
Senior II

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
Senior II

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…)

 

 

 

Hello @GMeur ,

 

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

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)