#Directory structure import my own package

15 messages · Page 1 of 1 (latest)

gritty agate
warped hamlet
#

what's the exact error?

gritty agate
#

i want to import it but language server and linter says no

warped hamlet
#

im asking for the error message

gritty agate
warped hamlet
#

does that not tell you what's wrong?
i think your subpackage has a package name of main, which you want to avoid

#

you usually name it so that it's the same as the folder name, for example package commands

gritty agate
#

i change it

#

but still do not see my functions

warped hamlet
#

that's not how you use foreign functions

#

how is the parser supposed to know which function is coming from which package?

gritty agate
#

what should i do?

warped hamlet
#

for example if your package is commands, you use it like commands.FunctionName

gritty agate
#

oh