Closed salomons closed 13 years ago
@wagenet can you speak to this issue at all?
@salomons, is there anything in the generated code that looks at all problematic? Also, if you just open the index.html locally (without bpm preview) does that work?
@wagenet, opening the index.html file locally doesn't work either. I get the same error: syntax error __evalFunc = function(a,b,c,d,e,f){var...efined)};return c.statePlugin=YES,c}}
I am using: bpm rc3 statechart beta 3
I Tryed to recreate the steps above with updated ruby (from p180 to p290) but I couldn't add sproutcore --pre anymore. Reverted the update to p180, but I still can't use --pre. Is --pre deprecated or is it still the way to go? Filed an issue at https://github.com/bpm/bpm/issues/56.
@salomons, a couple of ideas:
"spade:format": "function"
. This will prevent your bpm_libs.js from being minified and will make spade register functions instead of strings. This should make it easier to track down where the error is coming from.vendor
directory and clone http://github.com/sproutcore/sproutcore-statechart.git into that directory. This will make BPM use that version instead of the package from getbpm.org. If this works, then it's possible there was a bug in beta3 that was causing problems.Also, what browser and OS are you using?
@wagenet, I removed the minifier line and found out that the error occur using eval in the following function: Ep.evaluate = function(text, sandbox, filename) { return eval(text); };
When I replaced the line with "spade:format": "function" as you suggested it works perfectly! So there seems to be a bug somewhere.
I am using OS X 10.6 and I tried both firefox and safari. Thanks!
What if you try vendoring sproutcore-statechart master and don't do "spade:format": "function"
?
Hurray! Did the vendor thing and it used beta4 from local package and it worked using bpm preview. It also worked using a node server, which was my initial problem. Thanks a thousand for your help!
My guess is that there's something in beta3 (possibly a debugger statement) that is causing problems in your environment.
Yeah, there was. It's fixed in beta4
Awesome! Now SC 2 is mature enough for me to start developing my app. Excellent work you have done in v 2.0!
UPDATED 20 Sep!! ......................................................................................................... I can't get statecharts using bpm working. I get the following error.
syntax error
[Break On This Error] __evalFunc = function(a,b,c,d,e,f){var...efined)};return c.statePlugin=YES,c}} in file:///.../my_app/assets/bpm_libs.js
Line 6
I am using: spade (1.0.1) sproutcore-metal (2.0.beta.3) sproutcore-runtime (2.0.beta.3) jquery (1.6.2) sproutcore-views (2.0.beta.3) handlebars (1.0.0.beta.3) sproutcore-handlebars-format (2.0.beta.3.1) sproutcore-handlebars (2.0.beta.3) sproutcore (2.0.beta.3.1) sproutcore-utils (2.0.beta.3) sproutcore-statechart (2.0.beta.3)
Steps to reproduce error:
When I then start bpm preview and go to localhost:4020/index.html in the browser I encounter the error. If I comment out require('sproutcore-statechart') it works just fine.