Ariadne standalone CLI fails with “Could not create a entrypoint callsites” for an input file
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wala/ML
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Two producer self-recursion guards return ⊥ on the null-engine path where the resolver's policy is ⊤Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug summaries tensor inference
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oracle/javavscode#652 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenAPITools/openapi-generator#25014 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
AloisSeckar/demos-java#380 ·