Bug 38150 - [Assets] User can create DataSet/ImageSet/SpriteAtlas with duplicating name
Summary: [Assets] User can create DataSet/ImageSet/SpriteAtlas with duplicating name
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2016-01-28 22:46 UTC by Oleg Demchenko
Modified: 2016-02-02 18:54 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Oleg Demchenko 2016-01-28 22:46:17 UTC
Steps to reproduce:
1) Create iOS single view project in XS
2) Open Assets.xcassets folder
3) Add Image Set and rename it to "Image"
4) Add second Image Set

XS automatically changes name of second image set to "Image-1", but user can rename it to "Image" manually and XS won't show any alert or warning.

XS should rename second image set to "Image-1" even if user is trying to change it manually(like in Xcode)


Env. details:
Comment 1 Jeffrey Stedfast 2016-02-01 18:49:00 UTC
fixed in git master
Comment 2 Oleg Demchenko 2016-02-02 03:32:13 UTC
Now I can observe another naming issue: http://screencast.com/t/cRW4gxueJvtI

As you can see from screencast it's impossible now to rename image asset to just "Image" if you have two image sets named "Image-1" and "Image-2".

Verified with: https://gist.github.com/27e0bb77a230ca38f06a
Comment 3 Jeffrey Stedfast 2016-02-02 13:19:20 UTC
Do you have a directory on the file system already named "Image"?
Comment 4 Jeffrey Stedfast 2016-02-02 18:53:19 UTC
So I've just tested this and had no problem renaming an Image asset back to "Image" from "Image-1".

The only way this can fail is if you have a file or directory named "Image" in your .xcassets directory, possibly left there from some previous tinkering?
Comment 5 Oleg Demchenko 2016-02-02 18:54:51 UTC
Hey, yeah @Jeff you were right, there was a folder named "Image" left there from some previous tinkering:)

Closing this one.