Comments (7)
Do these files exist and could you provide a sample of rebar.lock that seems to trigger this?
from rebar3.
They don't exist in the current working directory, no. I'm not sure where else it would be looking.
from rebar3.
Ah, ok, I assumed it would be one of the files in the non-empty directory.
Here's a sample run for me on a ubuntu box:
λ /tmp → ls -al
total 96
drwxrwxrwt 17 root root 4096 Nov 15 00:54 .
drwxr-xr-x 23 root root 4096 May 6 2013 ..
-rw-rw-r-- 1 ferd ferd 5 Jul 15 22:38 a
-rw-rw-r-- 1 ferd ferd 3074 Jul 17 02:06 aaaa
drwxrwxr-x 3 ferd ferd 4096 Nov 14 17:38 app
-rw-rw-r-- 1 ferd ferd 0 Jul 15 22:39 b
drwxrwxr-x 2 ferd ferd 4096 Nov 15 00:54 check
-rwxrwxr-x 1 ferd ferd 1984 Jun 1 19:13 client_bouncer.erl
drwxrwxr-x 5 ferd ferd 4096 Sep 21 11:27 dirmon
-rw-rw-r-- 1 ferd ferd 117 Nov 10 18:50 .gitignore
-rw-rw-r-- 1 ferd ferd 1470 Nov 10 18:50 LICENSE
...
drwx------ 2 ferd ferd 4096 Apr 13 2014 tmux-1001
drwx------ 2 ferd ferd 4096 Oct 30 11:58 vKwsHeL
λ /tmp → DEBUG=1 rebar3 new lib squirrels
===> Consult config file "rebar.config"
===> Consult config file "rebar.lock"
===> Available templates: [{"ct_suite",file,
"/home/ferd/.rebar3/templates/ct_suite.template"},
{"release",escript,
"priv/templates/release.template"},
{"plugin",escript,
"priv/templates/plugin.template"},
{"lib",escript,
"priv/templates/lib.template"},
{"app",escript,
"priv/templates/app.template"}]
===> Looking for "lib"
===> Executing template file "mod.erl.dtl"
===> Writing squirrels/src/squirrels.erl
===> Executing template file "otp_lib.app.src.dtl"
===> Writing squirrels/src/squirrels.app.src
===> Executing template file "rebar.config.dtl"
===> Writing squirrels/rebar.config
===> Executing template file "gitignore.dtl"
===> Writing squirrels/.gitignore
===> Executing template file "LICENSE.dtl"
===> Writing squirrels/LICENSE
===> Executing template file "README.md.dtl"
===> Writing squirrels/README.md
===> Template lib applied
Let's try the same on a mbp (running an older OSX, 10.7.5):
λ /tmp → ls -al
total 0
drwxrwxrwt 35 root wheel 1190 14 Nov 19:57 .
drwxr-xr-x@ 6 root wheel 204 11 Jul 2011 ..
-r--r--r-- 1 root wheel 0 14 Nov 17:32 .keystone_install_lock
drwxr-xr-x 3 root wheel 102 29 Oct 22:19 20141029221922
drwxr-xr-x 3 root wheel 102 31 Oct 20:46 20141031204646
....
drwx------ 3 _spotlight wheel 102 14 Nov 19:57 launchd-14384.EHGVNZ
drwx------ 3 ferd wheel 102 10 Oct 17:19 launchd-218.536Yz6
λ /tmp → DEBUG=1 ~/code/self/rebar3/rebar3 new lib squirrels
===> Consult config file "rebar.config"
===> Consult config file "rebar.lock"
===> Available templates: [{"release",escript,
"priv/templates/release.template"},
{"plugin",escript,
"priv/templates/plugin.template"},
{"lib",escript,
"priv/templates/lib.template"},
{"app",escript,
"priv/templates/app.template"}]
===> Looking for "lib"
===> Executing template file "mod.erl.dtl"
===> Writing squirrels/src/squirrels.erl
===> Executing template file "otp_lib.app.src.dtl"
===> Writing squirrels/src/squirrels.app.src
===> Executing template file "rebar.config.dtl"
===> Writing squirrels/rebar.config
===> Executing template file "gitignore.dtl"
===> Writing squirrels/.gitignore
===> Executing template file "LICENSE.dtl"
===> Writing squirrels/LICENSE
===> Executing template file "README.md.dtl"
===> Writing squirrels/README.md
===> Template lib applied
I can also reapply things otherwise. There's a possibility the program gets blocked up somewhere when it scans its own escript data rather than when it consults the lock file, but without reproducing the bug it's gonna be hard to figure it out :/
from rebar3.
I'm sure it is getting beyond reading for the lock file.
But yea, unless @catamorphism can give us more information on reproducing I'm not sure we should even leave this ticket open...
Do you have another computer to compare results with and see what is different between the setups?
from rebar3.
Sorry, this got lost in my inbox. I'll try to reproduce it.
from rebar3.
Should I just close this? :)
from rebar3.
Well I'll be... I just reproduced this! So leaving it open obviously and now digging into it.
from rebar3.
Related Issues (20)
- rebar3 shell ctrl+c exits, unlike erl or iex, and breaks macos zsh terminal HOT 4
- {bad_name, setup} error during rebar3 escriptize HOT 6
- New command 'alias' HOT 2
- "Newly added dep is locked at a lower level" (also) reported when upgrade command is issued HOT 4
- Executing rebar3 throwing escript exception HOT 1
- Templates not found on Fedora Linux HOT 4
- `rebar3 tree` formats its output very badly when called together with OTP26 HOT 4
- Question: Sharing modules between multiple applications
- Many [r3_hex_http] ... is deprecated in favour of ... messages during compilation and upgrades HOT 1
- are there checksum available ? HOT 4
- Escript creation failure reason swallowed by post-hook failure. HOT 1
- Possible error in rebar_core HOT 1
- Uncaught error in rebar_core when running rebar3 shell HOT 1
- when use -name, remote_console connect failed HOT 1
- "Did you mean ...?" suggestions for misspelled commands HOT 7
- rebar3 auto: Error loading module enotify HOT 1
- Tag usage in newer rebar3 versions HOT 14
- Hooks env variables documentation HOT 1
- {mode, ...} overrides variables explicitly set in the profile
- rebar3 killed spawned processes after compile HOT 1
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 rebar3.