├── .github
└── no-response.yml
├── .gitignore
├── .travis.yml
├── ISSUE_TEMPLATE.md
├── LICENSE.md
├── PULL_REQUEST_TEMPLATE.md
├── README.md
├── appveyor.yml
├── lib
├── incompatible-packages-component.js
├── main.js
├── status-icon-component.js
└── view-uri.js
├── package.json
├── spec
├── fixtures
│ └── incompatible-package
│ │ ├── bad.js
│ │ └── package.json
├── incompatible-packages-component-spec.js
└── incompatible-packages-spec.js
└── styles
└── incompatible-packages.less
/.github/no-response.yml:
--------------------------------------------------------------------------------
1 | # Configuration for probot-no-response - https://github.com/probot/no-response
2 |
3 | # Number of days of inactivity before an issue is closed for lack of response
4 | daysUntilClose: 180
5 |
6 | # Label requiring a response
7 | responseRequiredLabel: more-information-needed
8 |
9 | # Comment to post when closing an issue for lack of response. Set to `false` to disable.
10 | closeComment: >
11 | This issue has been automatically closed because there has been no response
12 | to our request for more information from the original author. With only the
13 | information that is currently in the issue, we don't have enough information
14 | to take action. Please reach out if you have or find the answers we need so
15 | that we can investigate further.
16 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | npm-debug.log
3 | node_modules
4 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: objective-c
2 |
3 | notifications:
4 | email:
5 | on_success: never
6 | on_failure: change
7 |
8 | script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh'
9 |
10 | branches:
11 | only:
12 | - master
13 |
--------------------------------------------------------------------------------
/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 |
8 |
9 | ### Prerequisites
10 |
11 | * [ ] Put an X between the brackets on this line if you have done all of the following:
12 | * Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
13 | * Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
14 | * Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
15 | * Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
16 | * Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
17 |
18 | ### Description
19 |
20 | [Description of the issue]
21 |
22 | ### Steps to Reproduce
23 |
24 | 1. [First Step]
25 | 2. [Second Step]
26 | 3. [and so on...]
27 |
28 | **Expected behavior:** [What you expect to happen]
29 |
30 | **Actual behavior:** [What actually happens]
31 |
32 | **Reproduces how often:** [What percentage of the time does it reproduce?]
33 |
34 | ### Versions
35 |
36 | You can get this information from copy and pasting the output of `atom --version` and `apm --version` from the command line. Also, please include the OS and what version of the OS you're running.
37 |
38 | ### Additional Information
39 |
40 | Any additional information, configuration or data that might be necessary to reproduce the issue.
41 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014 GitHub Inc.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ### Requirements
2 |
3 | * Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
4 | * All new code requires tests to ensure against regressions
5 |
6 | ### Description of the Change
7 |
8 |
13 |
14 | ### Alternate Designs
15 |
16 |
17 |
18 | ### Benefits
19 |
20 |
21 |
22 | ### Possible Drawbacks
23 |
24 |
25 |
26 | ### Applicable Issues
27 |
28 |
29 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ### This package is now a part of the [core Atom repository](https://github.com/atom/atom/tree/master/packages/incompatible-packages), please direct all issues and pull requests there in the future!
2 |
3 | ---
4 |
5 | # Incompatible Packages package
6 | [](https://travis-ci.org/atom/incompatible-packages) [](https://ci.appveyor.com/project/Atom/incompatible-packages/branch/master) [](https://david-dm.org/atom/incompatible-packages)
7 |
8 | Displays a list of installed Atom packages that have native module
9 | dependencies that are not compatible with the current version of Atom.
10 |
11 | 
12 |
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: "{build}"
2 |
3 | platform: x64
4 |
5 | branches:
6 | only:
7 | - master
8 |
9 | clone_depth: 10
10 |
11 | skip_tags: true
12 |
13 | environment:
14 | APM_TEST_PACKAGES:
15 |
16 | matrix:
17 | - ATOM_CHANNEL: stable
18 | - ATOM_CHANNEL: beta
19 |
20 | install:
21 | - ps: Install-Product node 4
22 |
23 | build_script:
24 | - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1'))
25 |
26 | test: off
27 | deploy: off
28 |
--------------------------------------------------------------------------------
/lib/incompatible-packages-component.js:
--------------------------------------------------------------------------------
1 | /** @babel */
2 | /** @jsx etch.dom */
3 |
4 | import {BufferedProcess} from 'atom'
5 | import etch from 'etch'
6 |
7 | import VIEW_URI from './view-uri'
8 | const REBUILDING = 'rebuilding'
9 | const REBUILD_FAILED = 'rebuild-failed'
10 | const REBUILD_SUCCEEDED = 'rebuild-succeeded'
11 |
12 | export default class IncompatiblePackagesComponent {
13 | constructor (packageManager) {
14 | this.rebuildStatuses = new Map
15 | this.rebuildFailureOutputs = new Map
16 | this.rebuildInProgress = false
17 | this.rebuiltPackageCount = 0
18 | this.packageManager = packageManager
19 | this.loaded = false
20 | etch.initialize(this)
21 |
22 | if (this.packageManager.getActivePackages().length > 0) {
23 | this.populateIncompatiblePackages()
24 | } else {
25 | global.setImmediate(this.populateIncompatiblePackages.bind(this))
26 | }
27 |
28 | this.element.addEventListener('click', (event) => {
29 | if (event.target === this.refs.rebuildButton) {
30 | this.rebuildIncompatiblePackages()
31 | } else if (event.target === this.refs.reloadButton) {
32 | atom.reload()
33 | } else if (event.target.classList.contains('view-settings')) {
34 | atom.workspace.open(`atom://config/packages/${event.target.package.name}`)
35 | }
36 | })
37 | }
38 |
39 | update () {}
40 |
41 | render () {
42 | if (!this.loaded) {
43 | return
64 | {this.rebuiltPackageCount} of {this.incompatiblePackages.length} packages
65 | were rebuilt successfully. Reload Atom to activate them.
66 |
67 |
70 |
71 | )
72 | } else {
73 | return (
74 |
75 | Some installed packages could not be loaded because they contain native
76 | modules that were compiled for an earlier version of Atom.
77 |
78 |
81 |
82 | )
83 | }
84 | } else {
85 | return (
86 |
87 | None of your packages contain incompatible native modules.
88 |