NO

Author Topic: cannot relocate result dir from new project wizard.  (Read 5448 times)

CommonTater

  • Guest
cannot relocate result dir from new project wizard.
« on: June 16, 2012, 01:39:13 AM »
POIDE will no longer allow me to have project result files in folders below the ppj folder...
The attachment is pretty self-explanatory... this is new with 7.00 RC3...
 
If I manually edit the POC_PROJECT_RESULTDIR to read ..# or ..\# it works just fine.  It's just the wizard won't let me do it...
 
The desired file tree is like this...

AllProjects --- workspace1 --- project1 --- output
                                        ... source.c
                                        === project1.ppj
                           --- project2 --- output
                                        ... source.c
                                        ... resources.rc 
                                        === project2.ppj
                           ... project1.exe
                           ... project2.dll
                           === workspace1.ppw

 
I used to do this all the time with 5.0 and 6.0 with no problems at all.  For reasons wholly unclear version 7 just won't do it.
« Last Edit: June 16, 2012, 04:38:38 AM by CommonTater »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: cannot relocate result dir from new project wizard.
« Reply #1 on: June 16, 2012, 11:11:40 AM »
Maybe PellesC ide needs File menu option to create New Workspace ?
File -> New -> Workspace

BTW:
If you first create empty workspace/project and add new projects folders below it,
maybe that works. You can remove that empty project when the first real project is created.

Name:     TestPrj
Location: C:\code\PellesC\TestPrj
Output:   C:\code\PellesC\TestPrj\output
Result:   C:\code\PellesC\TestPrj
Create new workspace

Name:     project1
Location: C:\code\PellesC\TestPrj\project1
Output:   C:\code\PellesC\TestPrj\project1\output
Result:   C:\code\PellesC\TestPrj\project1\..
Add to existing workspace

Name:     project2
Location: C:\code\PellesC\TestPrj\project2
Output:   C:\code\PellesC\TestPrj\project2\output
Result:   C:\code\PellesC\TestPrj\project2\..
Add to existing workspace
May the source be with you

CommonTater

  • Guest
Re: cannot relocate result dir from new project wizard.
« Reply #2 on: June 16, 2012, 03:33:12 PM »
Maybe PellesC ide needs File menu option to create New Workspace ?
File -> New -> Workspace

Exactly what it needs....
 
The problem is that workspaces are a side effect of creating projects, the ppw file is then stuffed into the folder with one of the project files.... But if you look at this thread you will see that is not how we organize our work... We want to build projects inside a workspace.
 
Following your lead it would be something like this...
 
Workspace root = d:\Code
 
File -> New -> Workspace ... 
Name: skyhook
ppw =  d:\code\skyhook\skyhook.ppw
 
File -> New -> Project
Name : server
ppj = d:\code\skyhook\server\server.ppj
Location: d:\code\skyhook\server
Output: d:\code\skyhook\server\output
Result: d:\code\skyhook\
 
The reason I want the Result pointing at the workspace folder is that when I have multiple projects I can use that folder to get all the EXEs, DLLs etc all into one place for testing.
 
It has always been awkward to arrange this structure, but now, short of manually editing the ppj files, it's impossible.  If I open one of my older projects with this structure, POIDE can edit, compile, build, even rebuild the workspace with no problems... it's that cursed wizard thats the problem.

Here's a couple of captures from one of my project "workspaces"... the first is the workspace itself, the second is the RMRemote folder within the workspace... the source, ppj fles, etc are all in the folders within the workspace, the runtimes are all in the workspace folder itself. As it should be.
 
« Last Edit: June 17, 2012, 01:14:59 AM by CommonTater »

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: cannot relocate result dir from new project wizard.
« Reply #3 on: June 16, 2012, 09:00:48 PM »
How about a global output folder below the workspace where each project points to?
---
Stefan

Proud member of the UltraDefrag Development Team

CommonTater

  • Guest
Re: cannot relocate result dir from new project wizard.
« Reply #4 on: June 16, 2012, 09:47:47 PM »
How about a global output folder below the workspace where each project points to?

Won't work... The wizard demands that the result folder points inside each project folder.

You should be able to point the result folder *anywhere*.   POIDE proper does this... it's the wizard blocking it... It never used to...
 
Try this... modify a "hello world" project so that it's result folder points to a completely different hard drive or partition... you will also have to change the build chain at the bottom... but the various tools and POIDE itself will work with it...  I took a project on D:\c-code\test and set it's result directory to j:\  which is a flash drive, and it worked.
 
« Last Edit: June 16, 2012, 10:01:28 PM by CommonTater »

czerny

  • Guest
Re: cannot relocate result dir from new project wizard.
« Reply #5 on: June 16, 2012, 09:54:27 PM »
How about a global output folder below the workspace where each project points to?
There are so many different preferences. The ide should not restrict the user in this.

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: cannot relocate result dir from new project wizard.
« Reply #6 on: June 16, 2012, 10:20:04 PM »
Won't work... The wizard demands that the result folder points inside each project folder.
One way would be to create a hard link of the output folder in the workspace to one inside of each project folder using the Hardlink Shell Extension.
This would be a nice workaround.
---
Stefan

Proud member of the UltraDefrag Development Team

CommonTater

  • Guest
Re: cannot relocate result dir from new project wizard.
« Reply #7 on: June 16, 2012, 11:04:28 PM »
Won't work... The wizard demands that the result folder points inside each project folder.
One way would be to create a hard link of the output folder in the workspace to one inside of each project folder using the Hardlink Shell Extension.
This would be a nice workaround.

Stephan... thanks for the suggestions but it's just the wizard... I can manually edit the project files in notepad and get what I want.   It's just that I shouldn't have to and didn't have to until this latest version.

I'm far more concerned about the foul up with the resource editor... This I need to use every day.

UPDATE: Just tried this with 650 rc4 and 700 rc2... works fine both places.
 
« Last Edit: June 17, 2012, 01:14:31 AM by CommonTater »

CommonTater

  • Guest
Re: cannot relocate result dir from new project wizard.
« Reply #8 on: June 17, 2012, 01:45:58 AM »
Ok... temporary fix for this problem... Install 7.00 rc2... copy POIDE out of the Bin folder to a safe place... Install 7.00 rc3 (to get the compiler fixes, etc.) copy the RC2 version of POIDE into the Bin folder.
 
 
 
 

CommonTater

  • Guest
Re: cannot relocate result dir from new project wizard.
« Reply #9 on: June 17, 2012, 04:06:49 PM »
Not Fixed in 700 RC4....  >:(