Comments (4)
What version are you trying to get to... I just tried updating all the way to the latest, and noticed that causes errors with the current code. I could likely fix the code and update to a newer version, just not sure who might care about the old versions, but I guess they could just use the old version of churn if they needed.
I would be happy to update, if it makes it more compatible with some of the other metric tools. It looks like the break occurs when moving from sexp 4.0.X to 4.1.0, so you basically just want me to do full version bumps
gem.add_dependency "sexp_processor", '> 4.1.0'> 3.1.0'
gem.add_dependency "ruby_parser", '
I likely won't have time to fix this until the weekend...
-
Error:
test: LocationMapping should location_mapping gets correct classes info. (LocationMappingTest):
NotEmptyError: exp not empty after Churn::LocationMapping.process_defn on s(s(:iasgn, :@minimum_churn_count, s(:iter, s(:call, s(:lvar, :options), :fetch, s(:lit, :minimum_churn_count)), s(:args), s(:lit, 5))), s(:call, nil, :puts, s(:lvar, :start_date)), s(:if, s(:call, s(:call, s(:self), :class), :git?), s(:iasgn, :@source_control, s(:call, s(:const, :GitAnalyzer), :new, s(:lvar, :start_date))), s(:if, s(:call, s(:const, :File), :exist?, s(:str, ".svn")), s(:iasgn, :@source_control, s(:call, s(:const, :SvnAnalyzer), :new, s(:lvar, :start_date))), s(:call, nil, :raise, s(:str, "Churning requires a subversion or git repo")))), s(:iasgn, :@revision_changes, s(:hash)), s(:iasgn, :@method_changes, s(:hash)), s(:iasgn, :@class_changes, s(:hash)))
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:134:inassert_empty' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:228:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:inin_context' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in
process'
/Users/danmayer/projects/churn/test/../lib/churn/location_mapping.rb:37:inanalyze_list' /Users/danmayer/projects/churn/test/../lib/churn/location_mapping.rb:32:in
process_class'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:insend' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:inerror_handler' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:inin_context' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:236:inprocess' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in
error_handler'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:235:inprocess' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in
in_context'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:inprocess' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:236:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:inerror_handler' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:235:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:inin_context' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in
process'
/Users/danmayer/projects/churn/test/../lib/churn/location_mapping.rb:20:inget_info' /Users/danmayer/projects/churn/test/unit/location_mapping_test.rb:13:in
**bind_1357185065_340352'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/shoulda-2.11.3/lib/shoulda/context.rb:382:incall' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/shoulda-2.11.3/lib/shoulda/context.rb:382:in
test: LocationMapping should location_mapping gets correct classes info. '
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/mocha-0.9.12/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in__send**' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/mocha-0.9.12/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in
run' -
Error:
test: LocationMapping should location_mapping gets correct methods info. (LocationMappingTest):
NotEmptyError: exp not empty after Churn::LocationMapping.process_defn on s(s(:iasgn, :@minimum_churn_count, s(:iter, s(:call, s(:lvar, :options), :fetch, s(:lit, :minimum_churn_count)), s(:args), s(:lit, 5))), s(:call, nil, :puts, s(:lvar, :start_date)), s(:if, s(:call, s(:call, s(:self), :class), :git?), s(:iasgn, :@source_control, s(:call, s(:const, :GitAnalyzer), :new, s(:lvar, :start_date))), s(:if, s(:call, s(:const, :File), :exist?, s(:str, ".svn")), s(:iasgn, :@source_control, s(:call, s(:const, :SvnAnalyzer), :new, s(:lvar, :start_date))), s(:call, nil, :raise, s(:str, "Churning requires a subversion or git repo")))), s(:iasgn, :@revision_changes, s(:hash)), s(:iasgn, :@method_changes, s(:hash)), s(:iasgn, :@class_changes, s(:hash)))
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:134:inassert_empty' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:228:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:inin_context' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in
process'
/Users/danmayer/projects/churn/test/../lib/churn/location_mapping.rb:37:inanalyze_list' /Users/danmayer/projects/churn/test/../lib/churn/location_mapping.rb:32:in
process_class'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:insend' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:218:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:inerror_handler' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:217:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:inin_context' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:236:inprocess' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:in
error_handler'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:235:inprocess' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:in
in_context'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:inprocess' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:236:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:275:inerror_handler' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:235:in
process'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:340:inin_context' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/sexp_processor-4.1.3/lib/sexp_processor.rb:194:in
process'
/Users/danmayer/projects/churn/test/../lib/churn/location_mapping.rb:20:inget_info' /Users/danmayer/projects/churn/test/unit/location_mapping_test.rb:21:in
**bind_1357185065_405043'
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/shoulda-2.11.3/lib/shoulda/context.rb:382:incall' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/shoulda-2.11.3/lib/shoulda/context.rb:382:in
test: LocationMapping should location_mapping gets correct methods info. '
/Users/danmayer/projects/churn/specs/ruby/1.8/gems/mocha-0.9.12/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in__send**' /Users/danmayer/projects/churn/specs/ruby/1.8/gems/mocha-0.9.12/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in
run'
from churn.
Thanks for looking at that. I'm working on https://github.com/metricfu/metric_fu and want to 'put the band back together', which includes updating the dependencies of the dependencies, and it looks like you're still actively developing on this. I don't know if it might be helpful, but the brakeman project has a ruby_parser / sexp_processor compatibility layer. (written before ruby_parser reach full 1.9 compliance in the 3.0 release)
from churn.
Cool I will look at the brakeman project. I figured this was for metric_fu updates. Very cool that you are working on that. I will dig in a bit this weekend and hopefully get a gem update released for you.
peace,
Dan
from churn.
OK so I bumped the version of churn and updated the ruby_parser and sexp_processor dependancies
https://rubygems.org/gems/churn
Let me know if any of the other old gems are causing issues.
from churn.
Related Issues (20)
- License missing from gemspec HOT 2
- Remove jeweler and simply gem build process
- Add support for sending churn results to a host
- Add support for perforce to help support Turbulence HOT 2
- add documentation about remote churn metric pushing
- Allow more flexible ignores (e.g. **/<file> for nested files) HOT 3
- Hide "Classes:" and "Methods:" when empty HOT 4
- Support for more syntaxes HOT 2
- Cannot insert password for SVN repository HOT 3
- SVN: FATAL: child class must implement HOT 1
- Vim: Warning: Output is not to a terminal HOT 1
- Churn requires a bazaar, git, mercurial, or subversion source control (RuntimeError) HOT 1
- Invalid byte sequence in UTF-8 HOT 1
- [Question] How to set file extention of the checked files? HOT 1
- Support for TFS
- Document that file_extension and file_prefix can also be supplied as regular expression HOT 1
- Passing an empty Array as the ignore_files value generates a RegexpError HOT 5
- Feature request: Support `churn --version` HOT 6
- Feature request: Add support for json output HOT 2
- switch to using Prism for parsing Ruby methods
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 churn.