Coder Social home page Coder Social logo

Comments (2)

egorpugin avatar egorpugin commented on June 20, 2024

I saw one issue when server is not found (we don't have one public yet), sw fails.
Going to fix this in a short time.
Is it your issue?


For org.sw.demo.madler.zlib see (first line):
https://github.com/SoftwareNetwork/database/blob/master/package.csv


Oh, you mean building sw client.
Yes, it might fail too at the moment.
Please, wait a bit.

from sw.

biocomp avatar biocomp commented on June 20, 2024

Looks like something is wrong with packages.db.

I see that csv is downloaded correctly, then I see that data is being transferred to the database after download, and it includes the package. But then inside PackagesDatabase::findDependencies, code fails to find that package in the same database. Not sure if it's something with SQL, mysql, database or something else.

I don't think it's because server is not public, but obviously I could be wrong.

Failure is here (q.empty() is true):

        auto q = (*db)(
            custom_query(sqlpp::verbatim("SELECT package_id FROM package WHERE path = '" + dep.ppath.toString() + "' COLLATE NOCASE"))
            .with_result_type_of(select(pkgs.packageId).from(pkgs))
            );
        //auto q = (*db)(select(pkgs.packageId).from(pkgs).where(pkgs.path == dep.ppath.toString()));
        if (q.empty())
            // TODO: replace later with typed exception, so client will try to fetch same package from server
            throw std::runtime_error("PackageId '" + project.ppath.toString() + "' not found.");

But, if it's too early to be trying I guess I'll stop :)

from sw.

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.