neueda / jetbrains-plugin-graph-database-support

Graph Databases support for JetBrains family IDEs.
Apache License 2.0
222 stars 56 forks source link

String Index Error #82

Closed kryptn closed 6 years ago

kryptn commented 6 years ago

Error message: String index out of range: 59

Details: https://gist.github.com/kryptn/05f55ff3e422ee1297176385931a23f0

Steps I took:

Errors continuously until the IDE starts to ignore them, though any queries still run if valid.

skibish commented 6 years ago

Hi @kryptn,

Could you list, what files you have in ~/.intellij/graphdb/config/consoles/graphdb-editors, please?

What version of plugin do you use?

sergejskovtuns commented 6 years ago

Hello @kryptn,

It seems like you have an error in GraphDatabaseSupport_DataSourcesState.xml file in your .idea folder in the project. Plugin is extracting uuid from data source tag and it seems like it is not uuid.

kryptn commented 6 years ago

Thank you for the response!

@sergejskovtuns It seems like a valid UUID, but here's the contents of that file Here's GraphDatabaseSupport_DataSourcesState.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="GraphDatabaseSupport.DataSourcesState">
    <option name="containerV1">
      <DataSourceContainerV1>
        <option name="dataSources">
          <list>
            <DataSourceV1>
              <option name="uuid" value="8a9cc7e8-d611-4033-8962-5d81a41a2053" />
              <option name="name" value="a graph test" />
              <option name="dataSourceType" value="NEO4J_BOLT" />
              <option name="configuration">
                <map>
                  <entry key="host" value="localhost" />
                  <entry key="password" value="password" />
                  <entry key="port" value="7687" />
                  <entry key="user" value="neo4j" />
                </map>
              </option>
            </DataSourceV1>
          </list>
        </option>
      </DataSourceContainerV1>
    </option>
  </component>
</project>

@skibish

PyCharm2018.1/consoles/graphdb-editors
•100% λ pwd
/Users/david.bibb/Library/Preferences/PyCharm2018.1/consoles/graphdb-editors

PyCharm2018.1/consoles/graphdb-editors
•100% λ ls
total 40
-rw-r--r--  1 david.bibb  staff   309B May 27 17:36 graphdbBoundDataSource-0426a6b8-9de2-4437-baae-ba4f56109199.cypher
-rw-r--r--  1 david.bibb  staff     0B Jun 11 09:18 graphdbBoundDataSource-8a9cc7e8-d611-4033-8962-5d81a41a2053.cypher
-rw-r--r--  1 david.bibb  staff   5.8K Jun  6 16:59 graphdbBoundDataSource-a0387fba-e9ea-448a-9ca4-e56b27d6ce53.cypher
-rw-r--r--  1 david.bibb  staff   204B Jun  6 16:13 graphdbBoundDataSource-c22d3924-41ad-46e1-9787-7171218e02d4.cypher
-rw-r--r--  1 david.bibb  staff   1.4K Jun  1 16:34 graphdbBoundDataSource-ebbf06e0-b630-4aab-a214-e55f2b1e1917.cypher

Graph Database Support v 2.5.0

PyCharm 2018.1.4 (Professional Edition)
Build #PY-181.5087.37, built on May 24, 2018
Licensed to David Bibb
Subscription is active until August 26, 2018
JRE: 1.8.0_152-release-1136-b39 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.5

Thanks for the help!