Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Run command in Terminal errors with "Cannot read properties of undefined (reading 'replace')"

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
r, typescript, vscode
Lĩnh vực
devtools

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi trên macOS bằng các lệnh R được liệt kê, thiết lập r.rpath.mac và các phiên bản VS Code cùng extension đã được báo cáo. Truy tìm các điểm vào lệnh cho "R: Run Command in Terminal" và "R: Run Command With Editor Path in Terminal"; được xem là hoàn tất khi cả hai lệnh chạy mã thành công trong terminal R mà không xuất hiện hộp thoại lỗi.

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

Mô tả

bug

Describe the bug
Unable to run any code / file in R terminal.
Always getting an error dialog:

Command 'R: Run Command in Terminal' resulted in an error
Cannot read properties of undefined (reading 'split')

or when executing "R: Run command with editor path in terminal"

** Command 'R: Run Command With Editor Path in Terminal' resulted in an error**
Cannot read properties of undefined (reading 'replace')

To Reproduce
Steps to reproduce the behavior:

  1. Install R via homebrew brew install r
  2. Install R extension from REditorSupport
  3. Open R file
  4. Execute "R: Create R terminal"
  5. Execute "R: Run command in terminal"

Can you fix this issue by yourself? (We appreciate the help)

No

setting.json

// R path for Mac OS X
"r.rpath.mac": "/opt/homebrew/bin/R",

Expected behavior
Program is run in R terminal.

Screenshots
If applicable, add screenshots to help explain your problem.
You can show the keyboard contents by pressing F1 and Developer: toggle screencast mode

Environment (please complete the following information):

  • OS: macOS 14.4
  • VSCode Version: 1.89.1
  • R Version: 4.4.0
  • vscode-R version: 2.8.4

Additional context

Ngôn ngữ chính
TypeScript
Star
1.2k
Fork
139
Merge trung bình
19 giờ 50 phút
Pull request đã merge (30 ngày)
27

Chuẩn bị môi trường

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 REditorSupport/vscode-R

Tất cả issue của REditorSupport/vscode-R

Issue tương tự

Thêm issue về TypeScript

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.