Questions tagged [psychparser]
6 questions
10
votes
1 answer
JRuby 1.7.1 and PsychParser error parsing UTF-8 YAML file (Rails 3.2.8)
In our JRuby/Rails project, we are using the i18n gem, and support Japanese as well as English. Our config/locales.ja.yml file is in UTF-8, without any BOM.
When running Rails 3.2.9 on JRuby 1.7.1, we now see the following error:
% jruby -S rake…

buruzaemon
- 3,847
- 1
- 23
- 44
5
votes
3 answers
YAML: error parsing a string containing a square bracket as its first character
I'm parsing a YAML file in Ruby and some of the input is causing a Psych syntax error:
require 'yaml'
example = "my_key: [string] string"
YAML.load(example)
Resulting in:
Psych::SyntaxError: (): did not find expected key
while…

Pauline
- 3,566
- 8
- 23
- 39
2
votes
3 answers
Ruby and rails yaml parser error for database.yml
Environment
Rails 3.2.14
Ruby 1.9.3p448
Ubuntu 12.04
bundler version 1.3.5
There is some problem with the way ruby 1.9.3 is loading the YAML. If I dry up the code in databse.yml file the rails console, server, generate etc commands fails. If I…

Naveen Agarwal
- 559
- 4
- 18
1
vote
1 answer
SystemStackError trying to call `.to_yaml` in a cequel object
I started to work in a legacy project and if I try to find a cequel record and then convert it to yaml:
fj = FullJob.find(1)
fj.to_yaml
I'm getting a stack level too deep error.
Checking deeper, there's a @record_collection instance variable…

Alter Lagos
- 12,090
- 1
- 70
- 92
0
votes
1 answer
Batching when using ActiveRecord::Base.connection.execute
I am busy writing an migration that will allow us to move our yamler from Syck to Psych and finally upgrade our project to ruby 2. This migration is going to be seriously resource intensive though so I am going to need to use chunking.
I wrote the…

Donovan Thomson
- 2,375
- 3
- 17
- 25
0
votes
0 answers
Trouble installing Ruby
This is my second time trying to install Ruby on my system. This time I've following http://railsapps.github.io/installrubyonrails-mac.html. I've followed the steps and keep getting hung up with the error below. At this point, I've backtracked…

Chadimoglou
- 147
- 2
- 12