chocovon / debug-variable-extractor

IntelliJ IDEA plugin: Debug Variable Extractor
https://plugins.jetbrains.com/plugin/16362-debug-variable-extractor
6 stars 1 forks source link

Extraction to Java returns Error: com.intellij.debugger.engine.evaluation.EvaluateException: Initializer for 'str' has incompatible type #2

Open shme7ev opened 1 month ago

shme7ev commented 1 month ago

Error: com.intellij.debugger.engine.evaluation.EvaluateException: Initializer for 'str' has incompatible type

for any value in debugger

IntelliJ IDEA 2024.2.3 (Community Edition) Build #IC-242.23339.11, built on September 25, 2024 Runtime version: 21.0.4+13-b509.17 amd64 (JCEF 122.1.9) VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.awt.X11.XToolkit Linux 6.8.0-45-generic GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 14000M Cores: 16 Registry: ide.browser.jcef.sandbox.enable=false debugger.watches.in.variables=false debugger.attach.dialog.enabled=true ide.experimental.ui=true i18n.locale= editor.minimap.enabled=true terminal.new.ui.show.promotion=false Non-Bundled Plugins: org.jetbrains.plugins.workspace (242.22855.36) io.github.heyuch (0.2.0) com.codeium.intellij (1.20.9) com.antkorwin.unicoder (1.0) com.chylex.intellij.keeppopupswhiledebugging (1.1) org.jetbrains.jumpToLine (0.1.17) de.kontext_e.idea.plugins.autofill (1.3.2) Lombook Plugin (242.23339.11) org.exbin.deltahex.intellij (0.2.10.1) String Manipulation (9.14.1) com.linkkou.plugin.intellij.assistant.mybaitslog (5.0.8.2) awesome.console (0.1337.12) izhangzhihao.rainbow.brackets (2024.2.6-241) com.suusan2go.kotlin-fill-class (1.0.23) cn.bestwu.gdph (0.1.11) com.intellij.jira (4.9.0) zielu.gittoolbox (600.0.2+242) mobi.hsz.idea.gitignore (4.5.3) com.github.chocovon.debug-variable-extractor (2.4.0) com.jetbrains.evaluation.scratcher (1.6-SNAPSHOT) com.obroom.plugin.toolset (2024.8.1) Kotlin: 242.23339.11-IJ Current Desktop: ubuntu:GNOME

chocovon commented 1 month ago

Thank you for your issue report. However, the project is untouched for a year and I got problem to build the plugin in my new machine. So it may take some time to figure out what's going on.

If my memory not went wrong, in [ USER_HOME/.IntelliJPlugin/DebuggerVariableSaveLoader/ ] folder you may find the error log file which records the error stack trace. It could help me a lot if you can provide it here.

shme7ev commented 1 month ago

Sorry I don't have any directories called IntelliJPlugin or DebuggerVariable*. BTW, I am using DebuggerVariableExtractor. DebuggerVariableSaveLoader doesn't even generate json.

chocovon commented 1 month ago

Ok, my bad.

hza commented 1 month ago

I have sent a pull request to debug-variable-sl , but some things are not ready