Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not found when file newly created while session is running #855

Closed
BioTurboNick opened this issue Jan 16, 2021 · 3 comments
Closed

Comments

@BioTurboNick
Copy link
Contributor

This is a bit of a weird one.

If I duplicate a notebook file using Visual Studio Code (right click file, copy/paste, rename), then copy the absolute path, then paste it into the path box and try to open it.

For some reason it fails with this error:

Error message:

IOError: realpath: no such file or directory (ENOENT)
Stacktrace:
 [1] uv_error at .\libuv.jl:97 [inlined]
 [2] realpath(::String) at .\path.jl:429
 [3] open(::Pluto.ServerSession, ::String; run_async::Bool, compiler_options::Nothing) at C:\Users\nicho\.julia\packages\Pluto\luIaC\src\webserver\SessionActions.jl:16
 [4] open at C:\Users\nicho\.julia\packages\Pluto\luIaC\src\webserver\SessionActions.jl:15 [inlined]
 [5] (::Pluto.var"#try_launch_notebook_response#116"{Pluto.var"#try_launch_notebook_response#97#117"{Pluto.ServerSession}})(::typeof(Pluto.SessionActions.open), ::String; title::String, advice::String, home_url::String) at C:\Users\nicho\.julia\packages\Pluto\luIaC\src\webserver\Static.jl:132
 [6] (::Pluto.var"#99#119")(::HTTP.Messages.Request) at C:\Users\nicho\.julia\packages\Pluto\luIaC\src\webserver\Static.jl:161
 [7] (::Pluto.var"#87#105"{Bool,Pluto.var"#99#119",Pluto.ServerSession,Pluto.var"#add_set_secret_cookie!#102"{Pluto.ServerSession}})(::HTTP.Messages.Request) at C:\Users\nicho\.julia\packages\Pluto\luIaC\src\webserver\Static.jl:96
 [8] handle(::HTTP.Handlers.RequestHandlerFunction{Pluto.var"#87#105"{Bool,Pluto.var"#99#119",Pluto.ServerSession,Pluto.var"#add_set_secret_cookie!#102"{Pluto.ServerSession}}}, ::HTTP.Messages.Request) at C:\Users\nicho\.julia\packages\HTTP\IAI92\src\Handlers.jl:253
 [9] handle(::HTTP.Handlers.Router{Symbol("##253")}, ::HTTP.Messages.Request) at C:\Users\nicho\.julia\packages\HTTP\IAI92\src\Handlers.jl:467
 [10] (::Pluto.var"#214#224"{Pluto.ServerSession,HTTP.Handlers.Router{Symbol("##253")},Base.RefValue{Function}})(::HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}) at C:\Users\nicho\.julia\packages\Pluto\luIaC\src\webserver\WebServer.jl:214
 [11] handle at C:\Users\nicho\.julia\packages\HTTP\IAI92\src\Handlers.jl:269 [inlined]
 [12] #4 at C:\Users\nicho\.julia\packages\HTTP\IAI92\src\Handlers.jl:345 [inlined]
 [13] macro expansion at C:\Users\nicho\.julia\packages\HTTP\IAI92\src\Servers.jl:367 [inlined]
 [14] (::HTTP.Servers.var"#13#14"{HTTP.Handlers.var"#4#5"{HTTP

If I terminate Pluto and start it again with Pluto.run(), the file now opens as expected.

@fonsp
Copy link
Owner

fonsp commented Jan 18, 2021

(Update Pluto)

@fonsp
Copy link
Owner

fonsp commented Jan 18, 2021

This must be an issue with Julia / VS Code / Windows, or a copy-pasting error

@fonsp fonsp closed this as completed Jan 18, 2021
@BioTurboNick
Copy link
Contributor Author

Hmm, now it's working... It wasn't just a VS error because even when I used the box to manually navigate to the path it generated this error. I'll keep an eye on it.

pankgeorg pushed a commit that referenced this issue Jan 28, 2021
[Diff since v0.12.18](v0.12.18...v0.12.19)

**Closed issues:**
- GPU usage and console messages (#685)
- Feature Proposal: Exported HTML can be passed to a static site generator (#794)
- wait and resume execution on button press (#803)
- Latex code not appropriately displayed (#817)
- Python doesn't work in Pluto (#818)
- add pluto - pluto not found - Julia 1.5.3 macOS (#819)
- Cell output not shown correctly if in-line comment ends with semicolon (#820)
- _llvm (#821)
- Can't move cells (#822)
- Conditions on list comprehensions and execution order (#824)
- Electron app (#825)
- Errors when pressing Ctrl+C to stop Pluto (#827)
- Failed to load notebook error (#829)
- Popup docs don't work for some symbols (#832)
- Running a notebook deleted contents of `.julia/registries` (#834)
- Ctrl+C broken with `julia -e "Pluto.run()"` instead of the REPL (#836)
- Edit or remove default header and footer in exported static PDF (#837)
- Parameters.jl dynamically created macros confuse Pluto (#838)
- Feature request: Open URL from terminal (#840)
- Notebook gets stuck in forever loading state after restarting my PC while running it (#849)
- Syntax highlighting of @. (#854)
- File not found when file newly created while session is running (#855)
- Weird output from a mix of MathJax, Markdown and PlutoUI (#856)
- Misaligned plots when plotting with UnicodePlots.jl using BrailleCanvas (#870)

**Merged pull requests:**
- Pluto ux process file drop (#707) (@pankgeorg)
- Dralbase state managment (#710) (@dralletje)
- PLJ-785 CodeMirror Eject to TextArea - Reload from TextArea in Offline HTML export (#805) (@pankgeorg)
-  Dralbase state managment: Fix front-end tests (#809) (@pankgeorg)
- Update README.md (#814) (@fonsp)
- Regard `:=` in macros as einsum notation (take 2) (#816) (@mcabbott)
- 🧸 Open your own files as samples (#828) (@fonsp)
- Handle filters in generators, closes #824 (#839) (@Pangoraw)
- Update `== nothing` to `=== nothing` in Parse.jl (#841) (@heetbeet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants