check_dir_authority error: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/config.rb:415:in `check_dir_authority'
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start with the reported Windows failure in debug-1.6.2 at lib/debug/config.rb:415 and compare it with the rdbg launch configuration in launch.json. Reproduce the VS Code run-and-debug invocation and inspect the reported temporary directory mode. Done means the supplied rdbg configuration starts the Ruby program without the check_dir_authority error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm running the launch.json in vs 1.71.2 from within vs in the run and debug area. rspec - 3.11 ffi - 1.15 debug 1.6 rdbg 1.6.2
ruby -v:rdbg -v:
Describe the bug
Error output:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/config.rb:415:in check_dir_authority': C:/Users/tculbert/AppData/Local/Temp/ruby-debug-sock-0's mode is 40755 (should be 040700) (RuntimeError)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/config.rb:432:in unix_domain_socket_tmpdir'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/config.rb:452:in unix_domain_socket_dir'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/config.rb:466:in create_unix_domain_socket_name'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/client.rb:20:in util'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/config.rb:368:in block (2 levels) in parse_argv'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1576:in `block in parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `catch'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1553:in `order!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1659:in `permute!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1684:in `parse!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/config.rb:382:in `parse_argv'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.6.2/exe/rdbg:4:in `<top (required)>'
from C:/Ruby31-x64/bin/rdbg:32:in `load'
from C:/Ruby31-x64/bin/rdbg:32:in `<main>'
Error: exit code is 1
Make sure to install rdbg command (gem install debug).
If you are using bundler, write gem 'debug' in your Gemfile.
[Start session]
{"_debugServiceProxy":{},"_id":"549c291c-e660-4a33-b942-da6e53d04476","_type":"rdbg","_name":"Debug current file with rdbg","_workspaceFolder":{"uri":{"$mid":1,"fsPath":"c:\Users\tculbert\Documents\Selenium Class\Ex_Files_Learning_Selenium\Exercise Files","_sep":1,"external":"file:///c%3A/Users/tculbert/Documents/Selenium%20Class/Ex_Files_Learning_Selenium/Exercise%20Files","path":"/C:/Users/tculbert/Documents/Selenium Class/Ex_Files_Learning_Selenium/Exercise Files","scheme":"file"},"name":"Exercise Files","index":0},"_configuration":{"type":"rdbg","name":"Debug current file with rdbg","request":"launch","command":"rspec","script":"blog-test.rb","args":[],"askParameters":true,"__configurationTarget":6}}
my launch file:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "RSpec - all",
"type": "Ruby",
"request": "launch",
"program": "${workspaceRoot}/bin/rspec",
"args": [
"-I",
"${workspaceRoot}"
]
},
{
"type": "rdbg",
"name": "Debug current file with rdbg",
"request": "launch",
"command": "rspec",
"script": "blog-test.rb",
"args": [],
"askParameters": true
},
{
"type": "rdbg",
"name": "Attach with rdbg",
"request": "attach",
"debugPort": "12345"
}
]
}
To Reproduce
Expected behavior
I'm expecting not to get the error and have my code run
Additional context
I've looked at the other 2 related bugs and have added the debugport, but that hasn't fixed the issue.
- Ngôn ngữ chính
- Ruby
- Star
- 1.3k
- Fork
- 146
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
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.
Issue khác của ruby/debug
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Support exceptionOptions in setExceptionBreakpoints to catch arbitrary exception classes via DAP Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
バグ
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Version bump for OpenVox 9 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
voxpupuli/puppet-epel#186 · 1 bình luận ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) Đang mởBug Frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100