looker-open-source / pylookml

A pythonic api for automatic lookml
https://pylookml.readthedocs.io/en/latest/introduction.html
MIT License
45 stars 23 forks source link

deletion of comments when using __str()__ #56

Open charlesthiebaut opened 3 years ago

charlesthiebaut commented 3 years ago

when using lookml.File(file).str() , the output file doesn't have the comments (line starting with #).

any idea how to keep them ?

russlooker commented 3 years ago

Hi @charlesthiebaut the current implementation does not preserve comments, due to a limitation of the underlying parser. Definitely keen on adding this however, I'll notify you as soon as I start on the project (likely a few weeks away)

charlesthiebaut commented 3 years ago

Hi @russlooker, great ! thanks, let me know when you have more vision.