docker-compose interpreter error - Java Exception
已回答
Trying to create a remote docker-compose interpreter is resulting in the exception:
Can not deserialize instance of java.lang.String out of START_OBJECT
token at [Source: N/A; line: -1, column: -1] (through reference chain:
com.intellij.docker.compose.configuration.beans.v2.DockerComposeConfigurationV2["services"]->java.util.LinkedHashMap["<project name>"]->com.intellij.docker.compose.configuration.beans.v2.DockerComposeServiceV2["volumes"]->java.util.ArrayList[0])
The exception is happening with version 2018.1.1 on OSX El Capitan. Any ideas?
I checked the issue tracker, and my docker-compose file has no depends_on statements.
请先登录再写评论。
Hi,
What syntax do you use to describe volumes in your docker-compose configuration file? PyCharm supports the short syntax and it does not yet support the extended syntax with individual type, source, target and volume properties unfortunately.
Thank-you very much for that detail! We are using the type, source, and target on the volumes. I will look into the short syntax for my own development.
Where might there current capabilities of PyCharm <-> Docker-Compose be listed so that I can avoid other syntax not currently supported?
What's the answer to this question?
Similar error, but mine is on the PORT of my NGINX Service definition
here is my docker-compose file
Meh.... just found on the link that @Alexander Koshevoy that the "TARGET" is supposed to be a LONG SYNTAX... now I wonder when would IntelliJ / PyCharm support long docker-compose syntax....