Coder Social home page Coder Social logo

hl2sdk-manifests's People

Contributors

dvander avatar gammacase avatar kenzzer avatar psychonic avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hl2sdk-manifests's Issues

The AMBuildScript will mangle the path to itself and fails to configure

My project uses the following file tree:

- configure.py
- deps
  - metamod-source
    - hl2sdk-manifests

(deps/metamod-source is a git submodule pointing to metamod-source, which points to hl2sdk-manifests)

Upon executing this line, the path is mangled at some point and configuration fails.
hl2sdk_manifests is a valid absolute path in this case:

builder.Eval(os.path.join(hl2sdk_manifests, 'SdkHelpers.ambuild')

The resulting errors show incorrect paths:

python3 ../configure.py --hl2sdk-manifests /home/user/dev/recorder/deps/metamod-source/hl2sdk-manifests/
...
Configure failed: [Errno 2] No such file or directory: '/home/user/dev/recorder/home/user/dev/recorder/deps/metamod-source/hl2sdk-mani/SdkHelpers.ambuild'

python3 ../configure.py --hl2sdk-manifests ../deps/metamod-source/hl2sdk-manifests/
...
Configure failed: [Errno 2] No such file or directory: '/home/user/dev/deps/metamod-source/hl2sdk-manifests/SdkHelpers.ambuild'

Here is the full output:

Traceback (most recent call last):
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/prep.py", line 156, in Configure
    if not cm.generate(options.generator):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/context_manager.py", line 93, in generate
    self.parseBuildScripts()
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context_manager.py", line 50, in parseBuildScripts
    self.execContext(cx)
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context_manager.py", line 148, in execContext
    exec(code, scriptGlobals)
  File "/home/user/dev/recorder/AMBuildScript", line 85, in <module>
    SdkHelpers = builder.Eval(os.path.join(hl2sdk_manifests, 'SdkHelpers.ambuild'), {
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context.py", line 115, in Eval
    return self.cm.evalScript(self, path, vars or {})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context_manager.py", line 60, in evalScript
    obj = self.importScriptImpl(context, path, vars or {})
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context_manager.py", line 77, in importScriptImpl
    self.generator.addConfigureFile(parent, scriptPath)
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/amb2_gen.py", line 744, in addConfigureFile
    self.db.add_or_update_script(path)
  File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/database.py", line 826, in add_or_update_script
    stamp = os.path.getmtime(path)
            ^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 67, in getmtime
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/dev/deps/metamod-source/hl2sdk-manifests/SdkHelpers.ambuild'
Configure failed: [Errno 2] No such file or directory: '/home/user/dev/deps/metamod-source/hl2sdk-manifests/SdkHelpers.ambuild'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.