Coder Social home page Coder Social logo

`forge new project` about forge HOT 7 CLOSED

ionide avatar ionide commented on July 18, 2024
`forge new project`

from forge.

Comments (7)

inosik avatar inosik commented on July 18, 2024

Due to the globbing pattern, FAKE tries to build the templates, which get cloned to a sibling directory of the directory, where forge.exe is located (https://github.com/fsharp-editing/Forge/blob/0258550fa0e88f544ddb70b961fdda495b788547/src/Forge.Core/Templates.fs#L113).

So you either have to put Forge to another directory, use the Homebrew formula like described in the README, or we change the target directory, where the templates get cloned to.

from forge.

haf avatar haf commented on July 18, 2024

I can't use the homebrew formula because I'm writing a linux tutorial. So what's the invocation I should perform to have it just work?

from forge.

inosik avatar inosik commented on July 18, 2024

For now, I probably would just download and unzip Forge.zip to ~/forge and add that directory to PATH, so that the system can find forge.sh.

from forge.

Krzysztof-Cieslak avatar Krzysztof-Cieslak commented on July 18, 2024

Yes, idea is to have "global" / added to PATH installation of forge.

I don't have too much experience with packaging systems for linux so I have no idea what would be good way of providing same deployment for Forge on linux as we currently have for Windows and Mac.

Maybe we should suggest in documentation using something like http://linuxbrew.sh/ and using same brew command as for Mac.

from forge.

Krzysztof-Cieslak avatar Krzysztof-Cieslak commented on July 18, 2024

Another thing is way we fail in such case - we clearly should have some better error handling for this case, instead of some random XML exception.

from forge.

inosik avatar inosik commented on July 18, 2024

That exception comes from xbuild, I don't know how Forge could react to that, because there is also FAKE involved.

I think the only thing to prevent this, would be not to build the template project files.

from forge.

Krzysztof-Cieslak avatar Krzysztof-Cieslak commented on July 18, 2024

Oh, my bad. I think error comes up when user tries to build project (run default ./build.sh provided by Forge) when project was scaffolded in Forge installation directory. It's happening because default build.fsx uses **/*.fsproj glob [so it matches projects in templates folder]

I don't think we can do anything about it. Installing Forge "globally" and running it in solution / repository root of new project should work.

from forge.

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.