Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Error: Failed to activate the atom-ide-javascript package

オープン
#45 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
electron, javascript, node.js

調査の方向性

Atom 1.61.0-beta0 で JavaScript ファイルを開いて再現し、その後、invariant(remote != null) が報告されるソース行 26 前後の nuclide-commons-ui/Dropdown.js を読みます。表示された activation stack を通じて electron-remote の依存関係を追跡し、atom-ide-javascript が TypeError なしで正常に activate することを確認します。

索引モデルが issue の本文から書いたものです。

説明

Description

After upgrading to Atom 1.61-beta (which includes an upgrade from Electron 9->11), this package has stopped working.

Steps to Reproduce
  1. Open Atom Beta w/ a JS file.

Reproduces how often:

Every time, so far.

Versions

Atom: 1.61.0-beta0 x64
Electron: 11.4.12
OS: macOS 12.1
Thrown From: atom-ide-javascript package 1.5.0

❯ atom-beta --version
Atom    : 1.61.0-beta0
Electron: 11.4.12
Chrome  : 87.0.4280.141
Node    : 12.18.3

❯ apm-beta --version
apm  2.6.2
npm  6.14.13
node 12.14.1 x64
atom 1.61.0-beta0
python 2.7.18
git 2.32.0

Additional Information

Although this package is failing to activate, it appears that the underlying issue might actually be elsewhere? The stacktrace does seem to actually include any code w/i this package. Rather, it's going through several of the dependencies from w/i the atom-ide-base project, ending in atom-ide-javascript/node_modules/@atom-ide-community/nuclide-commons-ui/Dropdown.js, (transpiled) line 45, which is really line 26, ie:

// this is just the parts that I think are relevant
import invariant from 'assert';
import remote from '@atom-ide-community/nuclide-commons/electron-remote';

invariant(remote != null);

Where invariant(remote != null); is what's actually triggering the issue.

I've never worked with any of these packages before, but if someone can give me some hints, I could take a whack at a fix. Any ideas? Thank you!

Stack Trace

Failed to activate the atom-ide-javascript package

At call.getFileName is not a function

TypeError: call.getFileName is not a function
    at getErrMessage (assert.js:278:25)
    at innerOk (assert.js:372:17)
    at ok (assert.js:392:3)
    at /packages/atom-ide-javascript/node_modules/@atom-ide-community/nuclide-commons-ui/Dropdown.js:45:21)
    at /packages/atom-ide-javascript/node_modules/@atom-ide-community/nuclide-commons-ui/Dropdown.js:305:3)
    at Module._compile (/app.asar/src/native-compile-cache.js:120:30)
    at /app.asar/src/compile-cache.js:252:23)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (/app.asar/src/native-compile-cache.js:67:27)
    at /packages/atom-ide-javascript/node_modules/@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachUiComponent.js:16:17)
    at /packages/atom-ide-javascript/node_modules/@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachUiComponent.js:519:3)
    at Module._compile (/app.asar/src/native-compile-cache.js:120:30)
    at /app.asar/src/compile-cache.js:252:23)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (/app.asar/src/native-compile-cache.js:67:27)
    at /packages/atom-ide-javascript/node_modules/@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachProvider.js:14:62)
    at /packages/atom-ide-javascript/node_modules/@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachProvider.js:109:3)
    at Module._compile (/app.asar/src/native-compile-cache.js:120:30)
    at /app.asar/src/compile-cache.js:252:23)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (/app.asar/src/native-compile-cache.js:67:27)
Commands
Non-Core Packages
advanced-open-file 0.16.8 
atom-beautify 0.33.4 
atom-handlebars 1.3.0 
atom-ide-base 3.4.0 
atom-ide-code-format 1.0.2 
atom-ide-datatip 0.25.0 
atom-ide-definitions 0.4.2 
atom-ide-hyperclick 1.0.11 
atom-ide-javascript 1.5.0 
atom-ide-markdown-service 2.1.0 
atom-ide-outline 3.2.0 
atom-ide-signature-help 0.16.0 
atom-ide-vue 1.4.6 
atom-linter-phpstan 2.2.0 
atom-phpunit 1.3.0 
atom-tailwindcss 0.9.0 
atom-typescript 14.4.0 
atom-vscode 0.1.0 
zap-to-char 0.1.1 
atomic-vale 1.9.0 
autocomplete-paths 2.17.0 
blade-snippets 0.2.0 
block-travel 1.0.7 
busy-signal 2.0.1 
calc 0.4.0 
center-line 1.4.0 
change-case 0.6.5 
clipboard-plus 0.5.1 
docblockr 0.14.2 
elastic-tabstops 1.3.1 
emmet 2.4.3 
es6-javascript 1.0.0 
file-icons 2.1.47 
firefox-syntax 4.2.0 
git-blame 1.8.0 
git-tab-status 1.9.2 
go-plus 6.1.0 
highlight-selected 0.17.0 
ide-css 0.4.0 
ide-go 0.12.3 
ide-php 0.7.18 
ide-rust 1.1.1 
ide-typescript 0.9.5 
intentions 2.1.1 
javascript-drag-import 0.1.13 
js-hyperclick 1.13.3 
jumpy 5.0.2 
keyboard-scroll 0.7.0 
language-awk 0.1.12 
language-blade 0.46.0 
language-docker 1.1.8 
language-dotenv 1.2.0 
language-htaccess 0.2.0 
language-ledger 0.4.5 
language-lua 0.9.11 
language-markdown 0.37.0 
language-vue 0.26.0 
line-diff-details-plus 1.9.1 
linter 3.4.0 
linter-eslint 9.0.0 
linter-php 1.6.1 
linter-phpcs 1.8.1 
linter-phpmd 2.0.2 
linter-shellcheck 1.6.0 
linter-tlint 0.0.1 
linter-ui-default 3.4.1 
linter-yaml 1.1.3 
magic-reflow 0.3.0 
minimap 4.40.0 
minimap-find-and-replace 5.0.9 
minimap-git-diff 4.3.6 
minimap-highlight-selected 4.6.6 
minimap-selection 4.5.5 
multi-paste 0.3.1 
neon 0.2.0 
pain-split 1.4.0 
php-cs-fixer 4.3.0 
php-ide-serenata 5.4.0 
php-twig 4.0.0 
prettier-atom 0.60.1 
project-manager 3.3.8 
remember-file-positions 0.2.3 
remember-folds 0.3.0 
semanticolor 3.7.0 
Sublime-Style-Column-Selection 1.7.5 
terminal-commands 1.5.0 
x-terminal 13.0.25 
主要言語
JavaScript
スター
17
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

atom-community/atom-ide-javascript のほかの issue

atom-community/atom-ide-javascript の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。