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

riscof validateyaml fails due to special characters in schema_isa.yaml #107

Open
silabs-kjetil opened this issue Feb 6, 2024 · 1 comment

Comments

@silabs-kjetil
Copy link

Hi,

I am seeing the same errors as have been previously reported in this issue #17.

> riscof validateyaml --config=config.ini
    INFO | ****** RISCOF: RISC-V Architectural Test Framework 1.25.3 *******
    INFO | using riscv_isac version : 0.18.0
    INFO | using riscv_config version : 3.17.0
...
ruamel.yaml.reader.ReaderError: unacceptable character #x0080: special characters are not allowed
  in "/work/kjostera/experiments/riscof/venv_py310/lib/python3.10/site-packages/riscv_config/schemas/schema_isa.yaml", position 18507

Here are some more details on the environment where this has been reproduced.

> python3 --version
Python 3.10.6
> riscof --version
RISC-V Architectural Test Framework., version 1.25.3
> riscv-config --version
Version: 3.17.0

This is due to the special tick characters that are used in multiple description fields. Note that I do not see this error on all platforms so there might be some platform dependent encoding configurations that play a part in this issue. I can try to create a PR which replaces these characters with the ' character instead.

silabs-kjetil added a commit to silabs-kjetil/riscv-config that referenced this issue Feb 6, 2024
The use of a special tick character in schema_isa.yaml cause
the riscof validateyaml command to fail in some environments.
This has been reported in the following issues.

riscv-software-src/riscof#17
riscv-software-src/riscof#107
@silabs-kjetil
Copy link
Author

PR can be found in the riscv-config project: riscv-software-src/riscv-config#168

neelgala pushed a commit to riscv-software-src/riscv-config that referenced this issue Jun 7, 2024
* Replacing the special tick character

The use of a special tick character in schema_isa.yaml cause
the riscof validateyaml command to fail in some environments.
This has been reported in the following issues.

riscv-software-src/riscof#17
riscv-software-src/riscof#107

---------

Signed-off-by: Neel Gala <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant