Closed walwan closed 1 year ago
You should add `include "sys_defs.svh"
in your if_stage.sv
file, or the indexer won't find where the definition is.
Adding definition file in the source file also fixes the error that Verilator can't find your `XLEN
macro.
Before: After:
Thank u very much.
Hi: I encountered this problem in a project organized like this
If I try to find the definition of a module in if_stage.sv from id_stage.sv, it can find it. However, if I try to find a definition of a macro in sys_def.svh from either if_stage.sv or id_stage.sv, it can't find it.
My environment is
Here is a small example project having this problem: poc.tar.gz. I noticed one error message from the communication between coc.nvim and the language server:
Thanks, walwan