popcodeorg / popcodeorg/popcode
One true development environment fails when directory has spaces in it
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 191
- Fork
- 143
- Merge trung bình
- 4 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 5
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với tools/setup.py và tái hiện lỗi bằng cách đặt kho lưu trữ popcode trong một đường dẫn có chứa khoảng trắng, sau đó chạy lệnh thiết lập. Kiểm tra cách script gọi bash và cấu hình phiên bản Node dựng sẵn; hoàn tất khi setup hoàn thành từ đường dẫn đó và chọn Node 10.16.2 như mong đợi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- bash, javascript, node.js, python
- Lĩnh vực
- build-system, developer-experience, tooling
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100