News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

PreProc

Started by czerny, January 03, 2012, 02:52:30 AM

Previous topic - Next topic

CommonTater

That's not a bug. 

POIDE is almost entirely project driven. It would not make sense to let you compile or process files that are not part of an active project... I seriously doubt Pelle even considered it when writing the IDE (I wouldn't have).

LOL... I gotta hand it to you... you sure do come up with some odd-ball problems!



TimoVJL

Quote1. A just renamed file (in the project panel) doesn't compile.
After renaming you have to reopen the file before compiling ? feature ?

Quoteif I understand your snippet right, this is just a info what else I can get from the project options.
In that way i can compile my test files with projects options even they are not included to project. (It can be used for files in project too ?) Just for example.
May the source be with you

czerny

#32
tater:
QuotePOIDE is almost entirely project driven. It would not make sense to let you compile or process files that are not part of an active project... I seriously doubt Pelle even considered it when writing the IDE (I wouldn't have).

I do not want process files from INACTIVE projects. I want process EXCLUDED files from ACTIVE projects. And it is clear to me that that is not normaly available. I have said that before.

timovjl:
Quote
Quote
    1. A just renamed file (in the project panel) doesn't compile.
After renaming you have to reopen the file before compiling ? feature ?
If this is the case, then it happend normally behind the scenes. If one renames a file, there isn't any prompt 'should I reload file?'

There should be the ADDIN_DOCUMENT_INFO.fDirty flag set. The file name should be marked with an asterisk resp.

czerny

czerny

My english isnot very good, so it may be that I hav not accurate discribed what I want to know.

So I will ask it more exactly:

How can I detect if a file (included member of an open project) is just renamed in the project panel?

czerny


CommonTater

Your best plan might be to simply make a second project with your test file(s) as an active document... You can always recycle the same project by including it in different workspaces...

The workspace editor makes this easy as you can just drag and drop the project into the editor's list.

czerny

I have done this yet.  That is the cause for my question.

Another observation:

1. Load an arbitrary project.
2. Load one of its files in the editor.
3. Rename this file (this is regognized at the editor tab)
4. Rename the same file once more (this is not regognized)

czerny

czerny

Here is a little test project.

czerny