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

a2x Syntax Error with .asdf/PyEnv #3564

Closed
Patterner opened this issue May 7, 2024 · 1 comment · Fixed by #3565
Closed

a2x Syntax Error with .asdf/PyEnv #3564

Patterner opened this issue May 7, 2024 · 1 comment · Fixed by #3565
Labels
bug Something isn't working building/portability Platform-specific issues, build issues unrelated to 1.0 Things that need not be done before the 1.0 version milestone

Comments

@Patterner
Copy link

Patterner commented May 7, 2024

Describe the bug

[  0%] Generating cjxl.1
  File "/home/p/.asdf/shims/a2x", line 3
    exec /home/p/.asdf/bin/asdf exec "a2x" "$@" # asdf_allow: ' asdf '
SyntaxError: invalid syntax

To Reproduce

which a2x
    /home/p/.asdf/shims/a2x
mkdir build
cd build
cmake ..
cmake --build .

Expected behavior

[  0%] Generating cjxl.1
[  0%] Generating djxl.1
[  0%] Built target manpages

Environment

  • OS: WSL2
  • Compiler version: Debian clang 17.0.6
  • CPU type: x86_64
  • cjxl/djxl version string: v0.10.2 661fec1 [AVX2,SSE4,SSE2]

Additional context

Line 435f of CMakeLists.txt:

    file(STRINGS "${ASCIIDOC}" ASCIIDOC_SHEBANG LIMIT_COUNT 1)
    if(ASCIIDOC_SHEBANG MATCHES "/sh|/bash" OR MINGW)

.asdf/shims/a2x

#!/usr/bin/env bash
exec /home/p/.asdf/bin/asdf exec "a2x" "$@" # asdf_allow: ' asdf '

I think the problem is the SheBang line which has "/usr/bin/env bash",
so it isn't recognized as a Shell script.

@Patterner Patterner changed the title a2x Syntax Error with asdf/PyEnv a2x Syntax Error with .asdf/PyEnv May 7, 2024
@mo271 mo271 added bug Something isn't working building/portability Platform-specific issues, build issues unrelated to 1.0 Things that need not be done before the 1.0 version milestone labels May 8, 2024
@mo271
Copy link
Member

mo271 commented May 8, 2024

Thanks for the report, @Patterner, can you check if #3565 fixes your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working building/portability Platform-specific issues, build issues unrelated to 1.0 Things that need not be done before the 1.0 version milestone
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants