Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

[BUG] ~/.jardrc does not seem to work with Rails Console #95

Open
ADTC opened this issue Jun 19, 2021 · 1 comment
Open

[BUG] ~/.jardrc does not seem to work with Rails Console #95

ADTC opened this issue Jun 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ADTC
Copy link

ADTC commented Jun 19, 2021

Describe the bug
The ~/.jardrc configuration file doesn't seem to be read or applied when running Jard in Rails Console.

To Reproduce
Steps to reproduce the behavior:

  1. Install jard in a Rails project.
  2. Run rails console
  3. Execute def j; jard; end; j
  4. Configuration file is not read. All settings are at default.

Expected behavior
Configuration file is read and settings applied.

Environment:

  • OS: Ubuntu 20.04.2 LTS running on WSL (Windows Subsystem for Linux; Windows 10)
  • Terminal Emulator: Xterm from Ubuntu on Windows Terminal
  • tput colors: 256
  • echo $TERM: xterm-256color
  • stty: speed 38400 baud; line = 0; -brkint -imaxbel
  • Do you use tmux/screen or similar tty multiplexer? No. Not that I know of.
@ADTC ADTC added the bug Something isn't working label Jun 19, 2021
@ADTC
Copy link
Author

ADTC commented Jun 23, 2021

Update: Apparently a complete system reboot is necessary for Jard to see the changes in ~/.jardrc. I think that needs to be fixed somehow to read the file again every time Jard launches, or have some way to force a read.

Note: In the case of WSL, the reboot is done using wsl --shutdown at the Windows Command Prompt. You don't need to restart Windows itself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant