workshopper / workshopper/javascripting

Core/Javascripting/1.Introduction

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

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

help wanted translation
Ngôn ngữ chính
JavaScript
Star
2.9k
Fork
1k
Merge trung bình
14 giờ 47 phút
Pull request đã merge (30 ngày)
1

Mô tả

On Windows 10, in PowerShell, you cannot create an empty file using the type NUL > file.extension command.
The only way for the javascripting verifiy command to ever be successful is to create an empty file using the type NUL > file.extension command from CommandPrompt only. This isn't mentioned anywhere in the guide (it just says on Windows).
Even if you create an empty file with $null > file.extension, the validation fails and you can't even run it with node file.extension. The same applies when you create the file in a text editor or in an IDE.

  • node version: v9.3.0
  • npm version: 5.6.0
  • os: Microsoft Windows [Version 10.0.16299.125]
Error output when trying to verify a file that was not created in CommandPrompt using the type NUL > file.extension command.
SyntaxError: Invalid or unexpected token
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:152:10)
    at Module._compile (module.js:624:28)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:618:3

    at ChildProcess.exithandler (child_process.js:272:12)
    at ChildProcess.emit (events.js:159:13)
    at maybeClose (internal/child_process.js:943:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
  killed: false,
  code: 1,
  signal: null,
My Code
 console.log('hello');

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện quy trình xác minh của Core/Javascripting/1.Introduction trên Windows 10 trong PowerShell, sử dụng một tệp rỗng được tạo bằng $null > file.extension hoặc bằng trình soạn thảo, sau đó so sánh với trường hợp Command Prompt. Truy vết điểm vào của javascripting verify để xác định lý do tệp rỗng bị từ chối. Công việc được xem là hoàn tất khi các tệp rỗng hợp lệ hoạt động với các phương thức tạo đã được báo cáo, hoặc hướng dẫn ghi rõ quy trình Windows được hỗ trợ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, node.js, powershell
Lĩnh vực
cli, operating-systems, tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

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.