Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view


Ni Va

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

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  =
hash = Ox.load(xml, mode: :hash)

hash.dig(:ROOT).each {|key, value| puts "#{key} is #{value}" }

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

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 [hidden email].
For more options, visit