Giter Site home page Giter Site logo

Empty project doesn't compile about dub HOT 3 CLOSED

dlang avatar dlang commented on May 13, 2024
Empty project doesn't compile

from dub.

Comments (3)

s-ludwig avatar s-ludwig commented on May 13, 2024

The problem here is that the package.json file of that project contains a dependency to vibe.d and defines its own main(). For that to work, it is currently required to add "versions": ["VibeCustomMain"] to package.json. This is a bit unfortunate and just to support the pure static this based initialization as in most vibe.d examples.

But the vanilla package.json should not contain a vibe.d dependency after dub init - did you add one manually?

But anyway, the situation with the VibeCustomMain version needs improvement, not sure how exactly, tough...

from dub.

sigod avatar sigod commented on May 13, 2024

did you add one manually?

Yes. Sorry, I forget to mention this.

from dub.

mdondorff avatar mdondorff commented on May 13, 2024

Closing this issue, as the remaining problem is a package specific problem. Although people are highly encouraged in using vibe, dub should not provide a special solution for it. But a generalization of this problem seems to me a bit to rare, as few libraries will define it's own main().

from dub.

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.