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.

Dragging and dropping a file from the file system occasionally opens it as Chromium instead of Atom #4300

Closed

Description

@alexandernst

Atom's drag&drop feature seem quite buggy. Sometimes it just won't open a dragged file, but even worse bug is when decides to open the file as if it was a real browser, efectively replacing the entire editor with the content of the file.

Video: http://youtu.be/EPRRFs9SQbs

Activity

  1. pistou commented on Nov 26, 2014

    @pistou

    I came across another bug with the drag&drop feature : sometimes, when I drop a file in Atom, it just closes Atom and I have to relaunch it.

    I can't tell yet if there is a special case that causes that.
    I'm on Windows 8.1 - Atom 0.147.0

  2. AshKyd commented on Dec 26, 2014

    @AshKyd

    I can reproduce the drag and drop "open the file as if it was a real browser" issue on 0.161.0 under Fedora Linux. Dragging a file onto the editor works perhaps half the time for me, and this bug has hit me three times this morning. Attached a screenshot to clarify:

    screenshot from 2014-12-26 11 14 32

  3. alexandernst commented on Jun 17, 2015

    @alexandernst
    Author

    This is still easiily reproducible with Atom .209

  4. changed the title [-]Buggy drag&drop[/-] [+]Dragging and dropping a file from the file system occasionally opens as Chromium instead of Atom[/+] on Jun 17, 2015
  5. changed the title [-]Dragging and dropping a file from the file system occasionally opens as Chromium instead of Atom[/-] [+]Dragging and dropping a file from the file system occasionally opens it as Chromium instead of Atom[/+] on Jun 17, 2015
  6. added
    windows
    linux
    on Jun 17, 2015
  7. mnquintana commented on Jun 17, 2015

    @mnquintana
    Contributor

    @alexandernst Could you post a Gist of a file that consistently reproduces this for you?

  8. alexandernst commented on Jun 17, 2015

    @alexandernst
    Author

    @mnquintana every file will do it. Just drag&drop fast a random text file to Atom and you'll get the bug.

  9. mnquintana commented on Jun 17, 2015

    @mnquintana
    Contributor

    What OS are you on?

  10. alexandernst commented on Jun 17, 2015

    @alexandernst
    Author

    Debian Lnux with KDE 4.11
    Do you want me to make a new video?

  11. mnquintana commented on Jun 17, 2015

    @mnquintana
    Contributor

    Hmmm, this looks like an instance of electron/electron#908, which should have been fixed in atom-shell 0.20.1 (back when Electron was atom-shell) and Atom's on atom-shell 0.22.3 now.

    /cc @zcbenz @paulcbetts @kevinsawicki

  12. ObviouslyGreen commented on Jul 21, 2015

    @ObviouslyGreen

    I can reproduce this in Windows 8 using Atom Version 1.02
    image

    Very common when I want to open up another file really quick just to check something, have to close out of atom and reopen again. Sometimes it just closes Atom completely, end up having to end Atom in the task manager in order to restart it.

    It seems like it only happens to me when I drag and drop quickly. For example, problem doesn't occur when I drag and drop over a two second time frame, but does over a 0.2 second time frame. Problem doesn't happen unless I have a project folder open in my experience.

  13. alexandernst commented on Sep 10, 2015

    @alexandernst
    Author

    @mnquintana Were you able to repro thsi bug?

  14. 9 remaining items

  15. self-assigned this
    on Oct 9, 2015
  16. added a commit that references this issue on Oct 9, 2015
    af36a23
  17. thomasjo commented on Oct 9, 2015

    @thomasjo
    Contributor

    Would be brilliant if someone here could test whether #9101 resolves this bug or not 🙇

  18. alexandernst commented on Oct 10, 2015

    @alexandernst
    Author

    Can the patch be applied on top of latest stable or is master required?

  19. thomasjo commented on Oct 10, 2015

    @thomasjo
    Contributor

    Can the patch be applied on top of latest stable or is master required?

    Should be trivial to rebase this on top of stable.

  20. alexandernst commented on Oct 12, 2015

    @alexandernst
    Author

    I tried building stable, but I get an error while compiling (https://paste.kde.org/ptutyoj3u), then I tried latest beta and the build went fine, but I get errors as soon as I open Atom, so I wasn't able to test the patch.

  21. thomasjo commented on Oct 12, 2015

    @thomasjo
    Contributor

    @alexandernst Try using a newer version of npm. Node v4.1.1 ships with npm v2.14.4 IIRC, so you should at least be using that (or newer).

    Also be sure to do a script/clean after you've updated your npm, and then you should be able to successfully script/build.

  22. alexandernst commented on Oct 12, 2015

    @alexandernst
    Author

    @thomasjo Can't get that newer on my Debian. Let's see if somebody else can test the patch, or I'll have to setup a VBox.

  23. mnquintana commented on Oct 12, 2015

    @mnquintana
    Contributor

    @alexandernst Have you tried out nvm at all? That should let you easily install and manage multiple Node versions without having to rely on the Debian package being updated.

  24. alexandernst commented on Oct 12, 2015

    @alexandernst
    Author

    @mnquintana I'd rather setup a VBox, really. Installing multiple things feels absolutely hacky and I can't let such a thing happen on my work machine.

  25. added a commit that references this issue on Oct 12, 2015
    21d11da
  26. lock commented on Jan 20, 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!

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

Metadata

Metadata

Assignees

Labels

atombeginnerbuglinuxwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions