# Re-opening folder in Atom fails

**URL:** <https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163>\
**Category:** General Usage\
**Created:** [August 1, 2017, 9:48am UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163 "2017-08-01T09:48:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![krcools](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krcools/32/10212_2.png) [@krcools](https://discourse.julialang.org/u/krcools)\
**Post date:** [August 1, 2017, 9:48am UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/1 "2017-08-01T09:48:55Z")

</div>

I am working on Windows and had this issue across Julia 0.5.\* and 0.6.0. It occurs when I try to reopen a package folder in atom. Atom starts up, but no files, treeview, or julia extension menu items appear. The only way I found around it is to open the project folder from the command line with the `--clear-window-state` flag.

I suspect something I do with the window layout brings Atom in an invalid or irrecoverable state.

Did anyone else experience this problem? I tried to find a mention among the issues of `Juno.jl`, `Atom.jl` and `atom-julia-client` but could not immediately find something similar.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 1, 2017, 11:08am UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/2 "2017-08-01T11:08:11Z")

</div>

What do you mean by “reopen”? Does `Ctrl-N` or similar work in the “broken” Atom window?

---

<div class="post-metadata">

**Author:** ![krcools](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krcools/32/10212_2.png) [@krcools](https://discourse.julialang.org/u/krcools)\
**Post date:** [August 1, 2017, 12:58pm UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/3 "2017-08-01T12:58:04Z")

</div>

By reopen I simply mean I had the same directory open in a previous atom session. Never had the issue with a pristine folder. I understand atom caches some per directory info? This also would explain my workaround solves things.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 1, 2017, 1:01pm UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/4 "2017-08-01T13:01:07Z")

</div>

If you still have the old atom session open, then your issue is the same as [Juno on multiple monitors? - #2 by pfitzseb](https://discourse.julialang.org/t/juno-on-multiple-monitors/4698/2). If not then that’s some other bug which I at least haven’t seen yet.

---

<div class="post-metadata">

**Author:** ![krcools](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krcools/32/10212_2.png) [@krcools](https://discourse.julialang.org/u/krcools)\
**Post date:** [August 1, 2017, 1:12pm UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/5 "2017-08-01T13:12:43Z")

</div>

As far as I understand I am not in that scenario. Do you have any tips to generate diagnostic output?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 1, 2017, 1:16pm UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/6 "2017-08-01T13:16:10Z")

</div>

How are you starting Atom? `atom foldername` or from the context menu?

---

<div class="post-metadata">

**Author:** ![krcools](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krcools/32/10212_2.png) [@krcools](https://discourse.julialang.org/u/krcools)\
**Post date:** [August 1, 2017, 4:52pm UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/7 "2017-08-01T16:52:03Z")

</div>

I usually use the recently opened list you get when right clicking an icon pinned to the task bar. But I vaguely remember trying to launch from the command prompt using `atom .` from within the relevant directory with the same result.

I would experiment so I could give you more accurate information but I do not exactly understand what triggers this issue.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 1, 2017, 5:31pm UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/8 "2017-08-01T17:31:56Z")

</div>

Okay, I just tried on Windows and couldn’t reproduce this with `atom .`, close Atom completly, `atom .`.  
Would be interesting to now what happens for you with those steps with and without `--safe`.

---

<div class="post-metadata">

**Author:** ![krcools](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krcools/32/10212_2.png) [@krcools](https://discourse.julialang.org/u/krcools)\
**Post date:** [August 21, 2017, 5:26pm UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/9 "2017-08-21T17:26:01Z")

</div>

Hi again. Sorry for the silence but because I do not understand what triggers the bug I had to wait for it to happen again. Short answer, regardless of whether I include `--safe` the result is the same: a completely empty atom window.

Within that Window, nothing seems to work anymore: creating new files, opening the settings tab, showing the about… window.

Like mentioned before

```julia
atom . --clear-window-state

```

seems to be the only way out.

---

<div class="post-metadata">

**Author:** ![YongHee-Kim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yonghee-kim/32/5965_2.png) [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Post date:** [August 22, 2017, 12:33am UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163/10 "2017-08-22T00:33:33Z")

</div>

I’m also working on windows, and I had experienced wonky Atom behavior time to time when opening a new window. (sometimes empty window appears, but not broken like your case)  
But I got around this problem with [project-manager](https://atom.io/packages/project-manager) packages.  
Whenever I want to load some specific project, I just push `alt-shift-p` and choose a project from there.
