Skip to content

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

@refergit

Description

@refergit

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions