Git Product home page Git Product logo

Comments (4)

rvirding avatar rvirding commented on June 24, 2024

I wonder if we should really silently remove files like this. It might cause confusion as errors will not show up.

from lfe.

oubiwann avatar oubiwann commented on June 24, 2024

Hrm, I'm not sure what you mean ...

It's possible that people could have .erl, .ex, or .jxa files in one project. In general I'm pretty against removing files from someone's project ...

Side note: this patch was provided when I noticed that "-o" and "/output/path/" were being passed with the file args in lfec. If we don't use this patch to filter only .lfe files for lfec to compile, then we'll have to add a separate fix for making sure that options don't end up in the file args list ...

from lfe.

rvirding avatar rvirding commented on June 24, 2024

I think one reason you were getting that problem is that you were mixing flags and files. The lfe and lfec commands follow bash/sh conventions here rather that erl conventions. This means that all the flags and their arguments must come first, and as soon it detects an arg which is not a flag then it treats everything after that as files.

So if you write lfec foo.lfe -o mybin then you will get this error. You need to write lfec -o mybin foo.lfe. Lfec only recognises a fixed set of flags and you can explicitly end the flag section with a -- and everything after that is a file. So you can do lfec -o mybin -- -any-file-name.lfe.

That is why I was wondering whether we need to remove files from the list of files to compile. I didn't mean actually delete the actual files, not even I am that strict. :-)

Lfe behaves in the same way but arguments after the flags are the script name and then arguments.

from lfe.

oubiwann avatar oubiwann commented on June 24, 2024

Oh, right. I discovered the ordering after that.

Thanks :-)

On Sun, Jan 25, 2015 at 10:56 AM, Robert Virding [email protected]
wrote:

I think one reason you were getting that problem is that you were mixing
flags and files. The lfe and lfec commands follow bash/sh conventions here
rather that erl conventions. This means that all the flags and their
arguments must come first, and as soon it detects an arg which is not a
flag then it treats everything after that as files.

So if you write lfec foo.lfe -o mybin then you will get this error. You
need to write lfec -o mybin foo.lfe. Lfec only recognises a fixed set of
flags and you can explicitly end the flag section with a -- and
everything after that is a file. So you can do lfec -o mybin --
-any-file-name.lfe.

Lfe behaves in the same way but arguments after the flags are the script
name and then arguments.


Reply to this email directly or view it on GitHub
#109 (comment).

from lfe.

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.