Wish Find all references with b4xlib

Alessandro71

Well-Known Member
Licensed User
Longtime User
I'm in the process of converting some shared modules of mine in b4xlib format.
I noticed that once a module is imported from a b4xlib file, the "Find all references" (F7) function doesn't work anymore: not only it doesn't find the identifier definition if it's an imported module, but also doesn't find any use of it in the project modules.
Bug, expected behavior, or my mistake?
 

klaus

Expert
Licensed User
Longtime User
I noticed that once a module is imported from a b4xlib file
What exactly do you mean with this?
A b4xlib is a library and no more a module.
So, if you select the b4xlib in the Library Manager Tab, you won't see the module any more.
So what have you done and what do you expect?
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
let me elaborate a little more:
i have a code module that is common to several projects, containing some constant declarations like
B4X:
Sub Process_Globals
    Public Const CAR_UNKNOWN As String = "Unknown"
End Sub
so i decided to move that module into a b4x library to be included in every project
as soon as i removed the code module and imported the b4xlib that contained it, the "Find all references" ceased to find the CAR_UNKNOWN occurences
i can still find them with a generic "Search", but it's not context aware, i.e. it finds commented lines also
 
Top