Skip to content

spdx.ParseSyntax fails for LicenseRef-scancode- exceptions #36

Closed

Description

@william-elastisys

Hello!

Trying to parse a license-expression using ParseSyntax where the expression contains LicenseRef-scancode-xxx exceptions seems to fail.

For example:

spdx.ParseSyntax("GPL-2.0-only WITH somerandomexception") // Works fine
spdx.ParseSyntax("GPL-2.0-only WITH Classpath-exception-2.0") // Works fine

spdx.ParseSyntax("GPL-2.0-only WITH LicenseRef-scancode-cygwin-exception-2.0")
// Fails with: missing operand: expected exception after WITH

Activity

  1. andrew commented on Nov 2, 2026

    @andrew
    Contributor

    @william-elastisys thanks for reporting, fixed in #37 will tag a new release shortly.

  2. andrew commented on Nov 2, 2026

    @andrew
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions