This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Incremental
Incremental

Hello, is it possible to add comments in YAML files ?

I tried with "#" but Builder is removing them each time I edit the file... Thanks

mjauvin
mjauvin

You are doing it right, I suppose the Builder plugin does not take care of preserving comments on updating the yaml file. You may submit a bug report if this is important to you, but I suspect it might not be trivial to persist comments.

mjauvin
mjauvin

Looks like a dead-end (The Symphony Yaml component is used by October Yaml parsing):

https://github.com/symfony/symfony/issues/22516

JenniferLopez
JenniferLopez

@Incremental the Builder does not retain comments as it rewrites the YAML file every time changes are made to them.

Incremental
Incremental

Thanks for your answers, the simplest is probably to keep a documentation with my developements ;-)

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.