koxudaxi / poetry-pycharm-plugin

A PyCharm plugin for poetry

Home Page:https://koxudaxi.github.io/poetry-pycharm-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No reaction starting a new project

incoggnito opened this issue · comments

Describe the bug
Start pycharm click to add a new project nothing happens.
Same is behaviour in Linux and Windows.
Poetry is currently the only plugin.

Screenshots
image

Environments (please complete the following information):

  • IDE: PyCharm Community 2020.3.3-1
  • OS: ArchLinux or Windows 10
  • Poetry Version 1.1.4
  • Plugin version 1.0.5

@incoggnito
Thank you for creating this issue.
I just checked your log.
But, I can't found poetry error without the last line.
I guess stack trace should show us the factor of error like #175.
Did you get the same error when you uninstall the poetry plugin?

Thank you for fast response.

Here using grep "poetry" on the stdout.

	at com.koxudaxi.poetry.PoetryKt.tomlTableHeaderHasKey(poetry.kt:721)
	at com.koxudaxi.poetry.PoetryKt.<clinit>(poetry.kt:722)
	at com.koxudaxi.poetry.PyAddNewPoetryPanel.<init>(PyAddNewPoetryPanel.kt:56)
	at com.koxudaxi.poetry.PoetrySdkProvider.createNewEnvironmentPanel(PoetrySdkProvider.kt:56)
Caused by: java.lang.ClassNotFoundException: org.toml.lang.psi.TomlTableHeader PluginClassLoader[PluginDescriptor(name=Poetry, id=com.koxudaxi.poetry, path=/home/inco/.local/share/JetBrains/PyCharmCE2020.3/poetry-pycharm-plugin, version=1.0.5)] com.intellij.ide.plugins.cl.PluginClassLoader@2c7eb65c
2021-02-09 08:12:21,068 [   5558]  ERROR - pplication.impl.LaterInvocator - Could not initialize class com.koxudaxi.poetry.PoetryKt
java.lang.NoClassDefFoundError: Could not initialize class com.koxudaxi.poetry.PoetryKt
	at com.koxudaxi.poetry.PoetrySdkProvider.getSdkAdditionalText(PoetrySdkProvider.kt:59)
2021-02-09 08:12:21,070 [   5560]  ERROR - pplication.impl.LaterInvocator - Could not initialize class com.koxudaxi.poetry.PoetryKt
java.lang.NoClassDefFoundError: Could not initialize class com.koxudaxi.poetry.PoetryKt
	at com.koxudaxi.poetry.PoetrySdkProvider.getSdkAdditionalText(PoetrySdkProvider.kt:59)

I already have a systemwide version of poetry installed on both systems. How does the plugin use poetry?
Edit: I don't get the error when uninstalling the poetry plugin

I confirmed your error.
The error is the same error in #175
I have closed this issue as a duplicated issue.

Thank you very much!!