Hi I am working with a yaml file with readyaml and writeyaml functions. Problem the existing white spaces are removed from yaml when i commit the changed the yaml. How to include existing white spaces for readyaml and writeyaml. Please help?
Hi Szymon Stepniak, Thanks for sharing knowledge and explanation. I am following your groovy videos. I have one question that when i type "new YamlSlurper" in inteliJ , its not showing auto complete for YamlSlurper. And i did write same script you wrote in this video and its failing when executing. Do i need to install anything else to make YamlSlurper availble ? Below are the versions i am using. Groovy Version: 3.0.11 JVM: 11.0.17 Vendor: Oracle Corporation OS: Windows 10 Please help me even i did some google search i couldnot find the solution for this.
I'm guessing you are missing groovy-yaml dependency - mvnrepository.com/artifact/org.codehaus.groovy/groovy-yaml/3.0.11 Make sure you have it on your classpath and it should help. Take care, and have a good day!
@@WeeNiallism I didn't feel offended, no worries. MrHaki documented how to parse YAML from a file using YamlSlurper.parse() method - blog.mrhaki.com/2020/02/groovy-goodness-parse-yaml-with.html Alternatively, you can always read a file and pass its content to the YamlSlurper.parseText(). Both options are correct. I should mention it in the video, my bad. Cheers!
The content of your video is great, and the editing is fantastic, fun the detail of the end. thanks again for sharing
Thanks! I'm happy to hear someone watches videos to the very end :-D
Enjoy coffee!
Thank you Sergey! That was very kind :) Take care and have a good day!
Hej, świetna robota!
Dzięki wielkie! :-) Miłego dnia!
Hi I am working with a yaml file with readyaml and writeyaml functions.
Problem the existing white spaces are removed from yaml when i commit the changed the yaml.
How to include existing white spaces for readyaml and writeyaml. Please help?
I don't know how to help you, I have no experience with the problem you described. Good luck, and have a good day!
Hi Szymon Stepniak,
Thanks for sharing knowledge and explanation. I am following your groovy videos.
I have one question that when i type "new YamlSlurper" in inteliJ , its not showing auto complete for YamlSlurper. And i did write same script you wrote in this video and its failing when executing.
Do i need to install anything else to make YamlSlurper availble ?
Below are the versions i am using.
Groovy Version: 3.0.11 JVM: 11.0.17 Vendor: Oracle Corporation OS: Windows 10
Please help me even i did some google search i couldnot find the solution for this.
I'm guessing you are missing groovy-yaml dependency - mvnrepository.com/artifact/org.codehaus.groovy/groovy-yaml/3.0.11 Make sure you have it on your classpath and it should help. Take care, and have a good day!
@@szymonstepniak Thanks. I will check that. Take care, and have a good day!
What is the IDE you are using that autocomplete groovy Syntex?
Hi! It's an IntelliJ IDEA (www.jetbrains.com/idea/). The community edition (a free to use one) has built-in syntax support for Groovy.
Please show YAML reading and writing from file & not arbitrary text.
Thanks for your comment, Niall. Have a good day!
Sorry - in retrospect this reads very hostile. :) The info is good, I was just having trouble getting it to parse from a file in a simple way.
@@WeeNiallism I didn't feel offended, no worries. MrHaki documented how to parse YAML from a file using YamlSlurper.parse() method - blog.mrhaki.com/2020/02/groovy-goodness-parse-yaml-with.html Alternatively, you can always read a file and pass its content to the YamlSlurper.parseText(). Both options are correct. I should mention it in the video, my bad. Cheers!
@@szymonstepniak Thank you sir! Subscribing.
@@WeeNiallism Thank Niall! I hope you will have a good time here. PS: call me Simon :-)