joern icon indicating copy to clipboard operation
joern copied to clipboard

[Bug][python] This error "Not found: importCode" exists both on joern build 4.0.408 and build 4.0.423

Open refergit opened this issue 3 months ago • 3 comments

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 Image

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.

refergit avatar Oct 10 '25 04:10 refergit

Hmm, on linux this works fine... Will try to reproduce on my windows VM.

mpollmeier avatar Oct 13 '25 11:10 mpollmeier

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?

mpollmeier avatar Oct 13 '25 12:10 mpollmeier

related: https://github.com/joernio/website/pull/134

mpollmeier avatar Oct 13 '25 12:10 mpollmeier