`lsp-jt-run` not works
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start at the lsp-jt-run command and reproduce the reported wrong-type-argument hash-table-p nil error using the provided workspace/executeCommand trace. Determine why the vscode.java.test.junit.argument response is nil; done means the selected Java test runs successfully through the command.
Written by the indexing model from the issue text.
Description
Describe the bug
lsp-jt-run not works
Note
My environment Apple m2 pro, macOS 13.5.2 (22G91)
Emacs version is Emacs-plus 28 with-native-comp
To Reproduce
Try to execute command by key x or direct on M-x
and it returns message (wrong-type-argument hash-talbe-p nil)
Expected behavior
Test is run
Logs
Please include the debug stack trace (if there is an error) and the content of Messages buffer with lsp-print-io set to t in case the bug is related to client->server communication.
This is my lsp session
| |-[-] executeCommandProvider:
| | `-[X] commands: [vscode.java.checkProjectSettings vscode.java.isOnClasspath java.project.list vscode.java.fetchUsageData
java.navigate.openTypeHierarchy vscode.java.test.search.items.all java.edit.handlePasteEvent sts.java.hierarchy.supertypes
java.edit.stringFormatting sts.java.hierarchy.subtypes vscode.java.resolveMainClass vscode.java.test.search.location
vscode.java.buildWorkspace vscode.java.resolveJavaExecutable sts.java.type java.project.refreshDiagnostics
vscode.java.resolveInlineVariables java.project.listSourcePaths sts.java.search.packages java.project.getClasspaths
java.project.updateSourceAttachment vscode.java.resolveClasspath vscode.java.resolveBuildFiles java.decompile
vscode.java.resolveSourceUri vscode.java.test.search.items vscode.java.fetchPlatformSettings
java.project.resolveSourceAttachment sts.java.removeClasspathListener java.project.addToSourcePath
java.completion.onDidSelect vscode.java.startDebugSession java.project.import vscode.java.validateLaunchConfig
java.project.resolveStackTraceLocation vscode.java.test.junit.argument vscode.java.resolveMainMethod java.project.getSettings
java.project.resolveWorkspaceSymbol sts.java.addClasspathListener java.project.upgradeGradle java.project.createModuleInfo
vscode.java.test.get.testpath java.resolvePath sts.java.javadoc vscode.java.resolveElementAtSelection
vscode.java.test.search.codelens java.edit.organizeImports java.project.removeFromSourcePath sts.java.javadocHoverLink
java.project.getAll java.reloadBundles java.project.isTestFile sts.java.search.types vscode.java.resolveClassFilters
java.getPackageData java.navigate.resolveTypeHierarchy vscode.java.updateDebugSettings sts.java.location
java.protobuf.generateSources vscode.java.inferLaunchCommandLength]
[Trace - 12:53:31 PM] Sending request 'workspace/executeCommand - (251)'.
Params: {
"command": "vscode.java.test.junit.argument",
"arguments": [
"{\"classFullName\":\"my.lazyskulptor.commerce.repo.TxManagerTest\",\"scope\":4,\"testName\":\"verifyCommitIsCalled\",\"testKind\":1,\"project\":\"webflux-template-hb\",\"uri\":\"file:///Users/hyeonjunpark/Workspace/personal/webflux-template/src/test/java/my/lazyskulptor/commerce/repo/TxManagerTest.java\",\"start\":{\"line\":31,\"character\":9},\"end\":{\"line\":31,\"character\":29}}"
]
}
[Trace - 12:53:31 PM] Received response 'workspace/executeCommand - (251)' in 40ms.
Result: null
- Dominant language
- Emacs Lisp
- Stars
- 696
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from emacs-lsp/lsp-java
-
dap-java discards module paths from resolveClasspath causing JPMS-modular projects fail to launchOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in emacs-lsp/lsp-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ScoopInstaller/Extras#18848 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nuxt-modules/mcp-toolkit#364 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
chef/mixlib-shellout#287 ·