popcodeorg / popcodeorg/popcode
One true development environment fails when directory has spaces in it
オープン
まだ誰も着手していません。
development tooling
- 主要言語
- JavaScript
- スター
- 191
- フォーク
- 143
- 平均マージ
- 4日 11時間
- マージ済み PR(30日)
- 5
説明
Describe the bug
Issue occurs when attempting to run tools/setup.py in a directory that has spaces in it.
Directory is as follows: /Users/jessewang/Documents/Personal Code/popcode
Example Stacktrace:
tools/setup.py
* Install prebuilt node (10.16.2) ..... done.
bash: line 1: /Users/jessewang/Documents/Personal: No such file or directory
bash: line 1: /Users/jessewang/Documents/Personal: No such file or directory
/Users/jessewang/.nvm/versions/node/v8.12.0/bin/yarn -> /Users/jessewang/.nvm/versions/node/v8.12.0/lib/node_modules/yarn/bin/yarn.js
/Users/jessewang/.nvm/versions/node/v8.12.0/bin/yarnpkg -> /Users/jessewang/.nvm/versions/node/v8.12.0/lib/node_modules/yarn/bin/yarn.js
+ yarn@1.17.3
added 1 package in 0.315s
bash: line 1: /Users/jessewang/Documents/Personal: No such file or directory
error popcode@0.9.0: The engine "node" is incompatible with this module. Expected version "~10.16.2". Got "8.12.0"
error Found incompatible module.
To Reproduce
- Store the popcode repo in a folder that has spaces in it.
- Run
tools/setup.py
Expected behavior
tools/setup.py successfully runs and sets the node environment to the correct version.
- OS: iOS
- Version: Current master branch
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
tools/setup.py から始め、スペースを含むパスに popcode リポジトリを置いてから setup コマンドを実行し、失敗を再現します。スクリプトが bash をどのように呼び出し、ビルド済みの Node バージョンをどのように設定するかを確認します。そのパスから setup が完了し、期待どおり Node 10.16.2 が選択されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- bash, javascript, node.js, python
- 領域
- build-system, developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100