[Bug][python] This error "Not found: importCode" exists both on joern build 4.0.408 and build 4.0.423
Describe the bug I just noticed a relevant issue. I am also using Joern server but found Joern server did not work both on joern build 4.0.408 and build 4.0.423 (v4.0.342 worked). I found that the version of scalaReplPP is 0.5.3 in joern 4.0.342 and 0.6.1 from joern 4.0.408.
-- [E006] Not Found Error: ----------------------------------------------------- 1 |importCode("D:\package\device\sta\") |^^^^^^^^^^ |Not found: importCode
To Reproduce Steps to reproduce the behavior: cat run-joern.py
from cpgqls_client import CPGQLSClient, import_code_query, workspace_query
server_endpoint = "localhost:8080" client = CPGQLSClient(server_endpoint)
query = import_code_query("D:\package\device\sta\", "test-app") result = client.execute(query) print(result['stdout'])
Expected behavior importCode can work well as previous.
Screenshots
Desktop (please complete the following information):
- OS windows11
- Joern Version 4.0.408
- Java version openjdk 17 2021-09-14
Additional context Add any other context about the problem here.
Hmm, on linux this works fine... Will try to reproduce on my windows VM.
I cannot reproduce on windows either (with a locally staged version of master, i.e. sbt stage)
How exactly did you get and start joern?
related: https://github.com/joernio/website/pull/134