You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.
#snippet of actual filedefindex;enddefcreatejardauthorizeLegacy::Jobjob=Legacy::Job.create!(legacy_user: current_user,legacy_collection: @collection,status: Legacy::Job.statuses[:pending],locations_file: params.fetch(:locations))import_job(job)rescueActionController::ParameterMissingjob&.destroy
Run jard (in my case docker-compose exec rails bundle exec rspec
Jard shows the file as with some output from a function at the bottom of the file:
Expected behavior
Show the file correctly
Screenshots
works correctly on more narrow layout:
Environment (please complete the following information):
OS: [e.g. Ubuntu 20, MacOS Big Suck, FreeBSD]
uname -a
Linux inni 5.8.10-arch1-1 #1 SMP PREEMPT Thu, 17 Sep 2020 18:01:06 +0000 x86_64 GNU/Linux
Hi @hirowatari, thanks for reporting this issue. I tested on my local environment, and confirmed that this happens. The root cause is from variable screen, instead. I forgot to escape special characters (\n in this case) from SQL before printing it out to the screen. So, it overlaps and breaks the source screen. I implemented a fix at #56, and already merged into master. You can try the fix at master branch first. I'll push a relase soon.
Describe the bug
Jard source output does not match what is the file.
To Reproduce
Steps to reproduce the behavior:
[jobs_controller.rb.txt] (https://github.com/nguyenquangminh0711/ruby_jard/files/5257455/jobs_controller.rb.txt)
There's a comment in that file that explains things a bit more on line 68.
docker-compose exec rails bundle exec rspec
Expected behavior
Show the file correctly
Screenshots
![Screenshot from 2020-09-21 11-22-13](https://user-images.githubusercontent.com/8855073/93805537-bd087580-fbfc-11ea-87a1-dd86cc99ece7.png)
works correctly on more narrow layout:
Environment (please complete the following information):
terminator 1.92
tput colors
in your terminal8
echo $TERM
in your terminalscreen
stty
speed 38400 baud; line = 0;
-brkint -imaxbel
yes but issue exists without it as well.
Thanks a lot for Jard. It's beautiful.
The text was updated successfully, but these errors were encountered: