-
Notifications
You must be signed in to change notification settings - Fork 82
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
startup_commands
fails when config value is a single string.
#176
Comments
That is quite the embarrassing bug. Thanks for reporting it. Looking into it now. |
if it's any consolation, i accidentally loop over the characters of a string instead of strings in a list at least once a quarter! |
I've released a new version with the bug fix. Thanks again for reporting. |
thanks for the super fast reply! I found this while figuring out how to
auto-load spatialite ( ref #127 ) -- which also works. Much nicer than
futzing around waiting for datagrip to fire up.
…On Fri, May 3, 2024 at 1:35 PM Amjith Ramanujam ***@***.***> wrote:
I've released a new version with the bug fix. Thanks again for reporting.
—
Reply to this email directly, view it on GitHub
<#176 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3ZD32J3CVH7T2SVNYSJK3ZAPDEXAVCNFSM6AAAAABHFRUIX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJTGQ3TGNZZHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using litecli version 1.10.1, installed with pipx on linux; base python is a pyenv-installed 3.10.10.
Given the following contents of
~/.config/litecli/config
:loading litecli fails:
If the config is changed to add a trailing comma:
then the
.tables
command is correctly executed.I suspect this is because without the comma, python is iterating the over the string
".tables"
, not the list[".tables",]
:litecli/litecli/main.py
Lines 591 to 596 in 9d5bcf0
Adding a print above L592 confirms.
Without a comma:
self.startup_commands={'commands': '.tables'}
With a comma:
self.startup_commands={'commands': ['.tables']}
The text was updated successfully, but these errors were encountered: