ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
MIT License
539 stars 129 forks source link

Supporting yaml key value pairs #124

Closed razilevin closed 3 years ago

razilevin commented 3 years ago

Hello,

I know your plugin supports yaml file format. It works when the structure is flat

server.port: "9090"
elastic.search.products.index: products-current
management.server.port: "8082"
spring.cloud.config.enabled: "true"

But fails with a class cast exception LinkedHashMap cannot be cast to String when I use yaml key value pairs.

server:
  port: "9090"

Makes sense when you think about it just wondering if I am missing something.

Thank You

ashald commented 3 years ago

What would an expected behavior in your opinion in this case?

server="port: 9090"

or

server.port="9090"

?

What if there are some lists in the yaml? That is to say that it seems that there are some edge cases that might complicate this. If we can define a strategy how we want handle it, so that it provides a consistent experience, I'd be open to such a feature.

The caveat though, recently I don't have much time for OSS activity, unfortunately. That being said, I don't want to abandon this plugin either. I hope to find some time review recent contributions in the next few months.

ashald commented 3 years ago

No response from requestor - closing. Please feel free to reopen once you're ready to answer above questions.