Installing conflicting modules

in utopian-io •  7 years ago  (edited)

If you install multiple conflicting modules with the same names exported you will get an error.

I found multiple modules named 'Graph'.
Module 'Main' is trying to import it.
Modules with that name were found in the following locations:
    package elm-community/graph
    package iosphere/elm-network-graph
    package drathier/elm-graph

It seems to me that this could be caught at the time when you run elm-package install, it should be able to check if the code is already exported in the existing modules and warn you at least there might be a conflict.

Also when you are publishing a module, it would even be better to know that another module already claimed that space. That could be done by maintaining a database of exported names for key modules and warning you if you clash with them.

In the end I really want to be able to say from this package import this name under this other alias.
and there is an issue on that here Allow disambiguation when two packages expose modules with the same name



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Your contribution cannot be approved yet, because it is in the wrong category. The correct category for your post is Suggestions.

As a developer I wouldn't consider package name conflicts a bug but bad design/conventions. Therefore I see this more as a suggestion for improvement rather than an actual bug.

Please edit your post to use the right category at this link, as shown below:

You can contact us on Discord.
[utopian-moderator]

Good idea

If there's an open issue on GitHub you authored, you can add a screenshot of your account or the issue while you are logged in.

No I did not, it is not even clear to me what the procedure is for filing bugs here or in github. I mentioned this https://utopian.io/utopian-io/@h4ck3rm1k3st33m/interface-for-managing-project-contributions-into-other-systems here where I suggested that each project needs to define the method of interfacing to utopian. Also for the utopian project itself, I have stopped filing issues because I get zero feedback. It seems that the model is not yet really worked out.

There's a lot that is not worked out perfectly. Workflows, tools, rules, communication... all those things will improve over time. Just be a little bit patient. There's really a lot of feedback we have to discuss.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Congratulations @h4ck3rm1k3st33m! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published 4 posts in one day

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Hey @h4ck3rm1k3st33m I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x