Changes to codebase not reflecting

I want to make some changes to REPL.jl present at Julia-1.3.1\share\julia\stdlib\v1.3\REPL\src (local installation). However the changes aren’t being reflected when I actually run it. Do I need to run an intermediate build command? Here is the versioninfo() output:

Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core™ i7-8550U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

You can either run make, or use the trick from here: Pkg.jl/README.md at master · JuliaLang/Pkg.jl · GitHub

3 Likes

If you don’t have a source build, you can edit the files and then do

using Revise, REPL
Revise.track(REPL)
2 Likes

Still isn’t working. May I have the instructions for the source build ? Maybe changing some lines of the file isn’t enough. I need to build it entirely.

My local installation has REPL.jl at the path Julia-1.3.1\share\julia\stdlib\v1.3\REPL\src , whereas it is present under \stdlib\REPL\src at GitHub. Would a different path prevent Revise from reflecting the changes ? It is not working out currently.

Yes, it is path-dependent. You can unpack Revise.watched_files to figure out where it’s looking for the files:

julia> Revise.track(REPL)

julia> Revise.watched_files
Dict{String,Revise.WatchList} with 7 entries:
  "/home/tim/.julia/packages/JuliaInterpreter/u3T76/src"   => WatchList(1.5836e9, Dict("utils.jl"=>JuliaInterpreter [aa1ae85d-cabe-5617-a682-6adf51b2e16a],"types.jl"=>JuliaInterpreter [aa1ae85d-cabe-5617…
  "/home/tim/.julia/dev/Revise/src"                        => WatchList(1.5836e9, Dict("utils.jl"=>Revise [295af30f-e4ad-537b-8983-00126c2a3abe],"types.jl"=>Revise [295af30f-e4ad-537b-8983-00126c2a3abe],…
  "/home/tim/.julia/packages/LoweredCodeUtils/7mMEd/src"   => WatchList(1.5836e9, Dict("LoweredCodeUtils.jl"=>LoweredCodeUtils [6f1432cf-f94c-5a45-995e-cdbf5db27b0b]))
  "/home/tim/src/julia-1/stdlib/REPL/src/TerminalMenus"    => WatchList(1.5836e9, Dict("TerminalMenus.jl"=>REPL [3fa0cd96-eef1-5676-8a61-b3b8758bbffb],"RadioMenu.jl"=>REPL [3fa0cd96-eef1-5676-8a61-b3b875…
  "/home/tim/.julia/packages/CodeTracking/gCUPD/src"       => WatchList(1.5836e9, Dict("utils.jl"=>CodeTracking [da1fd8a2-8d9e-5ec2-8556-3022fb5608a2],"pkgfiles.jl"=>CodeTracking [da1fd8a2-8d9e-5ec2-8556…
  "/home/tim/src/julia-1/stdlib/REPL/src"                  => WatchList(1.5836e9, Dict("docview.jl"=>REPL [3fa0cd96-eef1-5676-8a61-b3b8758bbffb],"REPLCompletions.jl"=>REPL [3fa0cd96-eef1-5676-8a61-b3b875…
  "/home/tim/.julia/packages/OrderedCollections/E21Rb/src" => WatchList(1.5836e9, Dict("dict_sorting.jl"=>OrderedCollections [bac558e1-5e72-5ebc-8fee-abe8a469f55d],"ordered_dict.jl"=>OrderedCollections […
3 Likes