Use of Programmer's Notepad magic folder?

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

Dumb question, but the help, FAQ's, manuals and home page do not explain the concept of the magic folder in Programmer's Notepad. Programmer's Notepad 2 is part of the WinAVR install. After setting up a project, right click on the project name in the projects sidebar. A list pops up and one of the selections is "magic folder"

What is this and how is it used?

Thanks in advance,
-Bryan (tool whore)

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

"Magic" folder is a folder in the project that shows the contents of an actual folder/directory on the hard drive. This is dynamic; adding a file in the 'linked' folder will show the file name in the magic folder. Other PN folders are "false" in that they do not actually exist on the harddrive as seperate folders.

Nice to be first in with a reply for once!
- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Thanks Dean,

How is it used? There must be some reason it's included that allows for some function that makes life easier. I alos noticed that the 'remove' option for the magic folder does not seem to work. The 'delete' feature works.

-Bryan

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

It may make it easier to get log files, or see the intermediate files during compiling, or maybe it was just REALLY easy to add it :)

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

Honestly, I'm not sure why they're in there, but I imagine that they could be useful elsewhere. You can always write to the author of PN, Simon Steele:
http://pnotepad.org/
http://sourceforge.net/projects/...

I know that he's in the middle of writing up some user documentation.

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

Ok, I just sent Simon an email. I'll post the response here when I get it.

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

Here is Simon's response.

Hi Bryan,
- Hide quoted text -

> Programmers Notepad has been a very useful tool and I am eager to
> understand all of the features. What is the purpose of the Magic
> Folder? There is a discussion on the AVRfreaks forum about the purpose
> of it. I am assuming that it is used for a specific purpose.

Magic Folders are useful when the set of files that makes up a project
basically consist of all files in a directory tree. Using a magic folder
saves the user from having to add all of those files and keep the
project up-to-date. Instead, every time the project is loaded the magic
folder updates its list of contents.

Java projects, for example, are often constructed in a manner where the
directory tree provides a good project organisation:

com
mycompany
Class1.java
Class2.java
otherco
Class3.java

Magic folders mean that the user doesn't have to create this structure
twice.

You are right (on the avrfreaks forums) in saying that the Remove option
for magic folders does not work at the moment - this is a bug. Also,
currently the project has to be reloaded to refresh the magic folder.
This will change in a future version.

Hope that helps!

Simon.

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

I use it for my "code library", including AVRlib, misc code downloaded from the internet, etc. as well as for the AVR system headder folder. This is usefull, as I can then reffer to code that i've downloaded easily so I can see how a particular function is done.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Quote:
how is it used?

Quote:
not sure why they're in there

Suggestion: Point a magic folder to

C:\WinAVR\avr\include

and reach the all of the standard include files easily from within PN?

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

Yep, thats what I do - like I said two posts ago. Very usefull stuff, as then I can check out the headder names and contents without having to browse through my HD everytime...

Incideantally, has anyone encountered a bug in PN2 where opening a file every so often make s the project and output panes size to 0?

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

abcminiuser wrote:

Incideantally, has anyone encountered a bug in PN2 where opening a file every so often make s the project and output panes size to 0?

Yeah, I have. Especially if you click on a file say in Windows Explorer. I've just been too lazy to fill out a bug report on it. Could you fill one out at the PN project page on SourceForge?

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

Quote:
I've just been too lazy

Of course You haven't! You've just been too busy working on the next WinAVR, as You know we all want "Your baby".

:wink:

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

JohanEkdahl wrote:
Quote:
I've just been too lazy

Of course You haven't!

Well, for that particular bug in PN, I've known about it for awhile, so yes I've been lazy on that.

JohanEkdahl wrote:

You've just been too busy working on the next WinAVR, as You know we all want "Your baby".
:wink:

Aha.Well.
It's coming along. Obviously avr-libc 1.2.1 has had to get out. Next are issues with the Makefile Template and MFile. Then installer issues. So far that's it. So sometime soon.....:)