Skip to content

LuaRocks dependencies missing type information #599

Answered by Aire-One
PedroHase asked this question in Q&A
Discussion options

You must be logged in to vote

I have solved this problem in my teal project with the following structure:

.
├── build                # Where cyan will put the generated .lua files
├── justfile
├── lua_modules          # Luarocks local tree
├── set_paths.lua        # Generated from set_paths.tl to run the program from builded Lua files
├── set_paths.tl         # Teal version of set_paths.lua from https://leafo.net/guides/customizing-the-luarocks-tree.html
├── src
│   └── <project name>   # Source files
├── tlconfig.lua
└── types                # Teal type definitions

The config files are:

-- tlconfig.lua
return {
   build_dir = "build",
   source_dir = "src",
   include_dir = {
      "src/<project name>",
      "types",…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@PedroHase
Comment options

@lenscas
Comment options

Comment options

You must be logged in to vote
1 reply
@lenscas
Comment options

Comment options

You must be logged in to vote
6 replies
@PedroHase
Comment options

@lenscas
Comment options

@Aire-One
Comment options

@PedroHase
Comment options

@Aire-One
Comment options

Answer selected by PedroHase
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants