-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird Error on Boilerplate #101
Comments
Hey @krrishd, Which boilerplate did this happen with? This was the error as soon as you ran |
All I did was: harp init . harp server [image: 3sparks llc] http://htmlsig.com/ClassifyStudios.com Krish Dholakiya / Lead Developer/Designer Classify Studios [image: Linkedin] http://linkedin.com/in/krishdholakiya This e-mail message may contain confidential or legally privileged On Thu, Sep 26, 2013 at 9:20 PM, Kenneth Ormandy
|
Hm, that definitely shouldn’t happen. Were there other things in the folder already, or no? And would you mind telling me what version of Harp you’re using? |
Just got the same problem with a .less file. The client requests a file called main.css. The folder had a file called main.less. If I understand correctly, harp should return the compiled file. Instead I get
|
@alexandrosm Hey, thanks very much for commenting on this issue. You are correct, Harp should return the |
Yes, Windows 7. Did some sleuthing and modified isEmpty in terraform/lib/helpers/raw.js to be as follows:
With that in place (which should give an identical result IIUC), I now get the following error instead:
Not sure if this helps at all. Let me know if there is anything else I can do to help. |
Thanks for doing that! Definitely helpful. It looks like it’s this problem, where certain preprocessed files aren’t getting served up properly on Windows. |
I see, this problem seems to have been known for months. Any idea if it's getting solved soon? I was hoping to start on a grunt-harp plugin tonight, but not really looking feasible now. |
That was my mistake actually, I reopened an issue when I probably should have made a new one. That’s just where my testing comment happened to be. If you rename I can’t commit to a timeframe since I don’t have the skill to fix it, but I will try and make it a priority. I am being a pest about it right now. The details you’re providing are all helpful, so thank you. |
Thanks a lot. Keep pestering :). Let me know if there is anything I can do to help. Harp is a great project and when it's fixed I'm hoping to use it to radically simplify yeoman's development workflow. |
I'm running into the same error on Mac OS X Mountain Lion when trying out harp in my own project (jade). However, the boilerplate does work. I tried with v0.9.3 and master. Running node v0.10.13 and npm 1.3.2. |
Thanks @andyshinn. If it is the exact same error message, I think sintaxi/terraform@1589aad should fix it in Harp v0.9.4. If you’d like to share what you’re working on, we can check or try and help debug it further. |
Hey @alexandrosm. As of v0.9.4, Harp now supports Windows! If you have a moment to try it out, please let us know how it goes. @andyshinn & @krrishd, if you happen to have a moment to see if you’re still having this problem on OS X, that’d be great. We’d definitely like to help you debug it, but we might need some more information about the respective apps your working on. Thanks! |
Thanks very much for trying it out. Just as a quick test, on Windows I created a basic app and with an |
Tried a simple 'harptest' directory on c:\ , added an app.coffee file on it. asking for app.js file on it still shows the Page Not Found / 404.jade error. |
Confirmed the same issue for main.css (which should be getting converted from main.less). Also, I now consistently get the second error message everywhere (the one pointing to 404.jade missing). It's not to do with my code, though it may be to do with my setup somehow. Don't have another windows machine to test right now, perhaps @Page- can give it a shot? |
I followed the same steps as you on a Windows 7 virtual machine and it worked as I would have expected, so that bodes well for getting this fixed. But I’m not totally sure how to go about debugging it, it sounds like you’re doing everything right. If you wanted, you could clone Harp locally and run the tests, but I’m not sure if that would reveal any discrepancies or not. Do you know what version of Node.js you’re using? |
Ok, so I needed an npm cache clean before installing. Now the conversion works just fine. It is taking 5-6 sec. to compile a very simple coffeescript file though. Is this time normal? Is there any caching built-in? Thanks for the hard work @sintaxi and the infinite patience @kennethormandy |
I’m glad it’s working, I ruled out it being an npm caching thing since you had the v0.9.4 error page, that’s strange it can work like that. We have had this come up before, there’s an open pull request for CoffeeScript caching. I don’t know the intricacies of this, but I think caching kind of conflicts with how Harp needs to work. But if you wouldn’t mind opening a new issue for it, that’d be awesome. |
Thanks @andyshinn, if it turns out there is still a problem, please let us know about it and we’ll do what we can. Getting your thoughts #55 especially would be great. I’m going to close this one now. |
I just installed a boilerplate for Harp, but when I run the server, this is what I get:
TypeError
Property 'hasOwnProperty' of object # is not a function
Your Harp app could not be built because of a TypeError in
The text was updated successfully, but these errors were encountered: