One true development environment fails when directory has spaces in it

Đang mở
#1,734 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
bash, javascript, node.js, python

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.

Mô tả

development tooling

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

  1. Store the popcode repo in a folder that has spaces in it.
  2. 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
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

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của popcodeorg/popcode

Tất cả issue của popcodeorg/popcode

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.