nwops / puppet-debugger

A interactive live debugger and REPL for the puppet language
https://gitlab.com/puppet-debugger/puppet-debugger
MIT License
121 stars 11 forks source link

colon symbol vanishing from variable output #66

Closed maxadamo closed 5 years ago

maxadamo commented 5 years ago

: colon is not shown in variables output:

$var = "ff:gg"
 => "ff:gg"
20:>> notify { $var: }
 => Puppet::Type::Notify {
  loglevel => notice,
   message => "ffgg",
      name => "ffgg",
     title => "ffgg",
  withpath => false
}

or:

$var_again = "ff\:gg"
notify { $var_again: }
 => Puppet::Type::Notify {
  loglevel => notice,
   message => "ff\\gg",
      name => "ff\\gg",
     title => "ff\\gg",
  withpath => false
}
logicminds commented 5 years ago

That issue might be caused by this:

https://github.com/nwops/puppet-debugger/blob/master/lib/awesome_print/ext/awesome_puppet.rb#L57

I'll dig into this later.