Pluto.jl
                                
                                 Pluto.jl copied to clipboard
                                
                                    Pluto.jl copied to clipboard
                            
                            
                            
                        `@__FILE__` and `@__DIR__` give the same result after the file is moved
Create a new notebook, add cells containing @__FILE__ and @__DIR__. Then move the file from the default location to a new name and location.  For fun, add additional cells containing  @__FILE__ and @__DIR__. Note that re-running the cells which display the out-of-date results does not cause them to update their results.

Thanks for reporting this bug! That's because of an optimization where we don't reparse code if is unchanged, but these macros determine the location based on the line number nodes included in the parsed Expression. We should reparse every expression when the pwd changes.
Finding the dependencies of code on the pwd (to reactively re-run them) is a huge project, not within the current scope of the project. But since file system side effects are a very real thing, we might want to revisit this at some point.
Something that surprised me here was that I could close the browser window and reopen it and those cells that I had created before moving the file still gave stale results.
The browser is just a window into the Pluto server, which is unaffected by relaunching the browser.