Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Atom hangs on opening multiple same name files with similar paths #10043

Closed

Description

@alutman

When trying to open multiple files with the same name but under slightly different paths, atom crashes.

Reproduction Steps:

1. Create the following folder and file structure outside of Atom. Files do not need to have any content.

root/
      folder1/ 
             sub1/
                  file.txt
             sub2/
                  file.txt
      folder2/ 
             sub1/
                  file.txt
             sub2/
                  file.txt

2. Open the folder root in Atom using File -> Open Folder
3. Open any three files by clicking on them in the Tree View

Expected behavior:
Atom opens up all three files in their own tabs

Observed behavior:
Atom editor stops responding on trying to open the third file, a few seconds later a dialog pops up asking to wait or close. Wait never resolves so closing is the only cause of action. The developer console shows no exception.

Atom version: 1.3.1
OS and version: Windows 7

Installed packages:
None

Additional information:
This bug occurs on a fresh install of atom with zero config changes or package installs.
I believe this has something to do with how the tabs are named with files that have the same name.
When opening two files you get one of the following tab names

  • folder1\...\file.txt | folder2\...\file.txt
  • sub1\file.txt | sub2\file.txt

However when you open a third file, Atom doesn't know how to name the 3rd tab because if it tries to follow one of the formats above, it will have two files that have identical tab names. e.g.

folder1\...\file.txt (Meaning folder1\sub1\file.txt) | folder2\...\file.txt (Meaning folder2\sub1\file.txt) | folder1\...\file.txt (Meaning folder1\sub2\file.txt)

  • Problem can be reproduced in safe mode: Yes
  • Problem started happening recently, didn't happen in an older version of Atom: Yes
    • Can't reproduce this problem in 1.2.3 Windows 7 or 1.2.0 Linux Debian. It's worth noting that 1.2 formats the tab names differently (file.txt - folder1\sub1)
  • Problem can be reliably reproduced, doesn't happen randomly: Yes
  • Problem happens with all files and projects, not only some files or projects: Yes

Activity

  1. korgon commented on Dec 14, 2015

    @korgon

    I too am seeing this issue occur when I open multiple files (index.js) in this case.

    Atom v1.3.1
    Gentoo Linux

  2. lee-dohm commented on Dec 14, 2015

    @lee-dohm
    Contributor

    I can't reproduce this using Atom v1.5.0-dev-f6da4a9 or Atom v1.4.0-beta0 on Mac OS X 10.11.2. The tab labeling scheme on both versions is the one described as belonging to v1.2.

    I can reproduce this on Atom v1.3.1 on Mac OS X 10.11.2 though.

  3. alutman commented on Dec 14, 2015

    @alutman
    Author

    I also cannot reproduce using Windows 7 1.4.0-beta0

    If the bug has been fixed in the upcoming beta, should we close the issue?

  4. lee-dohm commented on Dec 14, 2015

    @lee-dohm
    Contributor

    Yes, I suspect that since the file naming scheme changed and then changed back that someone else ran across the bug and reverted whatever the change was. I'll see if I can track down the change and if maybe we can get a patch release out to Stable with it.

    Thanks for reporting the issue!

  5. mtree commented on Dec 16, 2015

    @mtree

    Confirming

    « mtree : ~ »» atom --version
    1.3.1
    
  6. Falieson commented on Dec 17, 2015

    @Falieson

    Confirming

    $ sw_vers
    ProductName: Mac OS X
    ProductVersion: 10.11.2
    BuildVersion: 15C50
    $ atom --version
    1.3.1

  7. winstliu commented on Dec 17, 2015

    @winstliu
    Contributor

    This has already been fixed in the 1.4.0 betas.

  8. dave-handy commented on Jan 4, 2016

    @dave-handy

    Phew. Glad I found this ticket. The suggested ansible project layout has like every file named as 'main.yml' so atom has been awful.

  9. lock commented on Jan 18, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  10. locked as resolved and limited conversation to collaborators on Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions