Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Unable to build release using GHERKIN_JS_NATIVE and GHERKIN_JS #264

Open
dkowis opened this issue Jun 10, 2013 · 0 comments
Open

Unable to build release using GHERKIN_JS_NATIVE and GHERKIN_JS #264

dkowis opened this issue Jun 10, 2013 · 0 comments

Comments

@dkowis
Copy link
Contributor

dkowis commented Jun 10, 2013

I get a nasty error when trying to run it. I get the same error as below either on uglify-js 1.3.5 or 1.3.4 (.4 is in the repo, this is a stacktrace from when I tried 1.3.5 to see if that resolves it)

I don't know stuff about javascripts, I don't know why this blows up horribly :( @jbpros, perhaps you know what's going on here?

$ GHERKIN_JS_NATIVE=true GHERKIN_JS=true bundle exec rake
mkdir -p /home/dkowis/gitwork/cucumber/cucumber.github.com/api/gherkin/2.12.0/ruby
/home/dkowis/gitwork/cucumber/gherkin/tasks/ragel_task.rb:25: Use RbConfig instead of obsolete and deprecated Config.
npm install
npm http GET https://registry.npmjs.org/uglify-js/1.3.5
npm http 200 https://registry.npmjs.org/uglify-js/1.3.5
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.3.5.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.3.5.tgz
[email protected] node_modules/uglify-js
ragel -R /home/dkowis/gitwork/cucumber/gherkin/tasks/../ragel/i18n/vi.rb.rl -o lib/gherkin/lexer/vi.rb
sed -i "s|/home/dkowis/gitwork/cucumber/gherkin/tasks/../||" lib/gherkin/lexer/vi.rb
mkdir -p ext/gherkin_lexer_vi
ragel -C /home/dkowis/gitwork/cucumber/gherkin/tasks/../ragel/i18n/vi.c.rl -o ext/gherkin_lexer_vi/gherkin_lexer_vi.c
sed -i "s|/home/dkowis/gitwork/cucumber/gherkin/tasks/../||" ext/gherkin_lexer_vi/gherkin_lexer_vi.c
ragel -E /home/dkowis/gitwork/cucumber/gherkin/tasks/../ragel/i18n/uz.js.rl -o js/lib/gherkin/lexer/uz.js
sed -i "s|/home/dkowis/gitwork/cucumber/gherkin/tasks/../||" js/lib/gherkin/lexer/uz.js
sed -i 's/ESCAPED_TRIPLE_QUOTE/\\\\\\"\\\\\\"\\\\\\"/' js/lib/gherkin/lexer/uz.js
sed -i 's/const/var/' js/lib/gherkin/lexer/uz.js
node /home/dkowis/gitwork/cucumber/gherkin/tasks/../js/node_modules/uglify-js/bin/uglifyjs js/lib/gherkin/lexer/uz.js > js/lib/gherkin/lexer/uz.min.js

/home/dkowis/gitwork/cucumber/gherkin/js/node_modules/uglify-js/lib/parse-js.js:271
    throw new JS_Parse_Error(message, line, col, pos);
          ^
Error
    at new JS_Parse_Error (/home/dkowis/gitwork/cucumber/gherkin/js/node_modules/uglify-js/lib/parse-js.js:263:18)
    at js_error (/home/dkowis/gitwork/cucumber/gherkin/js/node_modules/uglify-js/lib/parse-js.js:271:11)
    at parse_error (/home/dkowis/gitwork/cucumber/gherkin/js/node_modules/uglify-js/lib/parse-js.js:367:9)
    at next_token (/home/dkowis/gitwork/cucumber/gherkin/js/node_modules/uglify-js/lib/parse-js.js:614:9)
    at squeeze_it (/home/dkowis/gitwork/cucumber/gherkin/js/node_modules/uglify-js/bin/uglifyjs:282:13)
    at /home/dkowis/gitwork/cucumber/gherkin/js/node_modules/uglify-js/bin/uglifyjs:229:16
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)
rake aborted!
Command failed with status (8): [node /home/dkowis/gitwork/cucumber/gherkin...]
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `sh'
/home/dkowis/gitwork/cucumber/gherkin/tasks/ragel_task.rb:39:in `block in define_tasks'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@cucumber/bin/ruby_noexec_wrapper:14:in `eval'
/home/dkowis/.rvm/gems/ruby-1.9.3-p385@cucumber/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => default => spec => compile => js/lib/gherkin/lexer/uz.js
(See full trace by running task with --trace)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant