`open <namespace>` command does not work as expected
Open
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 384
- Forks
- 124
- Avg merge
- 22h 28m
- Merged PRs (30d)
- 10
Description
Calling open Lean before #doc command does not open the namespace inside of ```lean ... ``` code blocks. Example:
open Lean
#doc (Manual) "Test" =>
```lean
#check MetaM -- unknown identifier 'MetaM'
```
Calling it inside of ```lean ... ``` works as expected
#doc (Manual) "Test" =>
```lean
#check MetaM -- Lean.Meta.MetaM (α : Type) : Type
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two examples in the issue, comparing an open Lean declaration before #doc with one inside the Lean code block. Trace how namespace context is applied to documented code blocks; done means the first example resolves MetaM as the second does.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100