BBx-Kitchen / bbj-language-server

BBj Language Server
MIT License
6 stars 6 forks source link

Read Java classpath config file and load all the classes into scope #3

Closed dhuebner closed 1 year ago

dhuebner commented 1 year ago

Note: Consider to change the JavaClass type so that it contains only members instead of fields and methods, similar to BbjClasses.

dhuebner commented 1 year ago

@StephanWald In the BBj.properties file there is an entry pointing to bbj_internal classpath: basis.classpath.bbj_default=(bbj_internal)

The entry for bbj_internal is not listed. Could your provide a list of jars that should be in? I suppose they are located in the ~/BBJ/lib/ ?

StephanWald commented 1 year ago
dhuebner commented 1 year ago

@StephanWald Thanks for detailed explanation!

BBjAPI() has to be hardcoded, it's a built-in scalar / factory method that is wired to the interpreter and not directly available from a JAR

Sounds like the BBjAPI can be described with BBj Classes and Methods. If so, this looks for me like another good use case for the built-in library approach. I will open a new Issue for that.

StephanWald commented 1 year ago

The return object you get from BBjAPI in turn returns types that can be found in one of the JARs mentioned. It's just that the factory method is hardcoded and does not need a use statement (and is itself not coming with a package)

It returns com.basis.bbj.proxies.BBjAPI

dhuebner commented 1 year ago

I think we can close this one