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

Support for analyzing multiple local modules (multi-module projects) by using PYTHONPATH #176

Merged
merged 41 commits into from
Apr 25, 2024

Commits on Mar 26, 2024

  1. Add PYTHONPATH to the analysis (#91)

    * First test.
    
    * Add comment.
    
    * Test 2.
    
    Should fail.
    
    * More tests.
    
    * Add comment.
    
    * Extract local variable refactoring.
    
    * Improve variable name.
    
    * Add logging.
    
    * Decrease logging level.
    
    * Fix bug with determining whether a module is "local."
    
    The old code didn't consider the full path of the module, which is what
    is contained in `localModules`. But, it still doesn't do what I think it
    should do, which makes me believe that the generated CAst is incorrect.
    
    * Replace slash with dot in test filenames.
    
    * New test.
    
    This one has a sibling script in the module that uses the other sibling.
    
    * Implement `getSignature()` for `com.ibm.wala.cast.python.parser.PythonParser.translateToCAst().PythonScriptEntity<T>`.
    
    No signature currently so return `null`.
    
    * Actually add the test files.
    
    * Fix filename for test.
    
    * Remove redundant log.
    
    * Fix compilation error.
    
    * Only test PYTHONPATH for Jython3.
    
    It's only supported for Jython3.
    
    * Add docs.
    khatchad committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    4e1f622 View commit details
    Browse the repository at this point in the history
  2. Remove copy and paste error.

    khatchad committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    6a8e718 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Configuration menu
    Copy the full SHA
    eb9975b View commit details
    Browse the repository at this point in the history
  2. Remove redundant logs.

    khatchad committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    7506af2 View commit details
    Browse the repository at this point in the history
  3. Fix logs.

    Module names don't include a file extension.
    khatchad committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    5bf8bd2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c11f394 View commit details
    Browse the repository at this point in the history
  5. Move variable.

    khatchad committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    11dd298 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Use the filename if it's a source file module.

    We have the full file path, why not use it? I see in 3cf9b35 that this was changed for `FileModule`s, but I cannot understand why.
    khatchad committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    57b1680 View commit details
    Browse the repository at this point in the history
  2. Revert "Use the filename if it's a source file module."

    This reverts commit f3decd6. It's not
    working.
    khatchad committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    f9af063 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Add launch configuration.

    To debug Maven builds remotely.
    khatchad committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    b44526c View commit details
    Browse the repository at this point in the history
  2. Revert "Guard against files that don't exist."

    This reverts commit 70f01d4. It works
    even when the files "don't" exist.
    khatchad committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    c423159 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a9bb846 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. Class tests for PYTHONPATH (#93)

    * More test files.
    
    * Fix test file.
    
    * Add classes.
    
    * Add test.
    
    * Add test.
    
    * Add test.
    
    * Add test.
    
    * New test.
    
    * New test.
    
    * Fix test code.
    
    * New test.
    
    * New test.
    
    * New test.
    khatchad committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    f8f3a04 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Modify launch config.

    khatchad committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    2ec5e9d View commit details
    Browse the repository at this point in the history
  2. Fix build.

    khatchad committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    ee55339 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    5b1e9fc View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Enhancements to PYTHONPATH.

    * Fix wala#177.
    
    * Fix wala#178.
    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    544499d View commit details
    Browse the repository at this point in the history
  2. Capitalize constant.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    9fbd8d1 View commit details
    Browse the repository at this point in the history
  3. Make more robust.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    ce556df View commit details
    Browse the repository at this point in the history
  4. Simplify lambda.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    ad59ac0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a23b4ad View commit details
    Browse the repository at this point in the history
  6. Revert "Extract local variable refactoring."

    This reverts commit e042ce0.
    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    d35b1dc View commit details
    Browse the repository at this point in the history
  7. Localize log.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    6cc6742 View commit details
    Browse the repository at this point in the history
  8. Add log.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    c5f1e13 View commit details
    Browse the repository at this point in the history
  9. Use method references.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    3794eb0 View commit details
    Browse the repository at this point in the history
  10. Enhancements to PYTHONPATH.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    55e5ee8 View commit details
    Browse the repository at this point in the history
  11. Fix merge error.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    0906a55 View commit details
    Browse the repository at this point in the history
  12. Update tests.

    khatchad committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    4353a2d View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. Configuration menu
    Copy the full SHA
    9bd0088 View commit details
    Browse the repository at this point in the history
  2. Remove added whitespace.

    khatchad committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    696aa85 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Handle relative imports (#97)

    * Remove periods from end of logging statements.
    
    Period is a valid path now with relative imports.
    
    * Fix the resolved relative import path.
    
    * Add test directory to PYTHONPATH.
    
    * Fix a bug with the wrong instance key.
    
    We need the instance key for the node that we are examining in the loop
    not one that we are creating constraints for.
    khatchad committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    3d9856b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3a1551e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5329f4f View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    b77e8ff View commit details
    Browse the repository at this point in the history
  2. Use method reference.

    khatchad authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    c24fd94 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Rename method.

    khatchad committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    cf8775f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8560264 View commit details
    Browse the repository at this point in the history
  3. Extract method.

    khatchad committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    e369a23 View commit details
    Browse the repository at this point in the history
  4. Extract method.

    khatchad committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    745970c View commit details
    Browse the repository at this point in the history
  5. Fix refactoring.

    khatchad committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    019cd40 View commit details
    Browse the repository at this point in the history
  6. Add javadoc.

    khatchad committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    22260cf View commit details
    Browse the repository at this point in the history