Recently I found out about such thing as packages in Erlang language. The problem is I cannot compile module with package declaration. File main.erl with code represented below is located in directory /home/my_user/erl/update/src just like said in manual, but all my attempts to compile it failed. I use 18.0 version of erlang.
-module(update.src.main).
-author("legacy").
-export([start/0]).
start()->
ok.
This is the result I got each time from erlang compiler:
5> c(main).
main.erl:9: syntax error before: '.'
main.erl:10: no module definition
error
Moreover, IntelliJ IDEA plugin for erlang language, which I use, reports an error in the string with module declaration and says that module update should be declared in file update.erl. I've tried to find something about problems with package usage, but all I've got was this question. So, haven't the packages in erlang been implemented yet or I missed something during compiling?