How to recompile a package I am developing

I guess it is an elementary question but I couldn’t figure it out.

I am developing a package. How can I tell Julia to recompile it after I made some changes to the code?

1 Like

Most people (I guess) uses Revise.jl for that purpose.

1 Like

Pkg.test("nameofpackage") will run all the unit tests in a new separate Julia process, which means that the code will be recompiled. You have to do all your testing as unit tests though, because the REPL session does not get updated.
(This his how I usually do it, but it’s a lot slower than Revise if you just want to make a small change and test what it did.)

1 Like