Comments (10)
semver, how does it even!!?
from elm-brunch.
I ran into this on the weekend. Slow to the draw I guess. :P @madscoaducom This is what I was talking about on twitter but I wanted to make a proper bug report. If you need any help feel free to ping me but @urfolomeus 's spike seem to work here as well.
from elm-brunch.
I am a bit rusty on the node ecosystem but happy to help test a PR.
from elm-brunch.
@urfolomeus Thanks for taking the time to investigate the details.
For now I have added a warning to the README.
I wonder how we should handle the users that stay with brunch < 2.2.0 ...hurray for backwards incompatible changes.
I will try to look at this tonight.
from elm-brunch.
@madsflensted I've had a first pass at getting the existing test suite (well a slightly modified one) to pass. You can see it on my spike.
Will give it a go in my Phoenix/Elm app and see how it goes.
Some caveats:
- This is very much me just poking about to see how far I can go. Happy to drop that repo entirely and bring the results in here if they're useful.
- This is just a first pass, I've not tried it in the Phoenix/Elm app yet to see if it works (will do that now). Also I may have missed some existing functionality.
Hope this helps :)
from elm-brunch.
Um well, it would seem I have more work to do 😄
(not quite working yet)
from elm-brunch.
I have been doing some debugging in brunch and the plugin.
I have found that brunch supports the old plugin model still, but it seems that somewhere (I have not found it yet) - the fact that elm-brunch returns data = null to the callback, directs the brunch code to try and access '.path' of undefined.
If I make a slight change to this line and call the callback with ""
instead of null
on success - the error goes away.
return callback(error, error ? stderr : "");
It also looks like all the files are generated properly, but I do not feel comfortable about this.
@polymetis @urfolomeus and @tobyhede could you try this hack in your local node_modules/elm-brunch/index.js and see if that fixes it for your? (when you run with brunch 2.2.1)
from elm-brunch.
Works for me 😊 Nice find and much simpler than my approach.
from elm-brunch.
Ok - I have published a 0.4.2 with this workaround. I suspect that the side effect is that the rest of the pipeline is run with a empty source string, but this is probably a minor issue for Elm projects.
Going forward I think re-writing to the new plugin format, is the way to go.
from elm-brunch.
Works for me too
On 27 January 2016 at 18:04, Mads Flensted-Urech [email protected]
wrote:
Ok - I have published a 0.4.2 with this workaround. I suspect that the
side effect is that the rest of the pipeline is run with a empty source
string, but this is probably a minor issue for Elm projects.Going forward I think re-writing to the new plugin format, is the way to
go.—
Reply to this email directly or view it on GitHub
#11 (comment)
.
from elm-brunch.
Related Issues (20)
- Error running elm-brunch HOT 6
- [TypeError: Cannot read property 'split' of undefined] HOT 6
- Problem with initial file compilation on Windows HOT 4
- Request: option to use use local elm binary HOT 4
- Multiple elm-package.json files HOT 2
- Request: 'merge' build strategy HOT 4
- Feature Request: 'elmx' support HOT 1
- Run tests automatically for PR
- Race condition in brunch compile HOT 2
- No color coding in terminal HOT 3
- Confused about configuration HOT 8
- relative path executablePath HOT 2
- brunch plugin build order HOT 12
- Fails in minimal test case HOT 1
- brunch build --production does not have a non-zero exit code on error HOT 12
- elm-brunch watch --server gets out of sync HOT 5
- Failing elm-make on 0.11.0 for a config that works on 0.10.0 HOT 5
- Elm 0.19 HOT 5
- Can't compile Elm file HOT 4
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 elm-brunch.