Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rubocop exit 1 error #6165

Open
abepark01 opened this issue Jun 18, 2024 · 0 comments
Open

rubocop exit 1 error #6165

abepark01 opened this issue Jun 18, 2024 · 0 comments

Comments

@abepark01
Copy link

I am running
Mac OS Sonoma 14.5, rbenv 1.2.0, ruby 3.3.3, gem 3.5.13, bundler 2.5.13.

I get the following error when I run the rubocop command from LazyVim and also the shell:

/Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:65:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:65:in `block in cache_root_dir_from_config'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/cache_config.rb:9:in `root_dir'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:62:in `cache_root_dir_from_config'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:54:in `cache_path'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:45:in `dir'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:114:in `stderr_path'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/socket_reader.rb:36:in `ensure in read!'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/socket_reader.rb:37:in `read!'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:86:in `read_socket'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:61:in `block in process_input'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:140:in `write_pid_file'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:60:in `process_input'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:49:in `block in detach_server'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:46:in `fork'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:46:in `detach_server'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:38:in `start'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/client_command/start.rb:42:in `block in run'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:127:in `acquire_lock'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/client_command/start.rb:29:in `run'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cli.rb:93:in `run_command'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cli.rb:83:in `process_arguments'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cli.rb:49:in `run'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/exe/rubocop:8:in `<top (required)>'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/bin/rubocop:25:in `load'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/bin/rubocop:25:in `<main>'
/Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:65:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:65:in `block in cache_root_dir_from_config'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/cache_config.rb:9:in `root_dir'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:62:in `cache_root_dir_from_config'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:54:in `cache_path'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:45:in `dir'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:94:in `token_path'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/server_command/base.rb:45:in `validate_token!'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/server_command/base.rb:22:in `run'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/socket_reader.rb:33:in `block in read!'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/helper.rb:26:in `redirect'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/socket_reader.rb:28:in `read!'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:86:in `read_socket'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:61:in `block in process_input'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:140:in `write_pid_file'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:60:in `process_input'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:49:in `block in detach_server'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:46:in `fork'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:46:in `detach_server'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/core.rb:38:in `start'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/client_command/start.rb:42:in `block in run'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cache.rb:127:in `acquire_lock'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/client_command/start.rb:29:in `run'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cli.rb:93:in `run_command'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cli.rb:83:in `process_arguments'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/lib/rubocop/server/cli.rb:49:in `run'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/gems/rubocop-1.64.1/exe/rubocop:8:in `<top (required)>'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/bin/rubocop:25:in `load'
	from /Users/apark/.local/share/nvim/mason/packages/rubocop/bin/rubocop:25:in `<main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant