Title: bug: assertion failed! in result-parser.lua when running tests · Issue #474 · nvim-java/nvim-java · GitHub
Open Graph Title: bug: assertion failed! in result-parser.lua when running tests · Issue #474 · nvim-java/nvim-java
X Title: bug: assertion failed! in result-parser.lua when running tests · Issue #474 · nvim-java/nvim-java
Description: Did you check docs and existing issues? I have read all the plugin docs I have searched the existing issues I have searched the existing issues of plugins related to this issue Neovim version (nvim -v) v0.12.0-dev Operating system/versio...
Open Graph Description: Did you check docs and existing issues? I have read all the plugin docs I have searched the existing issues I have searched the existing issues of plugins related to this issue Neovim version (nvim...
X Description: Did you check docs and existing issues? I have read all the plugin docs I have searched the existing issues I have searched the existing issues of plugins related to this issue Neovim version (nvim...
Opengraph URL: https://github.com/nvim-java/nvim-java/issues/474
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: assertion failed! in result-parser.lua when running tests","articleBody":"### Did you check docs and existing issues?\n\n- [x] I have read all the plugin docs\n- [x] I have searched the existing issues\n- [x] I have searched the existing issues of plugins related to this issue\n\n### Neovim version (nvim -v)\n\n v0.12.0-dev\n\n### Operating system/version\n\nUbuntu 25.10\n\n### Describe the bug\n\nWhen running a test using nvim-java's test runner, I get an assertion error in the result parser:\n\n```\nvim.schedule callback: ...lugged/nvim-java/lua/java-test/results/result-parser.lua:123: assertion failed!\nstack traceback:\n [C]: in function 'assert'\n ...lugged/nvim-java/lua/java-test/results/result-parser.lua:123: in function \u003c...lugged/nvim-java/lua/java-test/results/result-parser.lua:120\u003e\n ...lugged/nvim-java/lua/java-test/results/result-parser.lua:58: in function 'parse'\n ...i/.vim/plugged/nvim-java/lua/java-test/reports/junit.\n```\n\nThe error occurs at line 123 in result-parser.lua:\n\n```\nfunction TestParser:parse_test_failed(data, line_iter)\n\tlocal test_id = tonumber(data[1])\n\tlocal node = self:find_result_node(test_id)\n\tassert(node) -- \u003c-- fails here\n```\n\nIt appears that find_result_node returns nil for a test ID that was reported in the test output but wasn't registered during test discovery.\n\n### Steps To Reproduce\n\n1. Open a Java test file\n2. Run :JavaTestRunCurrentMethod (or equivalent test command)\n3. Observe the assertion error\n4. Expected behavior:\n\n### Expected Behavior\n\nThe test should run and display results without crashing.","author":{"url":"https://github.com/GCorbel","@type":"Person","name":"GCorbel"},"datePublished":"2026-01-30T17:44:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/474/nvim-java/issues/474"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c7d91d64-739b-13fa-7174-43315815918a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89A4:20A736:1D4BEDC:259298E:69927C5B |
| html-safe-nonce | 62818cdc576fcfd41b0efa1b7802e23344aa16e823cfa1aa6553e98f3754be05 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUE0OjIwQTczNjoxRDRCRURDOjI1OTI5OEU6Njk5MjdDNUIiLCJ2aXNpdG9yX2lkIjoiNjExMTMzNzM2MTI3ODQwMTYyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f7767fe6f0f028bd379b59ab6483c24f5cf4d2621d8dbe6e688fb7a59b6c9934 |
| hovercard-subject-tag | issue:3876724291 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nvim-java/nvim-java/474/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7bda6b56f65fe826614fc091c5a0d71c4e75a698467c89d497bd798e558cd9a/nvim-java/nvim-java/issues/474 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7bda6b56f65fe826614fc091c5a0d71c4e75a698467c89d497bd798e558cd9a/nvim-java/nvim-java/issues/474 |
| og:image:alt | Did you check docs and existing issues? I have read all the plugin docs I have searched the existing issues I have searched the existing issues of plugins related to this issue Neovim version (nvim... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GCorbel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/nvim-java/nvim-java git https://github.com/nvim-java/nvim-java.git |
| octolytics-dimension-user_id | 150328080 |
| octolytics-dimension-user_login | nvim-java |
| octolytics-dimension-repository_id | 717003987 |
| octolytics-dimension-repository_nwo | nvim-java/nvim-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 717003987 |
| octolytics-dimension-repository_network_root_nwo | nvim-java/nvim-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width