Project folder bug??

Go To Last Post
27 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I created a folder and copied all the files I wanted from another project which will then be modified accordingly for a new project.

Now I create a new project in THAT FOLDER and give it a name, I have the "Create directory for solution" UNCHECKED yet AS6 insists on creating a folder for the new project and a dummy entry file even though that's NOT what I want to do, just create the new project in the EXISTING folder where all the files are. I don't even want an empty entry file.

Is this a bug, known bug or am I doing something wrong?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't know if this is a bug or not, but there is another way to accomplish what you are trying to do. Save the current project as a template, then create the new project using that template.

Gamu The Killer Narwhal
Portland, OR, US
_________________
Atmel Studio 6.2
Windows 8.1 Pro
Xplained boards mostly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

what about creating a project and then adding the necessary files?
Correct me, if I have wrongly understood the context.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you have a folder, even if empty, AS6 will create another folder inside it with the project.

It doesn't happen with AS4 and I don't want it to happen with AS6.

As I said there is a checkbox to "Create directory for solution" which is not checked so I was ASS_U_MEing that it is a bug if the directory is still created.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"If you have a folder, even if empty, AS6 will create another folder inside it with the project. "

I've used several vastly different IDEs... and they all do this.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And just to prove to myself the AS4 doesn't do it (with the "Create folder" checkbox unchecked) I created a folder called Folder_test and created a GCC project with the same name in THAT folder.

No folder created, the only thing in the folder is the project file itsef.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There is a distinct difference between "solution" and "project" in AS6. A solution is a container for one or more projects (i.e. there is a two level hierarchy)

Did vAS6 create the solution folder?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No solution folder...and I think I understand now, it has to do with my understanding of anything with the word solution in it and it's relation to another word which rhymes with BANKER. :?

Funny how solutions create problems.

edit and of course there is no option to create a SOLUTION, only a PROJECT.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
edit and of course there is no option to create a SOLUTION, only a PROJECT.

Well, there is an option to create a SOLUTION but an empty one. Please refer the screenshot attached

Attachment(s): 

Regards,
Deena

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You have the "Create directory for solution" box checked, does it make ANY difference if it is checked or unchecked in your system? ie does another directory get created if checked and NOT created if unchecked?

edit and I see that you seem to have the luxury of Studio 6.1??

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

/File/New/Project then in the Solution combo select Create new solution

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sid do you understand what I'm saying? :)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
You have the "Create directory for solution" box checked, does it make ANY difference if it is checked or unchecked in your system? ie does another directory get created if checked and NOT created if unchecked?

If it is checked, two levels of directories are created.
If unchecked, only one directory is created.`

Regards,
Deena

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is that how it is supposed to work though? As I said above AS4 does NOT create any folder with the box unchecked. :)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

If it is checked, two levels of directories are created.

This is getting more and more confusing. For a blank solution the "Create directory" check box is checked and locked. I can not uncheck it.

It should be simple:

The box should always be accessible. If checked a subfolder is created and the solution foles placed there. If unchecked no folder for the solution is created and the solution files are placed in the current folder.

Whether a subfolder for a project is created should depend on what type of solution/project you chose in the dialogue. Any created project should end up in a subfolder to the solution folder (whether it was created or the current folder was used).

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Is that how it is supposed to work though? As I said above AS4 does NOT create any folder with the box unchecked.

This decision against AS4 would have been taken with the reason being "portability of project/solution".

In these days it should be easy to port the source of the project/solution along with the configurations from one machine to another machine [need not to say that we have repositories like svn, cvs, etc., to share among other developers] but where there is a need to ship the entire project/solution to another person(say your customer). In this case, it is easier to zip the folder and send it, rather than with AS4 we have to look for the solution file, project file and other stuff manually since all the project files are at the same directory

Regards,
Deena

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
In this case, it is easier to zip the folder and send it

I fail to see how this has anything to do with a solution folder being created or not.

Quote:
rather than with AS4 we have to look for the solution file, project file and other stuff manually since all the project files are at the same directory

No version of AS4 that I have had installed has forced me to have all the project files in the same directory. (And as far as I can recall, AS4 did not at all use the solution concept.)

The point with being able to select whether to create the solution folder or not is exactly the case that John has: You already have a set of files that you want to make a project out of. In this existing folder hierarchy you want the solution and project files to be created.

Are you one of the developers of Atmel Studio?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
need not to say that we have repositories like svn, cvs, etc
But come down to EARTH! We are talking about a chips with 1K memory size at times, not a microsoft like operating system within an AVR.

I NEVER have solutions (30+years), just a single project in one folder, all files are there.

This a one of the gripes people have with the ASF. AVR1300 (ADC examples) has some 833 files into 40 folders and it's almost 8MB in size. To get the ADC working it's about 10 lines of code-That's all.

Who are the crazy people working on the AS6 project?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Mon. Jan 21, 2013 - 07:50 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
there is no option to create a SOLUTION, only a PROJECT.
ChaunceyGardiner wrote:
/File/New/Project then in the Solution combo select Create new solution

js wrote:
Sid do you understand what I'm saying? :)

Apparently not.

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Quote:
In this case, it is easier to zip the folder and send it

I fail to see how this has anything to do with a solution folder being created or not.

If no folder is created for solution then may be all the project files could be in same folder...

Quote:

No version of AS4 that I have had installed has forced me to have all the project files in the same directory. (And as far as I can recall, AS4 did not at all use the solution concept.)

Ofcourse, but by default AS4 creates all the projects at a default documents directory. In contrast AS6 created one folder by default :)

Quote:
You already have a set of files that you want to make a project out of. In this existing folder hierarchy you want the solution and project files to be created.

We do have this as a feature request in our internal bug tracker

Quote:
Are you one of the developers of Atmel Studio?

I guess my answer to the previous quote answers this question :lol:

Regards,
Deena

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
AVR1300 (ADC examples) has some 833 files into 40 folders and it's almost 8MB in size. To get the ADC working it's about 10 lines of code-That's all.

I prefer the older version of AVR1300 which have 101 files. 92 of them are documentation (doxygen).
Look in a older techlib8.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It seems to me the "create directory" tick box is simply misnamed. I too have been wondering why it is that if I create an "ledblink" project I actually get "..\Atmel Studio\ledblink\ledblink\Debug" rather than just "..\Atmel Studio\ledblink\Debug". I understand now. One level of "ledblink" is the Solution and the inner level is the Project and if the box had not been ticked I would have got the ""..\Atmel Studio\ledblink\Debug" I expected. But that's creating a directory (in fact two levels) even though I unticked a box for "Create Directory".

So the tick box should either be labelled something like "Only create directory at the Solution level" or "Create one level of directory" or "Create both Solution and Project level directories" or "Create two levels of directory" depending on the sense of the switch (whether it turns on or off). One things for sure, as John's thread demonstrates, having it create any directory when you've told it not to is plain confusing.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JS, I agree with you. This stuff is nuts. It has been copied from Microsoft's Visual Studio, and made worse. It really got nasty many years ago when Microsoft went from "workspace" to "solution". However with Visual Studio, if you perform the right incantations and sprinkle holy water, you can get it to create a new project without creating a folder.

I don't create new projects often and when I do, I forget the incantations, etc. I think it works like this. If you want a project in a folder called ABC, when you create the project, browse to the parent folder of ABC. Then if you fill the form correctly and uncheck the right boxes, it will put the project in the existing ABC folder.

But this doesn't seem to work with Atmel Studio. Unfortunately Atmel Studio insists on creating a folder and if one already exists it will abort. I wish this could be changed.

The whole notion of solutions and projects seems more trouble than it is worth. I have many projects, mostly Visual Studio projects, and only one of them has multiple projects in one solution. That one builds a library from about ten projects. In that one case it is handy to be able to click once and have all the projects built, if they need to be, and then have the library built.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

One thing that would improve Visual Studio, and probably Atmel Studio, is having a way to erase your mistakes. If I create a new project and get the incantations wrong, I get solutions and stuff I don't want. I could start over until I get it right, but Studio remembers all the mistakes and they appear on the list of solutions to choose from. As they all have the same name, this list becomes unusable.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

If I create a new project and get the incantations wrong, I get solutions and stuff I don't want. I could start over until I get it right, but Studio remembers all the mistakes and they appear on the list of solutions to choose from.

Yes this annoys me too. I believe it's the case that if you delete the .atsln file (and maybe the directory itself) that they no longer get listed there but some kind of maintenance to allow you to easily ditch things would be a bonus.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

steve17 wrote:
I could start over until I get it right, but Studio remembers all the mistakes and they appear on the list of solutions to choose from. As they all have the same name, this list becomes unusable.

Are you talking about the MRU list under /File/Open ? You can control that - just select one of the non-existing items and see what happens.

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

steve17 wrote:
The whole notion of solutions and projects seems more trouble than it is worth.

To you, maybe. I use multiproject solutions all the time.

It should have been easier to create one or more projects in the solution folder, though, for anybody that prefers that layout.

Sid

Life... is a state of mind