rescript-lang / rescript-lang/rescript-vscode

No type hint for the module created by functor in function body.

Open
#762 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
ReScript
Stars
354
Forks
63
Avg merge
11h 29m
Merged PRs (30d)
1

Description

rescript version: 10.1.3
rescript-vscode version: 1.16.0
system version: ubuntu 22.04(wsl) x64
I need to create some private and temporary module in function body, and found that there is no type hint on the module created by functor if it is created in the function body. See the recorded gif below:
mnggiflab-compressed-from-screen-recorder-2023_04_2314_34_43

Contributor guide

Open the contributing guide

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.

Research direction

Start with the recorded GIF and reproduce the missing type hint using ReScript 10.1.3, rescript-vscode 1.16.0, and Ubuntu 22.04 under WSL. Inspect the VSCode plugin's handling of modules created by functors inside function bodies; done means the created module receives a type hint in that context.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.