Support #4199
closedStylesheet Export File incorrectly marking something as an EE feature
0%
Description
Encountered seemingly a bug with the SEF feature where a predicate checking the value of an attribute is found in a sequence. When attempting to use the exported stylesheet with PE I'm getting an error "Cannot load expression with tag gcEE. The stylesheet uses Saxon-EE features".
I've cutdown the actual stylesheet I was attempting to export to just down to a template with the offending match predicate and verified that running the non-exported version with PE works just fine, but attempting to use the SEF version throws the same error.
I've tested various versions and the "gcEE" error seems to have been introduced in 9.8.0.1 and is still present all the way up to 9.9.1.2
Attached is the stylesheet used to test this behaviour.
Files
Updated by Michael Kay over 5 years ago
Did you specify a target edition when generating the SEF file? If you specify -target:PE
on the command line then the optimizer should refrain from generating code that PE cannot execute. (However, the test cases for this area are probably not very comprehensive.)
Updated by Karl Franks over 5 years ago
Ahh ♂️, that'll be it.....I'll blame the fact someone else had started looking at SEF, and they didn't seem to be using the target option - and other stylesheets didn't seem to require it.
Updated by Karl Franks over 5 years ago
can confirm using that option it now seems to generate the correct SEF and works with PE just fine
also oh dear, just noticed my face palm emoji doesn't seem to have been handled by plan.io correctly and come out as a "♂️" instead....
Updated by Michael Kay over 5 years ago
- Tracker changed from Bug to Support
- Status changed from New to Closed
Please register to edit this issue