Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I use the --script option in Joern, Joern throws an error: java.lang.AssertionError: error while parsing command line arguments. #5214

Open
GreenteckBoogie opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@GreenteckBoogie
Copy link

I hope to run my Scala script using the --script parameter of the compiled Joern program in a Windows environment, but the program throws a java.lang.AssertionError: error while parsing command line arguments. Based on the error message, I suspect that the cause of the error is that the length of the executed Java command exceeds the limit allowed by jvm or scala, resulting in the command not being parsed correctly. However, I am unsure how to resolve this issue. I have tried switching between multiple versions of JDK(17/21/23), Scala(3.6.2), and SBT(1.10.2/1.10.7), but none of these solutions have worked. I would greatly appreciate any guidance you can provide. Thank you very much!

Desktop
-jdk
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Corretto-21.0.4.7.1 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Corretto-21.0.4.7.1 (build 21.0.4+7-LTS, mixed mode, sharing)

-sbt
sbt version in this project: 1.10.2
sbt script version: 1.10.2

-scala
Scala code runner version: 1.5.4
Scala version (default): 3.6.2

-OS
Microsoft Windows 11 x64

commandline:
.\joern.bat --script test.sc

test.sc:
`import java.io.File

@main def main() = {
println("Hello, world!")
}`

error:
Error: Unknown argument 'project.' Error: Unknown argument 'Resources' Error: Unknown argument 'are' Error: Unknown argument 'freed' Error: Unknown argument 'but' Error: Unknown argument 'the' Error: Unknown argument 'project' Error: Unknown argument 'remains' Error: Unknown argument 'on' Error: Unknown argument 'disk. --runBefore The' Error: Unknown argument 'project' Error: Unknown argument 'remains' Error: Unknown argument 'active,' Error: Unknown argument 'that' Error: Unknown argument 'is,' Error: Unknown argument 'calling' Error: Unknown argument 'cpg' Error: Unknown argument 'now' Error: Unknown argument 'raises' Error: Unknown argument 'an --runBefore exception.' Error: Unknown argument 'A' Error: Unknown argument 'different' Error: Unknown argument 'project' Error: Unknown argument 'can' Error: Unknown argument 'now' Error: Unknown argument 'be' Error: Unknown argument 'activated' Error: Unknown argument 'using' Error: Unknown argument 'open."' Error: Unknown argument 'and' Error: Unknown argument 'reopen' Error: Unknown argument 'all' Error: Unknown argument 'loaded' Error: Unknown argument 'CPGs.' Error: Unknown argument 'This' Error: Unknown argument 'ensures --runBefore that' Error: Unknown argument 'changes' Error: Unknown argument 'have' Error: Unknown argument 'been' Error: Unknown argument 'flushed' Error: Unknown argument 'to' Error: Unknown argument 'disk. --runBefore " --runBefore Returns' Error: Unknown argument 'list' Error: Unknown argument 'of' Error: Unknown argument 'affected' Error: Unknown argument 'projects"' Error: Unknown argument 'the' Error: Unknown argument 'project' Error: Unknown argument 'named' Error: Unknown argument 'name' Error: Unknown argument 'and' Error: Unknown argument 'make' Error: Unknown argument 'it' Error: Unknown argument 'the' Error: Unknown argument 'active' Error: Unknown argument 'project. --runBefore If' Error: Unknown argument 'name' Error: Unknown argument 'is' Error: Unknown argument 'not' Error: Unknown argument 'provided,' Error: Unknown argument 'the' Error: Unknown argument 'active' Error: Unknown argument 'project' Error: Unknown argument 'is' Error: Unknown argument 'opened.' Error: Unknown argument 'If' Error: Unknown argument 'name --runBefore is' Error: Unknown argument 'a' Error: Unknown argument 'path,' Error: Unknown argument 'the' Error: Unknown argument 'project' Error: Unknown argument 'name' Error: Unknown argument 'is' Error: Unknown argument 'derived' Error: Unknown argument 'from' Error: Unknown argument 'and' Error: Unknown argument 'a' Error: Unknown argument 'deprecation --runBefore warning' Error: Unknown argument 'is' Error: Unknown argument 'printed. --runBefore " --runBefore Upon' Error: Unknown argument 'completion' Error: Unknown argument 'of' Error: Unknown argument 'this' Error: Unknown argument 'operation,' Error: Unknown argument 'the' Error: Unknown argument 'CPG' Error: Unknown argument 'stored' Error: Unknown argument 'in' Error: Unknown argument 'this' Error: Unknown argument 'project --runBefore can' Error: Unknown argument 'be' Error: Unknown argument 'queried' Error: Unknown argument 'via' Error: Unknown argument 'cpg.' Error: Unknown argument 'Returns' Error: Unknown argument 'an' Error: Unknown argument 'optional' Error: Unknown argument 'reference' Error: Unknown argument 'to' Error: Unknown argument 'the --runBefore project,' Error: Unknown argument 'which' Error: Unknown argument 'is' Error: Unknown argument 'empty' Error: Unknown argument 'on' Error: Unknown argument 'error."' Error: Unknown argument 'auditing' Error: Unknown argument 'projects' Error: Unknown argument 'are' Error: Unknown argument 'stored' Error: Unknown argument 'in' Error: Unknown argument 'a' Error: Unknown argument 'workspace' Error: Unknown argument 'directory,' Error: Unknown argument 'and' Error: Unknown argument 'workspace --runBefore provides' Error: Unknown argument 'programmatic' Error: Unknown argument 'access' Error: Unknown argument 'to' Error: Unknown argument 'this' Error: Unknown argument 'directory.' Error: Unknown argument 'Entering' Error: Unknown argument 'workspace' Error: Unknown argument 'provides --runBefore a' Error: Unknown argument 'list' Error: Unknown argument 'of' Error: Unknown argument 'all' Error: Unknown argument 'projects,' Error: Unknown argument 'indicating' Error: Unknown argument 'which' Error: Unknown argument 'code' Error: Unknown argument 'the' Error: Unknown argument 'project' Error: Unknown argument 'makes' Error: Unknown argument 'accessible, --runBefore whether' Error: Unknown argument 'the' Error: Unknown argument 'project' Error: Unknown argument 'is' Error: Unknown argument 'open,' Error: Unknown argument 'and' Error: Unknown argument 'which' Error: Unknown argument 'analyzers' Error: Unknown argument 'have' Error: Unknown argument 'been' Error: Unknown argument 'run' Error: Unknown argument 'to' Error: Unknown argument 'produce' Error: Unknown argument 'it. --runBefore Multiple' Error: Unknown argument 'projects' Error: Unknown argument 'can' Error: Unknown argument 'be' Error: Unknown argument 'open' Error: Unknown argument 'at' Error: Unknown argument 'any' Error: Unknown argument 'given' Error: Unknown argument 'time,' Error: Unknown argument 'however,' Error: Unknown argument 'only' Error: Unknown argument 'one' Error: Unknown argument 'project --runBefore can' Error: Unknown argument 'be' Error: Unknown argument 'active.' Error: Unknown argument 'Queries' Error: Unknown argument 'and' Error: Unknown argument 'edit-operations' Error: Unknown argument 'are' Error: Unknown argument 'executed' Error: Unknown argument 'on' Error: Unknown argument 'the' Error: Unknown argument 'active' Error: Unknown argument 'project --runBefore only. --runBefore " --runBefore Operations --runBefore " --runBefore ---------- --runBefore " --runBefore workspace' Error: Unknown argument 'provides' Error: Unknown argument 'low-level' Error: Unknown argument 'access' Error: Unknown argument 'to' Error: Unknown argument 'the' Error: Unknown argument 'workspace' Error: Unknown argument 'directory.' Error: Unknown argument 'In' Error: Unknown argument 'most' Error: Unknown argument 'cases, --runBefore it' Error: Unknown argument 'is' Error: Unknown argument 'a' Error: Unknown argument 'better' Error: Unknown argument 'idea' Error: Unknown argument 'to' Error: Unknown argument 'use' Error: Unknown argument 'higher-level' Error: Unknown argument 'operations' Error: Unknown argument 'such' Error: Unknown argument 'as' Error: Unknown argument 'importCode,' Error: Unknown argument 'open, --runBefore close,' Error: Unknown argument 'and' Error: Unknown argument 'delete,' Error: Unknown argument 'which' Error: Unknown argument 'make' Error: Unknown argument 'use' Error: Unknown argument 'of' Error: Unknown argument 'workspace' Error: Unknown argument 'operations' Error: Unknown argument 'internally. --runBefore " --runBefore *' Error: Unknown argument 'workspace.open([name]):' Error: Unknown argument 'open' Error: Unknown argument 'project' Error: Unknown argument 'by' Error: Unknown argument 'name' Error: Unknown argument 'and' Error: Unknown argument 'make' Error: Unknown argument 'it' Error: Unknown argument 'the' Error: Unknown argument 'active' Error: Unknown argument 'project. --runBefore ' Error: Unknown argument 'If' Error: Unknown argument 'name' Error: Unknown argument 'is' Error: Unknown argument 'omitted,' Error: Unknown argument 'the' Error: Unknown argument 'last' Error: Unknown argument 'project' Error: Unknown argument 'in' Error: Unknown argument 'the' Error: Unknown argument 'workspace' Error: Unknown argument 'list' Error: Unknown argument 'is' Error: Unknown argument 'opened.' Error: Unknown argument 'If --runBefore ' Error: Unknown argument 'the' Error: Unknown argument 'project' Error: Unknown argument 'is' Error: Unknown argument 'already' Error: Unknown argument 'open,' Error: Unknown argument 'this' Error: Unknown argument 'has' Error: Unknown argument 'the' Error: Unknown argument 'same' Error: Unknown argument 'effect' Error: Unknown argument 'as' Error: Unknown argument 'workspace.setActiveProject([name]) --runBefore " --runBefore *' Error: Unknown argument 'workspace.close([name]):' Error: Unknown argument 'close' Error: Unknown argument 'project' Error: Unknown argument 'by' Error: Unknown argument 'name.' Error: Unknown argument 'Does' Error: Unknown argument 'not' Error: Unknown argument 'remove' Error: Unknown argument 'the' Error: Unknown argument 'project. --runBefore " --runBefore *' Error: Unknown argument 'workspace.remove([name]):' Error: Unknown argument 'close' Error: Unknown argument 'and' Error: Unknown argument 'remove' Error: Unknown argument 'project' Error: Unknown argument 'by' Error: Unknown argument 'name. --runBefore " --runBefore *' Error: Unknown argument 'workspace.reset:' Error: Unknown argument 'create' Error: Unknown argument 'a' Error: Unknown argument 'fresh' Error: Unknown argument 'workspace' Error: Unknown argument 'directory,' Error: Unknown argument 'deleting' Error: Unknown argument 'the' Error: Unknown argument 'current --runBefore workspace' Error: Unknown argument 'directory"' Error: Unknown argument '[projectName],' Error: Unknown argument '[namespaces],' Error: Unknown argument '[language]) --runBefore " --runBefore Type' Error: Unknown argument 'importCode' Error: Unknown argument 'alone' Error: Unknown argument 'to' Error: Unknown argument 'get' Error: Unknown argument 'a' Error: Unknown argument 'list' Error: Unknown argument 'of' Error: Unknown argument 'all' Error: Unknown argument 'supported' Error: Unknown argument 'languages --runBefore " --runBefore Import' Error: Unknown argument 'code' Error: Unknown argument 'at' Error: Unknown argument 'inputPath.' Error: Unknown argument 'Creates' Error: Unknown argument 'a' Error: Unknown argument 'new' Error: Unknown argument 'project,' Error: Unknown argument 'generates' Error: Unknown argument 'a' Error: Unknown argument 'CPG, --runBefore and' Error: Unknown argument 'opens' Error: Unknown argument 'the' Error: Unknown argument 'project.' Error: Unknown argument 'Upon' Error: Unknown argument 'success,' Error: Unknown argument 'the' Error: Unknown argument 'CPG' Error: Unknown argument 'can' Error: Unknown argument 'be' Error: Unknown argument 'queried' Error: Unknown argument 'via' Error: Unknown argument 'the' Error: Unknown argument 'cpg --runBefore object.' Error: Unknown argument 'Default' Error: Unknown argument 'overlays' Error: Unknown argument 'are' Error: Unknown argument 'already' Error: Unknown argument 'applied' Error: Unknown argument 'to' Error: Unknown argument 'the' Error: Unknown argument 'newly' Error: Unknown argument 'created' Error: Unknown argument 'CPG. --runBefore Returns' Error: Unknown argument 'new' Error: Unknown argument 'CPG' Error: Unknown argument 'and' Error: Unknown argument 'ensures' Error: Unknown argument 'that' Error: Unknown argument 'cpg' Error: Unknown argument 'now' Error: Unknown argument 'refers' Error: Unknown argument 'to' Error: Unknown argument 'this' Error: Unknown argument 'new' Error: Unknown argument 'CPG. --runBefore " --runBefore By' Error: Unknown argument 'default,' Error: Unknown argument 'importCode' Error: Unknown argument 'attempts' Error: Unknown argument 'to' Error: Unknown argument 'guess' Error: Unknown argument 'the' Error: Unknown argument 'source' Error: Unknown argument 'language' Error: Unknown argument 'of --runBefore the' Error: Unknown argument 'code' Error: Unknown argument 'you' Error: Unknown argument 'provide.' Error: Unknown argument 'You' Error: Unknown argument 'can' Error: Unknown argument 'also' Error: Unknown argument 'specify' Error: Unknown argument 'the' Error: Unknown argument 'source' Error: Unknown argument 'language --runBefore manually,' Error: Unknown argument 'by' Error: Unknown argument 'running' Error: Unknown argument 'importCode..' Error: Unknown argument 'For' Error: Unknown argument 'example,' Error: Unknown argument 'importCode.c --runBefore runs' Error: Unknown argument 'the' Error: Unknown argument 'C/C++' Error: Unknown argument 'frontend. --runBefore " --runBefore Type' Error: Unknown argument 'importCode' Error: Unknown argument 'alone' Error: Unknown argument 'to' Error: Unknown argument 'get' Error: Unknown argument 'an' Error: Unknown argument 'overview' Error: Unknown argument 'of' Error: Unknown argument 'all' Error: Unknown argument 'available' Error: Unknown argument 'language' Error: Unknown argument 'modules. --runBefore " --runBefore Parameters: --runBefore " --runBefore ----------- --runBefore " --runBefore inputPath:' Error: Unknown argument 'location' Error: Unknown argument 'on' Error: Unknown argument 'disk' Error: Unknown argument 'of' Error: Unknown argument 'the' Error: Unknown argument 'code' Error: Unknown argument 'to' Error: Unknown argument 'analyze.' Error: Unknown argument 'e.g.,' Error: Unknown argument 'a' Error: Unknown argument 'directory --runBefore containing' Error: Unknown argument 'source' Error: Unknown argument 'code' Error: Unknown argument 'or' Error: Unknown argument 'a' Error: Unknown argument 'Java' Error: Unknown argument 'archive' Error: Unknown argument '(JAR). --runBefore " --runBefore projectName:' Error: Unknown argument 'a' Error: Unknown argument 'unique' Error: Unknown argument 'name' Error: Unknown argument 'used' Error: Unknown argument 'for' Error: Unknown argument 'project' Error: Unknown argument 'management.' Error: Unknown argument 'If' Error: Unknown argument 'this' Error: Unknown argument 'parameter --runBefore is' Error: Unknown argument 'omitted,' Error: Unknown argument 'the' Error: Unknown argument 'name' Error: Unknown argument 'will' Error: Unknown argument 'be' Error: Unknown argument 'derived' Error: Unknown argument 'from' Error: Unknown argument 'inputPath --runBefore " --runBefore namespaces:' Error: Unknown argument 'the' Error: Unknown argument 'whitelist' Error: Unknown argument 'of' Error: Unknown argument 'namespaces' Error: Unknown argument 'to' Error: Unknown argument 'analyse.' Error: Unknown argument 'Specifying' Error: Unknown argument 'this --runBefore parameter' Error: Unknown argument 'is' Error: Unknown argument 'only' Error: Unknown argument 'effective' Error: Unknown argument 'if' Error: Unknown argument 'the' Error: Unknown argument 'language' Error: Unknown argument 'frontend' Error: Unknown argument 'supports' Error: Unknown argument 'it. --runBefore If' Error: Unknown argument 'the' Error: Unknown argument 'list' Error: Unknown argument 'is' Error: Unknown argument 'omitted' Error: Unknown argument 'or' Error: Unknown argument 'empty,' Error: Unknown argument 'namespace' Error: Unknown argument 'selection' Error: Unknown argument 'is' Error: Unknown argument 'performed --runBefore automatically' Error: Unknown argument 'via' Error: Unknown argument 'heuristics. --runBefore " --runBefore language:' Error: Unknown argument 'the' Error: Unknown argument 'programming' Error: Unknown argument 'language' Error: Unknown argument 'which' Error: Unknown argument 'the' Error: Unknown argument 'code' Error: Unknown argument 'at' Error: Unknown argument 'inputPath' Error: Unknown argument 'is' Error: Unknown argument 'written' Error: Unknown argument 'in. --runBefore If' Error: Unknown argument 'language' Error: Unknown argument 'is' Error: Unknown argument 'empty,' Error: Unknown argument 'the' Error: Unknown argument 'language' Error: Unknown argument 'used' Error: Unknown argument 'is' Error: Unknown argument 'guessed' Error: Unknown argument 'by' Error: Unknown argument 'inspecting --runBefore the' Error: Unknown argument 'filename' Error: Unknown argument 'found' Error: Unknown argument 'and' Error: Unknown argument 'possibly' Error: Unknown argument 'by' Error: Unknown argument 'looking' Error: Unknown argument 'into' Error: Unknown argument 'the' Error: Unknown argument 'file/directory."' Error: Unknown argument '[projectName],' Error: Unknown argument '[enhance]) --runBefore " --runBefore Import' Error: Unknown argument 'an' Error: Unknown argument 'existing' Error: Unknown argument 'CPG.' Error: Unknown argument 'The' Error: Unknown argument 'CPG' Error: Unknown argument 'is' Error: Unknown argument 'stored' Error: Unknown argument 'as' Error: Unknown argument 'part --runBefore of' Error: Unknown argument 'a' Error: Unknown argument 'new' Error: Unknown argument 'project' Error: Unknown argument 'and' Error: Unknown argument 'blanks' Error: Unknown argument 'are' Error: Unknown argument 'filled' Error: Unknown argument 'in' Error: Unknown argument 'by' Error: Unknown argument 'analyzing' Error: Unknown argument 'the' Error: Unknown argument 'CPG. --runBefore If' Error: Unknown argument 'we' Error: Unknown argument 'find' Error: Unknown argument 'that' Error: Unknown argument 'default' Error: Unknown argument 'overlays' Error: Unknown argument 'have' Error: Unknown argument 'not' Error: Unknown argument 'been' Error: Unknown argument 'applied,' Error: Unknown argument 'these --runBefore are' Error: Unknown argument 'applied' Error: Unknown argument 'to' Error: Unknown argument 'the' Error: Unknown argument 'CPG' Error: Unknown argument 'after' Error: Unknown argument 'loading' Error: Unknown argument 'it. --runBefore " --runBefore Parameters: --runBefore " --runBefore inputPath:' Error: Unknown argument 'path' Error: Unknown argument 'where' Error: Unknown argument 'the' Error: Unknown argument 'existing' Error: Unknown argument 'CPG' Error: Unknown argument '(in' Error: Unknown argument 'overflowdb' Error: Unknown argument 'format) --runBefore is' Error: Unknown argument 'stored --runBefore " --runBefore projectName:' Error: Unknown argument 'name' Error: Unknown argument 'of' Error: Unknown argument 'the' Error: Unknown argument 'new' Error: Unknown argument 'project.' Error: Unknown argument 'If' Error: Unknown argument 'this' Error: Unknown argument 'parameter --runBefore is' Error: Unknown argument 'omitted,' Error: Unknown argument 'the' Error: Unknown argument 'path' Error: Unknown argument 'is' Error: Unknown argument 'derived' Error: Unknown argument 'from' Error: Unknown argument 'inputPath --runBefore " --runBefore enhance:' Error: Unknown argument 'run' Error: Unknown argument 'default' Error: Unknown argument 'overlays' Error: Unknown argument 'and' Error: Unknown argument 'post-processing' Error: Unknown argument 'passes.' Error: Unknown argument 'Defaults' Error: Unknown argument 'to' Error: Unknown argument 'true. --runBefore Pass' Error: Unknown argument 'enhance=false' Error: Unknown argument 'to' Error: Unknown argument 'disable' Error: Unknown argument 'the' Error: Unknown argument 'enhancements."' Error: Unknown argument 'importing' Error: Unknown argument 'code,' Error: Unknown argument 'a' Error: Unknown argument 'project' Error: Unknown argument 'is' Error: Unknown argument 'created' Error: Unknown argument 'that' Error: Unknown argument 'holds --runBefore an' Error: Unknown argument 'intermediate' Error: Unknown argument 'representation' Error: Unknown argument 'called' Error: Unknown argument 'Code'
Error: Unknown argument 'Property'
Error: Unknown argument 'Graph.' Error: Unknown argument 'This --runBefore graph' Error: Unknown argument 'is' Error: Unknown argument 'a' Error: Unknown argument 'composition' Error: Unknown argument 'of' Error: Unknown argument 'low-level' Error: Unknown argument 'program' Error: Unknown argument 'representations' Error: Unknown argument 'such --runBefore as' Error: Unknown argument 'abstract' Error: Unknown argument 'syntax' Error: Unknown argument 'trees' Error: Unknown argument 'and' Error: Unknown argument 'control' Error: Unknown argument 'flow' Error: Unknown argument 'graphs,' Error: Unknown argument 'but' Error: Unknown argument 'it' Error: Unknown argument 'can' Error: Unknown argument 'be' Error: Unknown argument 'arbitrarily --runBefore extended' Error: Unknown argument 'to' Error: Unknown argument 'hold' Error: Unknown argument 'any' Error: Unknown argument 'information' Error: Unknown argument 'relevant' Error: Unknown argument 'in' Error: Unknown argument 'your' Error: Unknown argument 'audit,' Error: Unknown argument 'information --runBefore about' Error: Unknown argument 'HTTP' Error: Unknown argument 'entry' Error: Unknown argument 'points,' Error: Unknown argument 'IO' Error: Unknown argument 'routines,' Error: Unknown argument 'information' Error: Unknown argument 'flows,' Error: Unknown argument 'or' Error: Unknown argument 'locations --runBefore of' Error: Unknown argument 'vulnerable' Error: Unknown argument 'code.' Error: Unknown argument 'Think' Error: Unknown argument 'of' Error: Unknown argument 'Ocular' Error: Unknown argument 'and' Error: Unknown argument 'Joern' Error: Unknown argument 'as' Error: Unknown argument 'a' Error: Unknown argument 'CPG' Error: Unknown argument 'editors. --runBefore " --runBefore In' Error: Unknown argument 'practice,' Error: Unknown argument 'cpg' Error: Unknown argument 'is' Error: Unknown argument 'the' Error: Unknown argument 'root' Error: Unknown argument 'object' Error: Unknown argument 'of' Error: Unknown argument 'the' Error: Unknown argument 'query' Error: Unknown argument 'language,' Error: Unknown argument 'that' Error: Unknown argument 'is,' Error: Unknown argument 'all --runBefore query' Error: Unknown argument 'language' Error: Unknown argument 'constructs' Error: Unknown argument 'can' Error: Unknown argument 'be' Error: Unknown argument 'invoked' Error: Unknown argument 'starting' Error: Unknown argument 'from' Error: Unknown argument 'cpg.' Error: Unknown argument 'For' Error: Unknown argument 'example, --runBefore cpg.method.l' Error: Unknown argument 'lists' Error: Unknown argument 'all' Error: Unknown argument 'methods,' Error: Unknown argument 'while' Error: Unknown argument 'cpg.finding.l' Error: Unknown argument 'lists' Error: Unknown argument 'all' Error: Unknown argument 'findings --runBefore of' Error: Unknown argument 'potentially' Error: Unknown argument 'vulnerable' Error: Unknown argument 'code."' Error: Unknown argument 'default,' Error: Unknown argument 'the' Error: Unknown argument 'workspace' Error: Unknown argument 'in' Error: Unknown argument '$INSTALL_DIR/workspace' Error: Unknown argument 'is' Error: Unknown argument 'used. --runBefore ' Error: Unknown argument 'This' Error: Unknown argument 'method' Error: Unknown argument 'allows' Error: Unknown argument 'specifying' Error: Unknown argument 'a' Error: Unknown argument 'different' Error: Unknown argument 'workspace' Error: Unknown argument 'directory --runBefore ' Error: Unknown argument 'via' Error: Unknown argument 'the' Error: Unknown argument 'pathName' Error: Unknown argument 'parameter. --runBefore ' Error: Unknown argument 'Before' Error: Unknown argument 'changing' Error: Unknown argument 'the' Error: Unknown argument 'workspace,' Error: Unknown argument 'the' Error: Unknown argument 'current' Error: Unknown argument 'workspace' Error: Unknown argument 'will' Error: Unknown argument 'be --runBefore ' Error: Unknown argument 'closed,' Error: Unknown argument 'saving' Error: Unknown argument 'any' Error: Unknown argument 'unsaved' Error: Unknown argument 'changes. --runBefore ' Error: Unknown argument 'If' Error: Unknown argument 'pathName' Error: Unknown argument 'points' Error: Unknown argument 'to' Error: Unknown argument 'a' Error: Unknown argument 'non-existing' Error: Unknown argument 'directory,' Error: Unknown argument 'then' Error: Unknown argument 'a' Error: Unknown argument 'new --runBefore ' Error: Unknown argument 'workspace' Error: Unknown argument 'is' Error: Unknown argument 'first' Error: Unknown argument 'created."' Error: Unknown argument 'the' Error: Unknown argument 'project' Error: Unknown argument 'of' Error: Unknown argument 'the' Error: Unknown argument 'CPG' Error: Unknown argument 'generated' Error: Unknown argument 'for' Error: Unknown argument 'the' Error: Unknown argument 'input' Error: Unknown argument 'path' Error: Unknown argument 'input-path. --runBefore " --runBefore Upon' Error: Unknown argument 'completion' Error: Unknown argument 'of' Error: Unknown argument 'this' Error: Unknown argument 'operation,' Error: Unknown argument 'the' Error: Unknown argument 'CPG' Error: Unknown argument 'stored' Error: Unknown argument 'in' Error: Unknown argument 'this' Error: Unknown argument 'project --runBefore can' Error: Unknown argument 'be' Error: Unknown argument 'queried' Error: Unknown argument 'via' Error: Unknown argument 'cpg.' Error: Unknown argument 'Returns' Error: Unknown argument 'an' Error: Unknown argument 'optional' Error: Unknown argument 'reference' Error: Unknown argument 'to' Error: Unknown argument 'the --runBefore project,' Error: Unknown argument 'which' Error: Unknown argument 'is' Error: Unknown argument 'empty' Error: Unknown argument 'on' Error: Unknown argument 'error."' Try --help for more information. Exception in thread "main" java.lang.AssertionError: error while parsing commandline args - see errors above at replpp.Config$.parse$$anonfun$1(Config.scala:102) at scala.Option.getOrElse(Option.scala:201) at replpp.Config$.parse(Config.scala:102) at replpp.scripting.NonForkingScriptRunner$.main(NonForkingScriptRunner.scala:19) at replpp.scripting.NonForkingScriptRunner.main(NonForkingScriptRunner.scala) replpp.scripting.ScriptRunner$: error while invoking java -classpath ;D:\joern\joern-cli\bin..\lib\com.github.luben.zstd-jni-1.5.6-8.jar;D:\joern\joern-cli\bin..\lib\com.github.pathikrit.better-files_3-3.9.2.jar;D:\joern\joern-cli\bin..\lib\com.github.scopt.scopt_3-4.1.0.jar;D:\joern\joern-cli\bin..\lib\com.github.tototoshi.scala-csv_3-2.0.0.jar;D:\joern\joern-cli\bin..\lib\com.google.code.findbugs.jsr305-3.0.2.jar;D:\joern\joern-cli\bin..\lib\com.google.protobuf.protobuf-java-3.18.0.jar;D:\joern\joern-cli\bin..\lib\com.h2database.h2-mvstore-1.4.200.jar;D:\joern\joern-cli\bin..\lib\com.ibm.icu.icu4j-61.1.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.cask-util_3-0.10.2.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.cask_3-0.10.2.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.castor_3-0.3.0.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.fansi_3-0.5.0.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.geny_3-1.1.1.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.os-lib_3-0.10.1.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.pprint_3-0.9.0.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.requests_3-0.8.0.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.sourcecode_3-0.4.2.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.ujson_3-4.0.2.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.upack_3-4.0.2.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.upickle-core_3-4.0.2.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.upickle-implicits_3-4.0.2.jar;D:\joern\joern-cli\bin..\lib\com.lihaoyi.upickle_3-4.0.2.jar;D:\joern\joern-cli\bin..\lib\com.michaelpollmeier.scala-repl-pp-server_3-0.3.8.jar;D:\joern\joern-cli\bin..\lib\com.michaelpollmeier.scala-repl-pp-shaded-libs_3-0.3.8.jar;D:\joern\joern-cli\bin..\lib\com.michaelpollmeier.scala-repl-pp_3-0.3.8.jar;D:\joern\joern-cli\bin..\lib\com.michaelpollmeier.versionsort-1.0.11.jar;D:\joern\joern-cli\bin..\lib\com.thoughtworks.paranamer.paranamer-2.8.jar;D:\joern\joern-cli\bin..\lib\com.typesafe.config-1.4.3.jar;D:\joern\joern-cli\bin..\lib\commons-codec.commons-codec-1.17.0.jar;D:\joern\joern-cli\bin..\lib\commons-io.commons-io-2.16.1.jar;D:\joern\joern-cli\bin..\lib\de.vandermeer.ascii-utf-themes-0.0.1.jar;D:\joern\joern-cli\bin..\lib\de.vandermeer.asciitable-0.3.2.jar;D:\joern\joern-cli\bin..\lib\de.vandermeer.char-translation-0.0.2.jar;D:\joern\joern-cli\bin..\lib\de.vandermeer.skb-interfaces-0.0.1.jar;D:\joern\joern-cli\bin..\lib\io.joern.console-4.0.194.jar;D:\joern\joern-cli\bin..\lib\io.joern.dataflowengineoss-4.0.194.jar;D:\joern\joern-cli\bin..\lib\io.joern.flatgraph-core_3-0.1.2.jar;D:\joern\joern-cli\bin..\lib\io.joern.flatgraph-formats_3-0.1.2.jar;D:\joern\joern-cli\bin..\lib\io.joern.flatgraph-help_3-0.1.2.jar;D:\joern\joern-cli\bin..\lib\io.joern.flatgraph-odb-convert_3-0.1.2.jar;D:\joern\joern-cli\bin..\lib\io.joern.joern-cli-4.0.194.jar;D:\joern\joern-cli\bin..\lib\io.joern.macros-4.0.194.jar;D:\joern\joern-cli\bin..\lib\io.joern.rubysrc2cpg-4.0.194.jar;D:\joern\joern-cli\bin..\lib\io.joern.semanticcpg-4.0.194.jar;D:\joern\joern-cli\bin..\lib\io.joern.x2cpg-4.0.194.jar;D:\joern\joern-cli\bin..\lib\io.shiftleft.codepropertygraph-domain-classes_3-1.7.15.jar;D:\joern\joern-cli\bin..\lib\io.shiftleft.codepropertygraph-protos_3-1.7.15.jar;D:\joern\joern-cli\bin..\lib\io.shiftleft.codepropertygraph_3-1.7.15.jar;D:\joern\joern-cli\bin..\lib\io.shiftleft.overflowdb-core_3-1.181.jar;D:\joern\joern-cli\bin..\lib\io.spray.spray-json_3-1.3.6.jar;D:\joern\joern-cli\bin..\lib\io.undertow.undertow-core-2.3.18.Final.jar;D:\joern\joern-cli\bin..\lib\net.freeutils.jlhttp-3.1.jar;D:\joern\joern-cli\bin..\lib\net.java.dev.jna.jna-5.14.0.jar;D:\joern\joern-cli\bin..\lib\net.oneandone.reflections8.reflections8-0.11.7.jar;D:\joern\joern-cli\bin..\lib\net.sf.trove4j.core-3.1.0.jar;D:\joern\joern-cli\bin..\lib\org.abego.treelayout.org.abego.treelayout.core-1.0.3.jar;D:\joern\joern-cli\bin..\lib\org.antlr.antlr-runtime-3.5.2.jar;D:\joern\joern-cli\bin..\lib\org.antlr.antlr4-4.7.2.jar;D:\joern\joern-cli\bin..\lib\org.antlr.antlr4-runtime-4.7.2.jar;D:\joern\joern-cli\bin..\lib\org.antlr.ST4-4.1.jar;D:\joern\joern-cli\bin..\lib\org.apache.commons.commons-compress-1.26.2.jar;D:\joern\joern-cli\bin..\lib\org.apache.commons.commons-exec-1.4.0.jar;D:\joern\joern-cli\bin..\lib\org.apache.commons.commons-lang3-3.14.0.jar;D:\joern\joern-cli\bin..\lib\org.apache.commons.commons-text-1.12.0.jar;D:\joern\joern-cli\bin..\lib\org.apache.logging.log4j.log4j-api-2.20.0.jar;D:\joern\joern-cli\bin..\lib\org.apache.logging.log4j.log4j-core-2.20.0.jar;D:\joern\joern-cli\bin..\lib\org.apache.logging.log4j.log4j-slf4j2-impl-2.20.0.jar;D:\joern\joern-cli\bin..\lib\org.glassfish.javax.json-1.0.4.jar;D:\joern\joern-cli\bin..\lib\org.java-websocket.Java-WebSocket-1.5.3.jar;D:\joern\joern-cli\bin..\lib\org.javassist.javassist-3.28.0-GA.jar;D:\joern\joern-cli\bin..\lib\org.jboss.logging.jboss-logging-3.4.3.Final.jar;D:\joern\joern-cli\bin..\lib\org.jboss.threads.jboss-threads-3.5.0.Final.jar;D:\joern\joern-cli\bin..\lib\org.jboss.xnio.xnio-api-3.8.16.Final.jar;D:\joern\joern-cli\bin..\lib\org.jboss.xnio.xnio-nio-3.8.16.Final.jar;D:\joern\joern-cli\bin..\lib\org.jline.jline-native-3.25.1.jar;D:\joern\joern-cli\bin..\lib\org.jline.jline-reader-3.25.1.jar;D:\joern\joern-cli\bin..\lib\org.jline.jline-terminal-3.25.1.jar;D:\joern\joern-cli\bin..\lib\org.jline.jline-terminal-jna-3.25.1.jar;D:\joern\joern-cli\bin..\lib\org.jruby.jruby-complete-9.4.9.0.jar;D:\joern\joern-cli\bin..\lib\org.json4s.json4s-ast_3-4.0.7.jar;D:\joern\joern-cli\bin..\lib\org.json4s.json4s-core_3-4.0.7.jar;D:\joern\joern-cli\bin..\lib\org.json4s.json4s-native-core_3-4.0.7.jar;D:\joern\joern-cli\bin..\lib\org.json4s.json4s-native_3-4.0.7.jar;D:\joern\joern-cli\bin..\lib\org.json4s.json4s-scalap_3-4.0.7.jar;D:\joern\joern-cli\bin..\lib\org.msgpack.msgpack-core-0.9.1.jar;D:\joern\joern-cli\bin..\lib\org.reflections.reflections-0.10.2.jar;D:\joern\joern-cli\bin..\lib\org.scala-lang.modules.scala-asm-9.7.0-scala-2.jar;D:\joern\joern-cli\bin..\lib\org.scala-lang.modules.scala-parallel-collections_3-1.0.4.jar;D:\joern\joern-cli\bin..\lib\org.scala-lang.modules.scala-xml_3-2.3.0.jar;D:\joern\joern-cli\bin..\lib\org.scala-lang.scala-library-2.13.14.jar;D:\joern\joern-cli\bin..\lib\org.scala-lang.scala3-compiler_3-3.5.2.jar;D:\joern\joern-cli\bin..\lib\org.scala-lang.scala3-interfaces-3.5.2.jar;D:\joern\joern-cli\bin..\lib\org.scala-lang.scala3-library_3-3.5.2.jar;D:\joern\joern-cli\bin..\lib\org.scala-lang.tasty-core_3-3.5.2.jar;D:\joern\joern-cli\bin..\lib\org.scala-sbt.compiler-interface-1.9.6.jar;D:\joern\joern-cli\bin..\lib\org.scala-sbt.util-interface-1.9.8.jar;D:\joern\joern-cli\bin..\lib\org.slf4j.slf4j-api-2.0.16.jar;D:\joern\joern-cli\bin..\lib\org.typelevel.cats-core_3-2.9.0.jar;D:\joern\joern-cli\bin..\lib\org.typelevel.cats-effect-kernel_3-3.5.4.jar;D:\joern\joern-cli\bin..\lib\org.typelevel.cats-effect-std_3-3.5.4.jar;D:\joern\joern-cli\bin..\lib\org.typelevel.cats-effect_3-3.5.4.jar;D:\joern\joern-cli\bin..\lib\org.typelevel.cats-kernel_3-2.9.0.jar;D:\joern\joern-cli\bin..\lib\org.wildfly.client.wildfly-client-config-1.0.1.Final.jar;D:\joern\joern-cli\bin..\lib\org.wildfly.common.wildfly-common-1.6.0.Final.jar;D:\joern\joern-cli\bin..\lib\org.zeroturnaround.zt-zip-1.17.jar; replpp.scripting.NonForkingScriptRunner --runBefore import root.io.joern.console.* --runBefore import root.io.joern.joerncli.console.JoernConsole.* --runBefore import root.io.shiftleft.codepropertygraph.cpgloading.* --runBefore import root.io.shiftleft.codepropertygraph.generated.{help => _, _} --runBefore import root.io.shiftleft.codepropertygraph.generated.nodes.* --runBefore import root.io.joern.dataflowengineoss.language.* --runBefore import root.io.shiftleft.semanticcpg.language.* --runBefore import scala.jdk.CollectionConverters.* --runBefore implicit val resolver: ICallResolver = NoResolve --runBefore implicit val finder: NodeExtensionFinder = DefaultNodeExtensionFinder --runBefore import root.io.joern.joerncli.console.Joern.* --runBefore --runBefore class OptsDynamic { --runBefore val dumpast = root.io.joern.x2cpg.layers.DumpAst.defaultOpts --runBefore val scan = root.io.joern.joerncli.Scan.defaultOpts --runBefore val dumppdg = root.io.joern.dataflowengineoss.layers.dataflows.DumpPdg.defaultOpts --runBefore val commit = root.io.joern.console.Commit.defaultOpts --runBefore val base = root.io.joern.x2cpg.layers.Base.defaultOpts --runBefore val callgraph = root.io.joern.x2cpg.layers.CallGraph.defaultOpts --runBefore val dumpddg = root.io.joern.dataflowengineoss.layers.dataflows.DumpDdg.defaultOpts --runBefore val dumpcdg = root.io.joern.x2cpg.layers.DumpCdg.defaultOpts --runBefore val typerelations = root.io.joern.x2cpg.layers.TypeRelations.defaultOpts --runBefore val dumpcpg14 = root.io.joern.dataflowengineoss.layers.dataflows.DumpCpg14.defaultOpts --runBefore val ossdataflow = root.io.joern.dataflowengineoss.layers.dataflows.OssDataFlow.defaultOpts --runBefore val dumpcfg = root.io.joern.x2cpg.layers.DumpCfg.defaultOpts --runBefore val controlflow = root.io.joern.x2cpg.layers.ControlFlow.defaultOpts --runBefore } --runBefore --runBefore val opts = new OptsDynamic() --runBefore --runBefore import root.io.shiftleft.codepropertygraph.generated.DiffGraphBuilder --runBefore implicit def _diffGraph: DiffGraphBuilder = opts.commit.diffGraphBuilder --runBefore def diffGraph = _diffGraph --runBefore --runBefore class OverlaysDynamic { --runBefore --runBefore def apply(query: root.io.shiftleft.semanticcpg.language.HasStoreMethod) = --runBefore root.io.joern.console.Run.runCustomQuery(console, query) --runBefore --runBefore def dumpast: Cpg = _runAnalyzer(new root.io.joern.x2cpg.layers.DumpAst(opts.dumpast)) --runBefore def scan: Cpg = _runAnalyzer(new root.io.joern.joerncli.Scan(opts.scan)) --runBefore def dumppdg: Cpg = _runAnalyzer(new root.io.joern.dataflowengineoss.layers.dataflows.DumpPdg(opts.dumppdg)) --runBefore def commit: Cpg = _runAnalyzer(new root.io.joern.console.Commit(opts.commit)) --runBefore def base: Cpg = _runAnalyzer(new root.io.joern.x2cpg.layers.Base(opts.base)) --runBefore def callgraph: Cpg = _runAnalyzer(new root.io.joern.x2cpg.layers.CallGraph(opts.callgraph)) --runBefore def dumpddg: Cpg = _runAnalyzer(new root.io.joern.dataflowengineoss.layers.dataflows.DumpDdg(opts.dumpddg)) --runBefore def dumpcdg: Cpg = _runAnalyzer(new root.io.joern.x2cpg.layers.DumpCdg(opts.dumpcdg)) --runBefore def typerelations: Cpg = _runAnalyzer(new root.io.joern.x2cpg.layers.TypeRelations(opts.typerelations)) --runBefore def dumpcpg14: Cpg = _runAnalyzer(new root.io.joern.dataflowengineoss.layers.dataflows.DumpCpg14(opts.dumpcpg14)) --runBefore def ossdataflow: Cpg = _runAnalyzer(new root.io.joern.dataflowengineoss.layers.dataflows.OssDataFlow(opts.ossdataflow)) --runBefore def dumpcfg: Cpg = _runAnalyzer(new root.io.joern.x2cpg.layers.DumpCfg(opts.dumpcfg)) --runBefore def controlflow: Cpg = _runAnalyzer(new root.io.joern.x2cpg.layers.ControlFlow(opts.controlflow)) --runBefore --runBefore --runBefore import flatgraph.help.Table --runBefore override def toString() : String = { --runBefore val columnNames = List("name", "description") --runBefore val rows = --runBefore List(List("dumpast",root.io.joern.x2cpg.layers.DumpAst.description.trim), List("scan",root.io.joern.joerncli.Scan.description.trim), List("dumppdg",root.io.joern.dataflowengineoss.layers.dataflows.DumpPdg.description.trim), List("commit",root.io.joern.console.Commit.description.trim), List("base",root.io.joern.x2cpg.layers.Base.description.trim), List("callgraph",root.io.joern.x2cpg.layers.CallGraph.description.trim), List("dumpddg",root.io.joern.dataflowengineoss.layers.dataflows.DumpDdg.description.trim), List("dumpcdg",root.io.joern.x2cpg.layers.DumpCdg.description.trim), List("typerelations",root.io.joern.x2cpg.layers.TypeRelations.description.trim), List("dumpcpg14",root.io.joern.dataflowengineoss.layers.dataflows.DumpCpg14.description.trim), List("ossdataflow",root.io.joern.dataflowengineoss.layers.dataflows.OssDataFlow.description.trim), List("dumpcfg",root.io.joern.x2cpg.layers.DumpCfg.description.trim), List("controlflow",root.io.joern.x2cpg.layers.ControlFlow.description.trim)) --runBefore "\n" + Table(columnNames, rows).render --runBefore } --runBefore --runBefore } --runBefore val run = new OverlaysDynamic() --runBefore --runBefore class Helper() { --runBefore def run: String = Help.runLongHelp --runBefore override def toString: String = Help.overview(classOf[io.joern.joerncli.console.JoernConsole]) --runBefore --runBefore val exit: String = """ --runBefore """ --runBefore val delete: String = """ --runBefore """ --runBefore val close: String = """ --runBefore Close project. Resources are freed but the project remains on disk. --runBefore The project remains active, that is, calling cpg now raises an --runBefore exception. A different project can now be activated using open.""" --runBefore val save: String = """ --runBefore Close and reopen all loaded CPGs. This ensures --runBefore that changes have been flushed to disk. --runBefore --runBefore Returns list of affected projects""" --runBefore val open: String = """ --runBefore open([projectName]) --runBefore --runBefore Opens the project named name and make it the active project. --runBefore If name is not provided, the active project is opened. If name --runBefore is a path, the project name is derived from and a deprecation --runBefore warning is printed. --runBefore --runBefore Upon completion of this operation, the CPG stored in this project --runBefore can be queried via cpg. Returns an optional reference to the --runBefore project, which is empty on error.""" --runBefore val project: String = """ --runBefore """ --runBefore val workspace: String = """ --runBefore All auditing projects are stored in a workspace directory, and workspace --runBefore provides programmatic access to this directory. Entering workspace provides --runBefore a list of all projects, indicating which code the project makes accessible, --runBefore whether the project is open, and which analyzers have been run to produce it. --runBefore Multiple projects can be open at any given time, however, only one project --runBefore can be active. Queries and edit-operations are executed on the active project --runBefore only. --runBefore --runBefore Operations --runBefore --runBefore ---------- --runBefore --runBefore workspace provides low-level access to the workspace directory. In most cases, --runBefore it is a better idea to use higher-level operations such as importCode, open, --runBefore close, and delete, which make use of workspace operations internally. --runBefore --runBefore * workspace.open([name]): open project by name and make it the active project. --runBefore If name is omitted, the last project in the workspace list is opened. If --runBefore the project is already open, this has the same effect as workspace.setActiveProject([name]) --runBefore --runBefore * workspace.close([name]): close project by name. Does not remove the project. --runBefore --runBefore * workspace.remove([name]): close and remove project by name. --runBefore --runBefore * workspace.reset: create a fresh workspace directory, deleting the current --runBefore workspace directory""" --runBefore val importCode: String = """ --runBefore importCode(, [projectName], [namespaces], [language]) --runBefore --runBefore Type importCode alone to get a list of all supported languages --runBefore --runBefore Import code at inputPath. Creates a new project, generates a CPG, --runBefore and opens the project. Upon success, the CPG can be queried via the cpg --runBefore object. Default overlays are already applied to the newly created CPG. --runBefore Returns new CPG and ensures that cpg now refers to this new CPG. --runBefore --runBefore By default, importCode attempts to guess the source language of --runBefore the code you provide. You can also specify the source language --runBefore manually, by running importCode.<language>. For example, importCode.c --runBefore runs the C/C++ frontend. --runBefore --runBefore Type importCode alone to get an overview of all available language modules. --runBefore --runBefore Parameters: --runBefore --runBefore ----------- --runBefore --runBefore inputPath: location on disk of the code to analyze. e.g., a directory --runBefore containing source code or a Java archive (JAR). --runBefore --runBefore projectName: a unique name used for project management. If this parameter --runBefore is omitted, the name will be derived from inputPath --runBefore --runBefore namespaces: the whitelist of namespaces to analyse. Specifying this --runBefore parameter is only effective if the language frontend supports it. --runBefore If the list is omitted or empty, namespace selection is performed --runBefore automatically via heuristics. --runBefore --runBefore language: the programming language which the code at inputPath is written in. --runBefore If language is empty, the language used is guessed by inspecting --runBefore the filename found and possibly by looking into the file/directory.""" --runBefore val importCpg: String = """ --runBefore importCpg(, [projectName], [enhance]) --runBefore --runBefore Import an existing CPG. The CPG is stored as part --runBefore of a new project and blanks are filled in by analyzing the CPG. --runBefore If we find that default overlays have not been applied, these --runBefore are applied to the CPG after loading it. --runBefore --runBefore Parameters: --runBefore --runBefore inputPath: path where the existing CPG (in overflowdb format) --runBefore is stored --runBefore --runBefore projectName: name of the new project. If this parameter --runBefore is omitted, the path is derived from inputPath --runBefore --runBefore enhance: run default overlays and post-processing passes. Defaults to true. --runBefore Pass enhance=false to disable the enhancements.""" --runBefore val cpg: String = """ --runBefore Upon importing code, a project is created that holds --runBefore an intermediate representation called Code Property Graph. This --runBefore graph is a composition of low-level program representations such --runBefore as abstract syntax trees and control flow graphs, but it can be arbitrarily --runBefore extended to hold any information relevant in your audit, information --runBefore about HTTP entry points, IO routines, information flows, or locations --runBefore of vulnerable code. Think of Ocular and Joern as a CPG editors. --runBefore --runBefore In practice, cpg is the root object of the query language, that is, all --runBefore query language constructs can be invoked starting from cpg. For example, --runBefore cpg.method.l lists all methods, while cpg.finding.l lists all findings --runBefore of potentially vulnerable code.""" --runBefore val switchWorkspace: String = """ --runBefore By default, the workspace in $INSTALL_DIR/workspace is used. --runBefore This method allows specifying a different workspace directory --runBefore via the pathName parameter. --runBefore Before changing the workspace, the current workspace will be --runBefore closed, saving any unsaved changes. --runBefore If pathName points to a non-existing directory, then a new --runBefore workspace is first created.""" --runBefore val openForInputPath: String = """ --runBefore openForInputPath([input-path]) --runBefore --runBefore Opens the project of the CPG generated for the input path input-path. --runBefore --runBefore Upon completion of this operation, the CPG stored in this project --runBefore can be queried via cpg. Returns an optional reference to the --runBefore project, which is empty on error.""" --runBefore } --runBefore --runBefore val help = new Helper --runBefore ossDataFlowOptions = opts.ossdataflow --cpinherit --script test.sc: exit code was 1

Additional context
My colleague and I are using exactly the same Java & Scala & OS environment, but it works perfectly on his computer.

@GreenteckBoogie GreenteckBoogie added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant