|
42 | 42 | - name: Check for errant util calls |
43 | 43 | run: make no-utils |
44 | 44 |
|
| 45 | + - name: Inspect Parser Environment (Pre-Test) |
| 46 | + run: | |
| 47 | + echo "=== Neovim Version ===" |
| 48 | + nvim --version | head -3 |
| 49 | + echo "" |
| 50 | + echo "=== System Info ===" |
| 51 | + uname -a |
| 52 | + gcc --version | head -1 |
| 53 | + echo "" |
| 54 | + echo "=== nvim-treesitter Git Info ===" |
| 55 | + cd $HOME/.local/share/nvim/lazy/nvim-treesitter |
| 56 | + git log --oneline -1 |
| 57 | + git describe --tags --always |
| 58 | + echo "" |
| 59 | + echo "=== Parser Directory State (Before Tests) ===" |
| 60 | + ls -lah $HOME/.local/share/nvim/lazy/nvim-treesitter/parser/ 2>&1 || echo "Parser directory does not exist yet" |
| 61 | +
|
45 | 62 | - name: Run Tests |
46 | 63 | run: make test |
47 | 64 |
|
| 65 | + - name: Inspect Parser Binaries (Post-Test) |
| 66 | + if: always() |
| 67 | + run: | |
| 68 | + echo "=== Parser Directory State (After Tests) ===" |
| 69 | + ls -lah $HOME/.local/share/nvim/lazy/nvim-treesitter/parser/ |
| 70 | + echo "" |
| 71 | + echo "=== Parser Binary Checksums ===" |
| 72 | + cd $HOME/.local/share/nvim/lazy/nvim-treesitter/parser/ |
| 73 | + for parser in *.so; do |
| 74 | + echo "File: $parser" |
| 75 | + ls -lh "$parser" |
| 76 | + md5sum "$parser" |
| 77 | + file "$parser" |
| 78 | + echo "" |
| 79 | + done |
| 80 | + echo "" |
| 81 | + echo "=== Dump TypeScript Test Tree Structure ===" |
| 82 | + cd $GITHUB_WORKSPACE |
| 83 | + nvim --headless -u tests/minimal_init.lua \ |
| 84 | + -c "edit tests/fixtures/typescript.ts" \ |
| 85 | + -c "lua vim.fn.cursor(121, 3)" \ |
| 86 | + -c "lua local node = vim.treesitter.get_node(); print('Current node at 121,3:'); print(' Type: ' .. node:type()); print(' Range: ' .. node:range()); local parent = node:parent(); if parent then print('Parent node:'); print(' Type: ' .. parent:type()); print(' Range: ' .. parent:range()) end" \ |
| 87 | + -c "qa!" 2>&1 || echo "Tree dump failed" |
| 88 | + echo "" |
| 89 | + echo "=== Dump Java Test Tree Structure ===" |
| 90 | + nvim --headless -u tests/minimal_init.lua \ |
| 91 | + -c "edit tests/fixtures/java.java" \ |
| 92 | + -c "lua vim.fn.cursor(31, 1)" \ |
| 93 | + -c "lua local node = vim.treesitter.get_node(); print('Current node at 31,1:'); print(' Type: ' .. node:type()); print(' Range: ' .. node:range()); local parent = node:parent(); if parent then print('Parent node:'); print(' Type: ' .. parent:type()); print(' Range: ' .. parent:range()) end" \ |
| 94 | + -c "qa!" 2>&1 || echo "Tree dump failed" |
| 95 | +
|
0 commit comments