atom-build: Freeze when "Select Active Targets"

Description

Atom freezes whenever I press cmd-alt-t or select Select Active Targets in the command palette.

I am on Atom 1.8.0 (OS X 10.11.5), and Build is the only enabled plugin.

I am using the Genesis theme (https://atom.io/themes/genesis-ui).

The Genesis theme works fine with all my other plugins. (if it is a problem in the theme, please let me know and I will file a bug in the appropriate project)

Steps

  1. Launch atom
  2. Press cmd-alt-t

Outcome

  1. Atom is frozen

Recording

:(

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 31 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Currently experiencing this issue on Windows 10 Pro 64bit, Atom 1.13.0, build 0.67.0 - this may be related to #484.

I believe I have no valid build targets, or at least I haven’t added any; I added .atom-build.yml to one of my projects but it’s an empty file and I see an error when it tries to parse it (so still no valid build targets). However, the gear icon in the bottom right of my editor shows a check mark and “Refereshing targets for<path> (0.1s)” - regardless of the presence of the aforementioned file - so it clearly believes there is a target (it’s a Django project and needs no building).

Calling build:select-active-target (via my remapped F5 key) on my keymap.cson file gives the error “Open file is not part of any open project in Atom”. Calling it while in a file that is part of a project will cause the freeze.

Using console logging, I have identified that it calls awaitSelection() from targets-view.js (call originates from target-manager.js:199), but the Promise never resolves (no logging in either the then or catch clauses appeared in the console). After this occurs, 25-30% of my CPU (so a whole core) is in use by an Atom subprocess. No panel is shown, nor any messages about a lack of targets.

Fixed by #520