Skip to content
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

Spelling suggestions will repeat the same name in the presence of opened modules #7864

vicuna opened this issue Oct 18, 2018 · 1 comment


None yet
2 participants
Copy link

commented Oct 18, 2018

Original bug ID: 7864
Reporter: ggole
Assigned to: @nojb
Status: resolved (set by @nojb on 2018-11-05T12:25:46Z)
Resolution: fixed
Priority: normal
Severity: trivial
Version: 4.06.1
Fixed in version: 4.08.0+dev/beta1/beta2
Category: toplevel
Monitored by: @nojb

Bug description

When the same name is defined at top level and in opened modules, spelling suggestions will list that name, unqualified, multiple times. The result is slightly ridiculous:

Hint: Did you mean foo, foo or foo?

Steps to reproduce

Define the same name in several modules and open them. Then misspell that identifier such that spelling suggestions are made.

    OCaml version 4.06.1

module A = struct let foo = () end;;

module A : sig val foo : unit end

module B = struct let foo = () end;;

module B : sig val foo : unit end

open A;;

open B;;

let foo = ();;

val foo : unit = ()


Characters 0-3:
Error: Unbound value fop
Hint: Did you mean foo, foo or foo?


This comment has been minimized.

Copy link

commented Nov 5, 2018

Comment author: @Armael

Fixed by #2109.

@vicuna vicuna closed this Nov 5, 2018

@vicuna vicuna added the toplevel label Mar 14, 2019

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.