8000 Don't recompile if --keep-pattern-variables option changes · Issue #7059 · agda/agda · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Don't recompile if --keep-pattern-variables option changes #7059

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

Closed
UlfNorell opened this issue Jan 12, 2024 · 2 comments · Fixed by #7060
Closed

Don't recompile if --keep-pattern-variables option changes #7059

UlfNorell opened this issue Jan 12, 2024 · 2 comments · Fixed by #7060
Assignees
Labels
ux: options Issues relating to Agda's command line options
Milestone

Comments

@UlfNorell
Copy link
Member

--keep-pattern-variables only affects interaction and should not require recompilation, but it's missing from

recheckBecausePragmaOptionsChanged used current =
blankOut used /= blankOut current
where
-- "Blank out" irrelevant options.
-- It does not matter what we replace them with, so we take the null value.
blankOut opts = opts
{ _optShowImplicit = empty
, _optShowIrrelevant = empty
, _optVerbose = empty
, _optProfiling = empty
, _optPostfixProjections = empty
, _optCompileMain = empty
, _optCaching = empty
, _optCountClusters = empty
, _optPrintPatternSynonyms = empty
, _optShowIdentitySubstitutions = empty
}

@nad
Copy link
Contributor
nad commented Jan 12, 2024

I was going to ask you to update the user manual, but apparently this option was incorrectly not included in the following list:

Agda records the options used when generating an interface file. If
any of the following options differ when trying to load the interface
again, the source file is re-typechecked instead:
* :option:`--allow-exec`
* :option:`--allow-incomplete-matches`
* :option:`--allow-unsolved-metas`
* :option:`--call-by-name`
* :option:`--cohesion`
* :option:`--confluence-check`
* :option:`--copatterns`
* :option:`--cubical-compatible`
* :option:`--cubical`
* :option:`--cumulativity`
* :option:`--double-check`
* :option:`--erase-record-parameters`
* :option:`--erased-cubical`
* :option:`--erased-matches`
* :option:`--erasure`
* :option:`--exact-split`
* :option:`--experimental-irrelevance`
* :option:`--flat-split`
* :option:`--guarded`
* :option:`--hidden-argument-puns`
* :option:`--infer-absurd-clauses`
* :option:`--injective-type-constructors`
* :option:`--instance-search-depth`
* :option:`--inversion-max-depth`
* :option:`--irrelevant-projections`
* :option:`--keep-covering-clauses`
* :option:`--local-confluence-check`
* :option:`--lossy-unification`
* :option:`--no-auto-inline`
* :option:`--no-eta-equality`
* :option:`--no-fast-reduce`
* :option:`--no-forcing`
* :option:`--no-guardedness`
* :option:`--no-import-sorts`
* :option:`--no-load-primitives`
* :option:`--no-pattern-matching`
* :option:`--no-positivity-check`
* :option:`--no-projection-like`
* :option:`--no-sized-types`
* :option:`--no-termination-check`
* :option:`--no-unicode`
* :option:`--no-universe-polymorphism`
* :option:`--omega-in-omega`
* :option:`--overlapping-instances`
* :option:`--prop`
* :option:`--qualified-instances`
* :option:`--rewriting`
* :option:`--safe`
* :option:`--save-metas`
* :option:`--syntactic-equality`
* :option:`--termination-depth`
* :option:`--two-level`
* :option:`--type-in-type`
* :option:`--warning`
* :option:`--without-K`

@UlfNorell
Copy link
Member Author

You mean it was correctly not added to the list, but incorrectly missing from the list in recheckBecausePragmaOptionsChanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux: options Issues relating to Agda's command line options
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0