Hi,
Running from within vim a ruby code large xml (1M lines) parser, I got this :
Error detected while processing function helper#ParserXml
line 20
SystemStackError: stack level too deep
When I run it from windows shell, not stack error appears.
Can I upgrade stack level memory from within Vim ?
Thank you
Niva
Nota :
This is the vim's ruby handler function :
fun! helper#ParseXml() "{{{
ruby << EOF
require "ox"
require "open-uri"
xmlfilepath = 'foo.xml'
# HASH method
xml = IO.read(xmlfilepath)
hash = Ox.load(xml, mode: :hash)
hash.dig(:ROOT).each {|key, value| puts "#{key} is #{value}" }
EOF
endfunc #}}}
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Wednesday, February 7, 2018
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment