I created a new package following the documentation. Specifically, I am stuck on this section where it says “and reloading the package…”. I cannot reload the package after restarting the REPL. If I did not screw something up, there probably is something missing in the documentation.
First I generate my package:
(v1.0) pkg> generate Thyrosim
Generating project Thyrosim:
Thyrosim/Project.toml
Thyrosim/src/Thyrosim.jl
Change directory to the package:
shell> cd Thyrosim/
/Users/biona001/.julia/dev/Thyrosim
Activate the package and import:
(v1.0) pkg> activate .
julia> import Thyrosim
[ Info: Precompiling Thyrosim [7ef34fca-2b35-11e9-1aeb-a527bedb189e]
julia> Thyrosim.greet()
Hello World!
Exit Julia and try to use it again:
julia> exit()
$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.3 (2018-12-18)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using Thyrosim
ERROR: ArgumentError: Package Thyrosim not found in current path:
- Run `import Pkg; Pkg.add("Thyrosim")` to install the Thyrosim package.
Stacktrace:
[1] require(::Module, ::Symbol) at ./loading.jl:823
julia> import Thyrosim
ERROR: ArgumentError: Package Thyrosim not found in current path:
- Run `import Pkg; Pkg.add("Thyrosim")` to install the Thyrosim package.
Stacktrace:
[1] require(::Module, ::Symbol) at ./loading.jl:823
How do I begin using my newly generated package?