Comments (7)
@barrycarr
Thank you for creating this issue.
I'm sorry I can't reproduce your error.
Did you have more hints?
- Click on an existing python configuration
For example, Does the existing python configuration use poetry?
Also, Does the error happen again?
@cos18
Thank you for posting the error.
I guess the reason is not the same.
I might break the dependency on the plugin in the last commit.
Would you install this toml plugin?
from poetry-pycharm-plugin.
Installing the toml plugin
solves the issue for me!
from poetry-pycharm-plugin.
@incoggnito
Thank you for your report.
Also, I pushed version 1.0.6 that is a fixed version.
The version will be published while two business days.
from poetry-pycharm-plugin.
The latest version 1.0.7
has been published in the market.
The version solves this issue.
from poetry-pycharm-plugin.
I also have similar issue when initialize project in PyCharm. I'm working in Pycharm 2020.3.3 + M1 mac mini with macOS 11.2
stacktrace.txt
java.lang.NoClassDefFoundError: org/toml/lang/psi/TomlTableHeader
at com.koxudaxi.poetry.PoetryKt.tomlTableHeaderHasKey(poetry.kt:721)
at com.koxudaxi.poetry.PoetryKt.<clinit>(poetry.kt:722)
at com.koxudaxi.poetry.PoetrySdkProvider.getSdkAdditionalText(PoetrySdkProvider.kt:59)
at com.jetbrains.python.sdk.PySdkRenderingKt.name(PySdkRendering.kt:31)
at com.jetbrains.python.sdk.PySdkRenderingKt.name(PySdkRendering.kt:18)
at com.jetbrains.python.sdk.PySdkPopupFactory$Companion.nameInPopup(PySdkPopupFactory.kt:29)
at com.jetbrains.python.sdk.PySdkPopupFactory$Companion.descriptionInPopup(PySdkPopupFactory.kt:36)
at com.jetbrains.python.configuration.PySdkStatusBar.getWidgetState(PySdkStatusBar.kt:75)
at com.intellij.openapi.wm.impl.status.EditorBasedStatusBarPopup.lambda$update$2(EditorBasedStatusBarPopup.java:266)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:376)
at com.intellij.util.Alarm$Request.run(Alarm.java:362)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:220)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:324)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:85)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:134)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:190)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:501)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: org.toml.lang.psi.TomlTableHeader PluginClassLoader[PluginDescriptor(name=Poetry, id=com.koxudaxi.poetry, path=/Users/sunpark/Library/Application Support/JetBrains/PyCharm2020.3/plugins/poetry-pycharm-plugin, version=1.0.5)] com.intellij.ide.plugins.cl.PluginClassLoader@64d2e675
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:129)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 42 more
from poetry-pycharm-plugin.
@koxudaxi Hi, My issue occurred on run configuration for a python project that wasn't using poetry. We are in the process of moving over to poetry and I was in the process of creating a new poetry based run config when I discovered the issue. This was the first time I'd attempted to use your poetry plugin.
from poetry-pycharm-plugin.
@barrycarr
Thank you for posting the detail.
I watched your log. The error was happened by running poetry --version
to check the poetry version.
This plugin calls an external command on a 10-sec timeout.
But, poetry often is a slow response. The plugin might kill the poetry
command by timeout.
I have changed the timeout duration from 10-sec to 30-sec in version 1.0.6
.
If you always get the same error then, the reason probably is another one and I will investigate this problem again.
from poetry-pycharm-plugin.
Related Issues (20)
- Make it work with PyCharm 212.* HOT 4
- Extra dependencies set installation fails when done from the plugin HOT 2
- Creating poetry environment does not use specified version of Python HOT 3
- NoSuchMethodError: PySdkExtKt.getAssociatedModule(Module) in PyCharm 2021.2, update to new API HOT 2
- Explain how to attach the source code during development HOT 2
- Unsupported TomlTableHeader type HOT 1
- Add Run Configuration HOT 1
- Support PyCharm 2021.3 EAP HOT 4
- Add Python Interpreter Failed, missing module. HOT 3
- Update for DataSpell EAP 213 HOT 2
- Plugin error: Plugin 'Poetry' (version '1.1.5-212') is not compatible with the current version of the IDE, because it requires build 212.* or older but the current build is PC-213.4631.9
- 8:39 AM Plugin error: Plugin 'Poetry' (version '1.1.5-212') is not compatible with the current version of the IDE, because it requires build 212.* or older but the current build is PC-213.4631.9 HOT 7
- Invalid virtual environment detected because of escape sequences and colors (ANSICON env variable defined) HOT 2
- Plugin creates separate Poetry environment, although one already exists HOT 2
- Toml-plugin-dependent features not working HOT 1
- IDE Fatal Error after git pull. HOT 1
- Support for latest PyCharm release (build 213.5744.248) HOT 3
- Plugin 'Poetry' (version '1.1.5-212') is not compatible with the current version of the IDE, because it requires build 212.* or older but the current build is IU-213.5744.223 HOT 3
- Plugin Incompatible requires IDE build 212.* or later HOT 3
- Maybe this project should be archived? And pin an issue stating what has happened HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry-pycharm-plugin.