pgloader icon indicating copy to clipboard operation
pgloader copied to clipboard

load-lisp-file option fails with Lisp error

Open garetht opened this issue 5 years ago • 6 comments

Thanks for contributing to pgloader by reporting an issue! Reporting an issue is the only way we can solve problems, fix bugs, and improve both the software and its user experience in general.

The best bug reports follow those 3 simple steps:

  1. show what you did,
  2. show the result you got,
  3. explain how the result is not what you expected.

In the case of pgloader, here's the information I will need to read in your bug report. Having all of this is a big help, and often means the bug you reported can be fixed very efficiently as soon as I get to it.

Please provide the following information:

  • [x] pgloader --version

    pgloader version "3.6.26cc9ca"
    compiled with SBCL 1.5.9
    
  • [x] did you test a fresh compile from the source tree? The version appears to be the same as the most recent commit.

  • [x] did you search for other similar issues?

    This seems to be the most similar related issue: https://github.com/dimitri/pgloader/issues/1055

    This earlier issue is somewhat similar but has no error message at all: https://github.com/dimitri/pgloader/issues/526

  • [x] how can I reproduce the bug?

    touch transform.lisp file.load
    echo "(in-package #:pgloader.transforms)" > transform.lisp
    pgloader -l transform.lisp file.load
    

This is observed to occur once the -l option is specified even if the command file was previously working, so the contents of the command file are thought to be independent of the bug. The error also appears to be independent of the contents of the Lisp file.

  • [x] pgloader output you obtain
#<CLOSURE (LAMBDA (COMMAND-LINE-ARGUMENTS::VALUE)
            :IN
            COMMAND-LINE-ARGUMENTS::MAKE-OPTION-ACTION) {1004DFB0DB}> fell through ETYPECASE expression.
Wanted one of (NULL KEYWORD SYMBOL CONS).
  • [x] data that is being loaded, if relevant

No data is loaded.

  • [x] How the data is different from what you expected, if relevant

The Lisp file should be loaded without an error message.

garetht avatar Dec 18 '19 20:12 garetht

command-line-arguments version "2.0.0" can reproduce this error. "2.0.0" is incompatible with "1.0.2" used in pgloader.

mfkhr avatar Dec 26 '19 20:12 mfkhr

Hi @mfkhr ; could you send a bug fix PR?

dimitri avatar Feb 11 '20 22:02 dimitri

So, what should I do to make it work?

antonkulaga avatar May 18 '20 13:05 antonkulaga

https://github.com/fare/command-line-arguments/issues/5

mfkhr avatar May 18 '20 13:05 mfkhr

Is this fix released somewhere? I have the following installed and run into this problem:

pgloader version "3.6.2"
compiled with SBCL 2.0.10

bummzack avatar Nov 04 '20 15:11 bummzack

Same problem with 3.6.2 on Centos from yum postgresql repo. Can you explain me how to solve this ? Thanks.

jordanebordet avatar Sep 30 '21 21:09 jordanebordet