piston convert syntax error

7 views
Skip to first unread message

jcm

unread,
Jun 16, 2009, 1:23:16 PM6/16/09
to Piston
Hi,

Still using svn here for projects. I need to add some plugins from
github, so I try piston to replace my old svn:externals.

$ gem install piston
$ piston convert vendor/plugins
/opt/local/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line
38, col 0: `acts_as_state_machine
http://elitists.textdriven.com/svn/plugins/acts_as_state_machine/tags/rel_2-0'
(ArgumentError)
from /opt/local/lib/ruby/1.8/yaml.rb:133:in `load'
from /opt/local/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/
piston/
svn/working_copy.rb:123:in `externals'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/
lib/
active_support/core_ext/object/misc.rb:39:in `returning'
from /opt/local/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/
piston/
svn/working_copy.rb:122:in `externals'
from /opt/local/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/
piston/
commands/convert.rb:13:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/
lib/
active_support/core_ext/object/misc.rb:39:in `returning'
from /opt/local/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/
piston/
commands/convert.rb:12:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/
piston/
commands/convert.rb:27:in `start'
from /opt/local/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/
piston/
cli.rb:67:in `start'
from /opt/local/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/
piston/
cli.rb:121
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/piston-2.0.2/bin/
piston:
5
from /opt/local/bin/piston:19:in `load'
from /opt/local/bin/piston:19

François Beausoleil

unread,
Jun 17, 2009, 10:02:24 AM6/17/09
to piston-d...@googlegroups.com
Hi,

Normally, SVN returns data that is mostly YAML-like. In your cas,
there's something about that svn:externals that isn't right and makes
YAML choke when trying to read the data back in.

Maybe I should move away from YAML and write my own parser.

What do you think?

Bye!
--
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/
Reply all
Reply to author
Forward
0 new messages