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

IDE: Data.NameMap.fromList.: duplicate name compilation error #3099

Closed
lucianojoublanc-da opened this issue Oct 3, 2019 · 1 comment · Fixed by #3103
Closed

IDE: Data.NameMap.fromList.: duplicate name compilation error #3099

lucianojoublanc-da opened this issue Oct 3, 2019 · 1 comment · Fixed by #3103
Assignees
Labels
language/now Language team priority NOW language Language team work

Comments

@lucianojoublanc-da
Copy link

We are seeing a compilation error message

Data.NameMap.fromList.: duplicate name ModuleName ....

And more specifically:

  • Only occurs in the IDE (daml build is fine)
  • Only in windows (ubuntu and macos DA laptops seem fine)
  • It's confirmed on SDK versions 0.13.27, 0.13.24

Steps to reproduce:

git clone https://github.com/digital-asset/derivhack2019
cd derivhack2019/examples/hellocdm
git checkout v0.0.1 # currently also reproducible on HEAD
daml studio

Opening the Main.daml file should trigger this error.

@cocreature we expect participants of a Barclay's hosted event to run into this, so if this can be given high priority it would be really helpful. Event is on the 16th but they already have access to the above material - that's how we initially found out about it (two people reported it already).

@GeorgSchneider GeorgSchneider added the language Language team work label Oct 3, 2019
@tweber-da
Copy link

Not a real fix, but if I re-export Org.Isda.Cdm.MetaFields in Org.Isda.Cdm.Classes and remove the module import of Org.Isda.Cdm.MetaFields in Main.daml, then the error disappears.

@cocreature cocreature added the language/now Language team priority NOW label Oct 3, 2019
@cocreature cocreature self-assigned this Oct 3, 2019
cocreature added a commit that referenced this issue Oct 3, 2019
Fixes #3099

See haskell/ghcide#152 for the
corresponding PR in ghcide
cocreature added a commit that referenced this issue Oct 3, 2019
Fixes #3099

See haskell/ghcide#152 for the
corresponding PR in ghcide
cocreature added a commit that referenced this issue Oct 3, 2019
Fixes #3099

See haskell/ghcide#152 for the
corresponding PR in ghcide
cocreature added a commit that referenced this issue Oct 4, 2019
Fixes #3099

See haskell/ghcide#152 for the
corresponding PR in ghcide
cocreature added a commit that referenced this issue Oct 4, 2019
* Avoid normalizing include dirs

Fixes #3099

See haskell/ghcide#152 for the
corresponding PR in ghcide

* bump to proper ghcide rev

* bump haskell-lsp rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language/now Language team priority NOW language Language team work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants