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

less: unrecognized option: X #368

Open
iqqmuT opened this issue Sep 6, 2021 · 1 comment
Open

less: unrecognized option: X #368

iqqmuT opened this issue Sep 6, 2021 · 1 comment

Comments

@iqqmuT
Copy link

iqqmuT commented Sep 6, 2021

I'm running pry-byebug in Alpine Linux 3.14.2 Docker container and I get a following error when trying to debug a variable:

[1] pry(#<SpreadsheetParser>)> spreadsheet
less: unrecognized option: X
BusyBox v1.33.1 () multi-call binary.

Usage: less [-EFIMmNSRh~] [FILE]...

View FILE (or stdin) one screenful at a time

	-E	Quit once the end of a file is reached
	-F	Quit if entire file fits on first screen
	-I	Ignore case in all searches
	-M,-m	Display status line with line numbers
		and percentage through the file
	-N	Prefix line number to each line
	-S	Truncate long lines
	-R	Remove color escape codes in input
	-~	Suppress ~s displayed past EOF

Apparently pry-byebug does not support less from BusyBox.

@jgarber623
Copy link

I ran into this issue also and was able to work around it by adding the following instruction to my Dockerfile:

RUN apk add --update --no-cache less

(You could also add less to an existing list of packages installed via the RUN instruction, of course.)

The solution above was found on this page: https://negabaro.github.io/archive/docker-rails-less

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

2 participants