Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Fails on reject-current-rule

Open
#2 0 comments 0 reactions 1 assignee View on GitHub

@nordfalk is already working on this.

Since Apr 23, 2018.

Assessment

This issue has not been assessed yet.

Description

$ apertium-preprocess-transfer-bytecode-j apertium-sme-nob.sme-nob.t1x /dev/null
WARNING: Macro set_neverdet is not defined. Ignoring call. Defined macros are: [guess_animacy, set_c_gen_nbr, maybe_det_nbr_to_adj, set_caseFirstWord, modify_prn_case, set_defnes, reset_caseFirstWord, switch_cases, copy_syn_label, set_prn_gen_nbr_art2, clean_det, modify_adj_gen_nbr, set_foc-word, set_caseprep, clean_cmp, set_defnes2] - for <transfer default="chunk">/<section-def-macros>/<def-macro c="arg.1: noun, arg.2: adjective                   –––––                   " n="modify_adj_gen_nbr" npar="2">/<call-macro n="set_neverdet">
Exception in thread "main" java.lang.UnsupportedOperationException: Not yet implemented:processInstruction(n = reject-current-rule - for <transfer default="chunk">/<section-rules>/<rule comment="C[] prn.gen.P                    Only runs where tl is *not* a determiner.">/<action>/<choose>/<when>/<reject-current-rule shifting="no">
        at org.apertium.transfer.generation.TransferBytecode.throwParseError(TransferBytecode.java:821)
        at org.apertium.transfer.generation.TransferBytecode.processInstruction(TransferBytecode.java:468)
        at org.apertium.transfer.generation.TransferBytecode.processChoose(TransferBytecode.java:652)
        at org.apertium.transfer.generation.TransferBytecode.processInstruction(TransferBytecode.java:456)
        at org.apertium.transfer.generation.TransferBytecode.writeMethodBody(TransferBytecode.java:106)
        at org.apertium.transfer.generation.TransferBytecode.<init>(TransferBytecode.java:1220)
        at org.apertium.transfer.generation.TransferBytecode.main(TransferBytecode.java:1329)
        at org.apertium.CommandLineInterface.main(CommandLineInterface.java:114)

See docs for reject-current-rule: https://github.com/apertium/apertium/blob/master/apertium/transfer.dtd#L457

Dominant language
Java
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apertium/lttoolbox-java

All issues in apertium/lttoolbox-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.