BBx-Kitchen / bbj-language-server

BBj Language Server
MIT License
7 stars 6 forks source link

BBjServletContext not known #129

Closed StephanWald closed 1 month ago

StephanWald commented 4 months ago

See https://documentation.basis.cloud/BASISHelp/WebHelp/bbjobjects/BBxServlet/BBxServlet/BBxServlet.htm

CLASS PUBLIC ExampleServlet  
    method public void service(BBxServletContext context!) 

        request! = context!.getRequest()
        response! = context!.getResponse()
        session! = request!.getSession()

        s! = response!.getOutputStream()
        s!.write("<html>")
        s!.write("<body>")
        s!.write("<h1>This will print</h1>")
        s!.write("</body>")
        s!.write("</html>")

    METHODEND
CLASSEND
minionhub commented 4 months ago

@StephanWald what communication tools are you using?

StephanWald commented 1 month ago

Adding the USE statement fixes the issue. To be checked: why is this class not recognized in the Classpath? Is it part of BBjInternal? It's contained in BBj.jar.

use com.basis.bbj.proxies.servlet.BBxServletContext
dhuebner commented 1 month ago

@StephanWald com.basis.bbj.proxies.servlet is not registered as implicit package import. Following packages are currently implicitly imported: 'com.basis.startup.type', 'com.basis.bbj.proxies', 'com.basis.bbj.proxies.sysgui', 'com.basis.bbj.proxies.event', 'com.basis.startup.type.sysgui'

Should com.basis.bbj.proxies.servlet and maybe some additional packages be added as implicit imports?

StephanWald commented 1 month ago

Yes it should be added. Where are these implicit imports defined?

dhuebner commented 1 month ago

@StephanWald In the JavaInteropService here.