Comments (4)
I wonder if we should really silently remove files like this. It might cause confusion as errors will not show up.
from lfe.
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.
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.
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)
- Update docs for 2.x
- Compilation error when binary pattern matching with size variable HOT 6
- Dialyzer warning with custom behaviours HOT 2
- Internals for maps are inconsistent, depending on how they're constructed. HOT 1
- Is there any advantage to installing lfe via Make or rebar? HOT 3
- Multi-variable binary generator not working with list/binary comprehensions HOT 11
- Window switching make junk appear in Emacs LFE mode buffer HOT 3
- == macro expansion is incorrect HOT 1
- Record accessors in guards don't work HOT 3
- Feature Request: Github Discussions HOT 1
- Run tests without rebar3 HOT 4
- Add make targets for testing HOT 1
- README: Run tests with Makefile HOT 3
- Improve workflow for publishing LFE to hex.pm
- Odd recursion bug with rebar3_lfe as a plugin dep HOT 1
- v2.1.1 tagged but not marked as latest HOT 5
- lc/2 not defined HOT 8
- ets-ms is attempting to match 'undefined' when using match-record with unspecified slots HOT 5
- Error expanding (seemingly valid) qlc macro HOT 12
- Extend documentation for patterns HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lfe.