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

diesel_cli do nothing #843

Closed
AlexNav73 opened this Issue Apr 5, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@AlexNav73

AlexNav73 commented Apr 5, 2017

Hi, I faced a strange issue when I try to use diesel_cli

I install latest version of diesel_cli 0.12.0 using command: cargo install diesel_cli --no-default-features --features=postgres . Installation finished successfully, but when I try to run binary I have no output at all. I tried all subcommands and every time I haven't got any output. Binary just do nothing.

I git cloned this repo and installed diesel_cli dirrectly from repo. It didn't help.

Then I started puting println!(...) in src of this repo and see, what will happend. Finnaly I get "before find_migrations_directory" printed when I do this

fn run_setup_command(matches: &ArgMatches) {
    println!("before find_migrations_directory");
    return;
    migrations::find_migrations_directory()
        .unwrap_or_else(|_| {
            println!("create_migrations_directory");
            create_migrations_directory()
                .unwrap_or_else(handle_error)
        });

    println!("find_migrations_directory");
    return;
    database::setup_database(matches).unwrap_or_else(handle_error);
}

but if I remove first return it will do nothing again (and no output too).

I setted up PQ_LIB_DIR, DATABASE_URL
Tested on Windows 10 and 7

PS D:\Programms\Rust\diesel\diesel_cli> rustc --version --verbose
rustc 1.16.0 (30cf806ef 2017-03-10)
binary: rustc
commit-hash: 30cf806ef8881c41821fbd43e5cf3699c5290c16
commit-date: 2017-03-10
host: i686-pc-windows-gnu
release: 1.16.0
LLVM version: 3.9
@AlexNav73

This comment has been minimized.

AlexNav73 commented Apr 17, 2017

The problem was in my PATH environment variable. When I append PATH with value of PQ_LIB_DIR it solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment