You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit spack.yaml, with 'spack config edit', like leaving off a closing quote, or listing the same package twice in the packages section. For example: @alalazo
Save file and then try to edit again with 'spack config edit'. This will fail with the error below.
Error message
==> Error: Invalid environment configuration detected: error parsing YAML: near /usr/lynx/spack/stacks/lynx/spack.yaml, 9, 7: found character '%' that cannot start any token
While it's great to check the YAML files for valid syntax before parsing them, the commands used to edit those YAML files should not fail because of bad syntax, as that means we now have to call our editor directly with the path to the YAML file in order to correct this problem, when we should be able to use spack edit config to fix these issues.
Ideally, the syntax checker should run after we save changes to these files so that we catch errors immediately after editing them and can the run spack edit again to fix.
Steps to reproduce
Edit spack.yaml, with 'spack config edit', like leaving off a closing quote, or listing the same package twice in the packages section. For example:
@alalazo
Save file and then try to edit again with 'spack config edit'. This will fail with the error below.
Error message
While it's great to check the YAML files for valid syntax before parsing them, the commands used to edit those YAML files should not fail because of bad syntax, as that means we now have to call our editor directly with the path to the YAML file in order to correct this problem, when we should be able to use
spack edit config
to fix these issues.Ideally, the syntax checker should run after we save changes to these files so that we catch errors immediately after editing them and can the run
spack edit again
to fix.Prentice
Information on your system
General information
spack debug report
and reported the version of Spack/Python/PlatformThe text was updated successfully, but these errors were encountered: