Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin action not activated (grayed out) #32

Closed
gesmit74 opened this issue Jul 8, 2024 · 6 comments · Fixed by #33
Closed

Plugin action not activated (grayed out) #32

gesmit74 opened this issue Jul 8, 2024 · 6 comments · Fixed by #33

Comments

@gesmit74
Copy link

gesmit74 commented Jul 8, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

open kcl file, right mouse click

2. What did you expect to see? (Required)

working action for kcl files

3. What did you see instead (Required)

Grayed out action for KCL files

4. What is your KCL components version? (Required)

0.1.18

Only syntax highlight seems to be working, no coding assistance, auto-complete
In my idea.log:

2024-07-08 11:43:38,339 [3351812] SEVERE - #io.kusionstack.kcl.action.FormatDirectoryAction - ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'io.kusionstack.kcl.action.FormatDirectoryAction' must override getActionUpdateThread() and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: io.kusionstack.kcl]
com.intellij.diagnostic.PluginException: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'io.kusionstack.kcl.action.FormatDirectoryAction' must override getActionUpdateThread() and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: io.kusionstack.kcl]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)
at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21)
at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:199)
2024-07-08 11:43:38,339 [3351812] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'io.kusionstack.kcl.action.FormatSingleFileAction' must override getActionUpdateThread() and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: io.kusionstack.kcl]
com.intellij.diagnostic.PluginException: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'io.kusionstack.kcl.action.FormatSingleFileAction' must override getActionUpdateThread() and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: io.kusionstack.kcl]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)
at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21)
at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:199)
2024-07-08 11:43:38,385 [3351858] SEVERE - #io.kusionstack.kcl.action.FormatDirectoryAction - PhpStorm 2024.1.4 Build #PS-241.18034.69
2024-07-08 11:43:38,385 [3351858] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - PhpStorm 2024.1.4 Build #PS-241.18034.69
2024-07-08 11:43:38,385 [3351858] SEVERE - #io.kusionstack.kcl.action.FormatDirectoryAction - JDK: 17.0.11; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-07-08 11:43:38,385 [3351858] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - JDK: 17.0.11; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-07-08 11:43:38,386 [3351859] SEVERE - #io.kusionstack.kcl.action.FormatDirectoryAction - OS: Linux
2024-07-08 11:43:38,386 [3351859] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - OS: Linux
2024-07-08 11:43:38,386 [3351859] SEVERE - #io.kusionstack.kcl.action.FormatDirectoryAction - Plugin to blame: KCL version: 0.1.18
2024-07-08 11:43:38,386 [3351859] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - Plugin to blame: KCL version: 0.1.18
2024-07-08 11:43:38,387 [3351860] SEVERE - #io.kusionstack.kcl.action.FormatDirectoryAction - Last Action: Back
2024-07-08 11:43:38,387 [3351860] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - Last Action: Back
2024-07-08 11:43:38,556 [3352029] INFO - #io.kusionstack.kcl.util.KCLBinaryUtil - KCL command kcl location: /usr/local/bin/kcl
2024-07-08 11:43:41,071 [3354544] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'io.kusionstack.kcl.action.FormatSingleFileAction' must override getActionUpdateThread() and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: io.kusionstack.kcl]
com.intellij.diagnostic.PluginException: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'io.kusionstack.kcl.action.FormatSingleFileAction' must override getActionUpdateThread() and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: io.kusionstack.kcl]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)
at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21)
at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:199)
2024-07-08 11:43:41,072 [3354545] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - PhpStorm 2024.1.4 Build #PS-241.18034.69
2024-07-08 11:43:41,072 [3354545] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - JDK: 17.0.11; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-07-08 11:43:41,073 [3354546] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - OS: Linux
2024-07-08 11:43:41,073 [3354546] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - Plugin to blame: KCL version: 0.1.18
2024-07-08 11:43:41,073 [3354546] SEVERE - #io.kusionstack.kcl.action.FormatSingleFileAction - Last Action: Back

@Peefy
Copy link
Contributor

Peefy commented Jul 8, 2024

cc @He1pa

@He1pa
Copy link
Contributor

He1pa commented Jul 8, 2024

Sorry, what is your Intellij version?

@gesmit74
Copy link
Author

gesmit74 commented Jul 8, 2024

PhpStorm 2024.1.4 Build #PS-241.18034.69
Plugin to blame: KCL version: 0.1.18
KCL command kcl location: /usr/local/bin/kcl

@He1pa
Copy link
Contributor

He1pa commented Jul 9, 2024

I am trying to fix this problem. In addition, PhpStorm can try to use this https://github.com/kcl-lang/intellij-kcl-lsp, you can search KCL-LSP in the marketplace to get it

@gesmit74
Copy link
Author

gesmit74 commented Jul 9, 2024

Thanks for the suggestion. Result is almost the same, no formatting ( also grayed out ) and some suggestions but mostly unusable. File and folder structure is not recognized / read, so almost everything is marked invalid

In the logfile there are a lot of line with: KCLLspServerDescriptor@k8s(Running;5): window/logMessage Info: Hover definition not found

@He1pa He1pa mentioned this issue Jul 10, 2024
16 tasks
@He1pa
Copy link
Contributor

He1pa commented Jul 10, 2024

@gesmit74 hi, I have fixed this issue in #33 and uploaded a new version to the plugin market. But according to experience, it usually takes two business days for the review to be approved.

@Peefy Peefy closed this as completed in #33 Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants