compiledb icon indicating copy to clipboard operation
compiledb copied to clipboard

dir_stack.pop() IndexError: pop from empty list

Open Zero-Fanker opened this issue 6 years ago • 1 comments

when i tried to generator compile_commands.json from a makefile build log, it stopped and printed error :

compiledb\parser.py", line 127, in parse_build_log
    dir_stack.pop()
IndexError: pop from empty list

i added a few debug log myself , so the line number may not be accurate but close . btw, what does the number in "make[3]" , "make[5]" mean ? i think these numbers are not cared by compiledb yet .

Zero-Fanker avatar Oct 21 '19 03:10 Zero-Fanker

@Zero-Fanker Could you attach the build log?

The number is about the depth of recursion. You should get the point from https://stackoverflow.com/questions/27943149/what-does-numbers-in-make1-make2-make3-mean and https://stackoverflow.com/questions/12842469/makes-output-the-number-in-the-brackets.

lyonlh avatar Dec 04 '19 08:12 lyonlh