require files and Glider

I am always working with files organized in folders.
For example: I have an “utils” folder with “functions.lua” file which contains useful functions for my project.
Also, there is “levels” folder with “level1.lua” file.
And then:

  1. If I require “utils/functions.lua” file in “levels/level1.lua” file like this:
    require(“utils.functions”)
    ,Glider reports an error.

  2. If I place “functions.lua” file in to the same folder as “level1.lua” file and call it with:
    require(“functions”)
    , Glider doesn’t report an error.

Corona project works fine in both cases.
Why Glider shows an error in the first case?

Regards [import]uid: 101952 topic_id: 31348 reply_id: 331348[/import]

Hello Srdjan,

Thanks for the code sample!
We are working on these types of issues and library integration in general. Soon you will be able to add external libraries rather than having to copy and paste them into your folder.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 31348 reply_id: 125681[/import]

Thank you.

Honestly, I was thinking that I am doing something wrong. (mostly because I am still learning lua)
I can include my own require files as libraries too? [import]uid: 101952 topic_id: 31348 reply_id: 125721[/import]

Hello Srdjan,

Thanks for the code sample!
We are working on these types of issues and library integration in general. Soon you will be able to add external libraries rather than having to copy and paste them into your folder.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 31348 reply_id: 125681[/import]

Thank you.

Honestly, I was thinking that I am doing something wrong. (mostly because I am still learning lua)
I can include my own require files as libraries too? [import]uid: 101952 topic_id: 31348 reply_id: 125721[/import]