Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Ariadne standalone CLI fails with “Could not create a entrypoint callsites” for an input file

Open Beginner friendly
#975 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java, python
Domain
cli, devtools

Research direction

Start in ml/com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/driver/Ariadne.java, following the input-path URI creation and uriTextPairs population. Rebuild the shaded JAR and run the reported command with my_shape_mistake.py. Done means the CLI completes and reports the invalid reshape instead of raising the entrypoint callsites exception.

Written by the indexing model from the issue text.

Description

Summary

I built the Ariadne standalone CLI from wala/ML at commit 33bbcf4e. When I ran it on a Python input file, it failed with Could not create a entrypoint callsites instead of producing a diagnostic.

The same failure was also reproduced on Linux.

Input file

my_shape_mistake.py:

import tensorflow as tf

tensor = tf.ones([2, 3])
result = tf.reshape(tensor, [4, 2])

I placed the file directly in the repository root and issued the command from that same directory.

Command

java -jar ml/com.ibm.wala.cast.python.ml/target/com.ibm.wala.cast.python.ml-0.0.1-SNAPSHOT-shaded.jar --format pretty --related 0 -- my_shape_mistake.py

Actual result

Exception in thread "main" java.lang.IllegalStateException: Could not create a entrypoint callsites:
    at com.ibm.wala.ipa.callgraph.propagation.PropagationCallGraphBuilder.makeCallGraph(PropagationCallGraphBuilder.java:240)
    at com.ibm.wala.ipa.callgraph.propagation.PropagationCallGraphBuilder.makeCallGraph(PropagationCallGraphBuilder.java:193)
    at com.ibm.wala.cast.lsp.WALAServer.calculateDiagnostics(WALAServer.java:361)
    at com.ibm.wala.cast.lsp.WALAServer.getDiagnostics(WALAServer.java:334)
    at com.ibm.wala.cast.python.ml.driver.PythonDriver.getDiagnostics(PythonDriver.java:49)
    at com.ibm.wala.cast.python.ml.driver.PythonDriver.getDiagnostics(PythonDriver.java:53)
    at com.ibm.wala.cast.python.ml.driver.Ariadne.main(Ariadne.java:368)

Expected result

Ariadne should analyze the file and report the invalid reshape.

Observation

In ml/com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/driver/Ariadne.java, the CLI creates a URI from the input path and checks the map using that URI:

String uri = Util.mangleUri(path.toUri().toString());

if (uriTextPairs.containsKey(uri)) {

However, the original code stores the input using fileName:

uriTextPairs.put(fileName, text);

I changed it locally to:

uriTextPairs.put(uri, text);

After rebuilding the upstream module and running the same command, Ariadne completed the analysis and reported:

[Warning] Cannot reshape pixel[n][28 * 28] to pixel[4][2]

My earlier commit containing the same one-line change and test input is here:

https://github.com/tarungangadhar/AriadneML/commit/2c8a9174

This suggests that the mismatch between the URI used for lookup and the filename used as the map key prevents the CLI input from being found. Please confirm whether using the URI as the map key is the intended fix.

Environment

macOS 26.5.1 (Build 25F80)
Apple Silicon arm64
Oracle Java 26.0.2
Apache Maven 3.9.16
wala/ML commit: 33bbcf4e18d295129c06fc78250cee0e4b30ef95
Ariadne JAR: com.ibm.wala.cast.python.ml-0.0.1-SNAPSHOT-shaded.jar
Dominant language
Java
Stars
27
Forks
19
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wala/ML

All issues in wala/ML

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.