GithubHelp home page GithubHelp logo

Comments (4)

timsehn avatar timsehn commented on June 2, 2024

Thanks for the report. I'll try and reproduce. I assume this is on a *nix platfiorm?

from dolt.

timsehn avatar timsehn commented on June 2, 2024

@fulghum is going to run through a bunch of tests here and make individual bugs. I have a long running import running on the default port and I don't want to kill it so I can't test myself.

from dolt.

fulghum avatar fulghum commented on June 2, 2024

Hi @guilhem, thanks for taking the time to report this one. I did an audit of how Dolt CLI commands behave when you run them in a directory that is being used for a dolt sql-server, but has not been initialized as a Dolt database yet, and I left the results in #7875.

Some commands display a better error message (i.e. "The current directory is not a valid dolt repository."), but many other commands display a confusing error message like the one you reported (i.e. "The current directories repository state is invalid"). I'm working on some changes to make the CLI commands consistently report "The current directory is not a valid dolt repository".

For dolt init, I'm going to customize the error message with some better instructions. Since a running dolt sql-server won't pick up changes properly if you run dolt init on the directory it's running from, we'll output an error message telling customers that a dolt sql-server is running from the same directory, and that it needs to be stopped before that directory can be initialized.

Let us know if you think more is needed to make those error messages more helpful and easier to understand.

from dolt.

timsehn avatar timsehn commented on June 2, 2024

This should be fixed by #7876 and the fix to dolt remotes #7622 when @macneale4 has it. I'll resolve as we decomposed it into multiple bugs.

from dolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.