Skip to content

debug file permission error on windows #506

@dsisnero

Description

@dsisnero

Your environment

F:\programming\source\repos\ruby\try_ferrum>ruby -v

  • ruby: ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x64-mingw-ucrt]
  • rdbg: 1.4.0

Describe the bug
trying to run debug from vscode F5 to Debug current file and gives me an error

F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/config.rb:384:in `check_dir_authority': C:/Users/DOMINI~1/AppData/Local/Temp/ruby-debug-sock-0's mode is 40755 (should be 040700) (RuntimeError)

same with rdbg --open

rdbg --open amazon1.rb

F:\programming\source\repos\ruby\try_ferrum>rdbg --open amazon1.rb
F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/config.rb:384:in check_dir_authority': C:/Users/DOMINI~1/AppData/Local/Temp/ruby-debug-sock-0's mode is 40755 (should be 040700) (RuntimeError) from F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/config.rb:401:in unix_domain_socket_tmpdir'
from F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/config.rb:421:in unix_domain_socket_dir' from F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/server.rb:406:in initialize'
from F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/session.rb:1935:in new' from F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/session.rb:1935:in open_unix'
from F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/session.rb:1911:in open' from F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/debug-1.4.0/lib/debug/open.rb:13:in <top (required)>'
from internal:F:/windows/tools/ruby/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb:85:in require' from <internal:F:/windows/tools/ruby/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in require'

To Reproduce

Expected behavior
expected to not have directory permission errors on windows
Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions