Thank you for help.
Julia 1.3.0 / Revise v2.3.2
startup.jl is as follows:
using Distributed
@everywhere push!(LOAD_PATH, "D:/work/julia")
@everywhere push!(LOAD_PATH, "D:/work/julia/test/")
@everywhere push!(LOAD_PATH, "D:/work/julia/test/MyPkg")
@everywhere push!(LOAD_PATH, "D:/work/julia/test/MyPkg/src")
atreplinit() do repl
try
@eval using Revise
@async Revise.wait_steal_repl_backend()
catch
end
end
Step 1.
shell> cd test
D:\work\julia\test
Step 2.
(v1.3) pkg> generate MyPkg
Generating project MyPkg:
MyPkg\Project.toml
MyPkg/src/MyPkg.jl
Step 3.
shell> git init ./MyPkg
Initialized empty Git repository in D:/work/julia/test/MyPkg/.git/
Step 4.
shell> cd MyPkg
D:\work\julia\test\MyPkg
shell> git add -A
shell> git commit -m"init"
[master (root-commit) a323639] init
2 files changed, 9 insertions(+)
create mode 100644 Project.toml
create mode 100644 src/MyPkg.jl
Step 5.
shell> cd ..
D:\work\julia\test
(v1.3) pkg> add MyPkg
[ Info: resolving package identifier `MyPkg` as a directory at `D:\work\julia\test\MyPkg`.
Cloning git-repo `MyPkg`
Updating git-repo `D:/work/julia/test/MyPkg`
Updating git-repo `D:/work/julia/test/MyPkg`
Resolving package versions...
Updating `C:\Users\sijun.cho\.julia\environments\v1.3\Project.toml`
[48f60d83] + MyPkg v0.1.0 #master (MyPkg)
Updating `C:\Users\sijun.cho\.julia\environments\v1.3\Manifest.toml`
[48f60d83] + MyPkg v0.1.0 #master (MyPkg)
Step 6.
julia> using MyPkg
[ Info: Precompiling MyPkg [48f60d83-e34d-427a-8afc-fdeaa2472ade]
julia> MyPkg.greet()
Hello World!
Step 7.
module MyPkg
#greet() = print("Hello World!")
greet() = print("Hello Everyone!")
end # module
Step 8.
julia> using MyPkg
julia> MyPkg.greet() # No change, although paths are pushed to LOAD_PATH hoping Revise will catch
Hello World!
Step 9.
shell> cd test/MyPkg
D:\work\julia\test\MyPkg
shell> git add -A
warning: LF will be replaced by CRLF in src/MyPkg.jl.
The file will have its original line endings in your working directory
shell> git commit -m"upd"
[master 20157e1] upd
1 file changed, 1 insertion(+), 1 deletion(-)
(v1.3) pkg> update MyPkg
Updating registry at `C:\Users\sijun.cho\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Updating git-repo `D:/work/julia/test/MyPkg`
Resolving package versions...
Updating `C:\Users\sijun.cho\.julia\environments\v1.3\Project.toml`
[48f60d83] ~ MyPkg v0.1.0 #master (MyPkg)
Updating `C:\Users\sijun.cho\.julia\environments\v1.3\Manifest.toml`
[48f60d83] ~ MyPkg v0.1.0 #master (MyPkg)
Step 10.
julia> using MyPkg
julia> MyPkg.greet() # now see the change
Hello Everyone!
If I ] activate myenv
and follow the above steps, things are worsen. Even git commit
& ] update package
no longer works; Julia should be restarted.