I am experimenting with creation of my first package called OHTLCSM.jl. I followed the steps at the link below to add the package to my local repository:
inside the module as shown in my previous post. I now get the following warning:
┌ Info: Precompiling OHTLCSM [792a8791-1285-4c47-952b-f0f8acb5a785]
â”” @ Base loading.jl:1278
┌ Warning: Package OHTLCSM does not have StaticArrays in its dependencies:
│ - If you have OHTLCSM checked out for development and have
│ added StaticArrays as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with OHTLCSM
â”” Loading StaticArrays into OHTLCSM from project dependency, future warnings for OHTLCSM are suppressed.
I tried the resolve() function as it states, but I continue to get the warning. However, the package seems to work fine. Any suggestions as to why I still get this warning?
Actually, no. I assumed the mode where one has a folder with the package. One could then start Julia in that folder and activate/instantiate followed by using.
No, “activate” and “instantiate” are terms specific to the Julia package manager here, and they refer to literally using the pkg> activate and pkg> instantiate commands. You can learn more about what those commands do over at Pkg · The Julia Language
Following the steps listed in the link on my previous post I entered shell from the repl and cd’d to the package folder. I then entered activate . , then I added dependencies, finally I exited with activate. However, I did not use instantiate. When I added my package in the repl with add OHTLCSM it seemed to fix the problem I was having. Is that a lucky accident or did that also instantiate?
It sounds like you did everything right. instantiate takes an existing Project and Manifest and installs all of the packages listed in those files for the active package environment. Since you’ve already installed those packages via pkg> add in this environment, there is nothing for instantiate to do.