NO

Author Topic: Project creation errors...  (Read 3965 times)

CommonTater

  • Guest
Project creation errors...
« on: May 02, 2012, 04:14:14 PM »
Version 7 rc2 ... seems to have a problem with spaces in path names.
 
The first attachment shows the paths as I set them...
The second shows the error message ... note that it has the wrong path!
The PPJ file is also attached... note the quotes in the path names...
 
If I take out the space, it works.
 

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Project creation errors...
« Reply #1 on: May 15, 2012, 05:51:14 PM »
mmm... I can't reproduce it....
/Pelle

CommonTater

  • Guest
Re: Project creation errors...
« Reply #2 on: May 15, 2012, 06:11:56 PM »
mmm... I can't reproduce it....

Odd... it does it to me every time...   ???

What I did was to create the project per the images, toss in a quick "hello world" version of main.c...
The error comes when I close POIDE then click on the project file (.ppj or .ppw) to reload it.

I can't be sure but I'm guessing it's something to do with the result directory setting combined with the space in the path name...
 
It's not a big deal, I just remind myself not to put spaces in path names for now.

czerny

  • Guest
Re: Project creation errors...
« Reply #3 on: May 15, 2012, 06:22:56 PM »
I can reproduce the error. May be a second example helps?

CommonTater

  • Guest
Re: Project creation errors...
« Reply #4 on: May 15, 2012, 06:30:23 PM »
I can reproduce the error. May be a second example helps?

Thanks, my friend...


Note that if I change this...
Code: [Select]
POC_PROJECT_VERSION = 7.00#
POC_PROJECT_TYPE = 3#
POC_PROJECT_OUTPUTDIR = output#
POC_PROJECT_RESULTDIR = "..\..\a folder"#
POC_PROJECT_ARGUMENTS = #
to this...
Code: [Select]
POC_PROJECT_VERSION = 7.00#
POC_PROJECT_TYPE = 3#
POC_PROJECT_OUTPUTDIR = output#
POC_PROJECT_RESULTDIR = ..#
POC_PROJECT_ARGUMENTS = #
... it works.

Looks like it's not converting absolute to relative paths correctly.
 
« Last Edit: May 15, 2012, 06:35:46 PM by CommonTater »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Project creation errors...
« Reply #5 on: May 16, 2012, 06:10:26 AM »
Another example.
If i create new project with these values:

Name:     PathTest
Location: C:\code\PellesC\Forum\PathTest
Output:   C:\code\PellesC\Forum\PathTest\output
Result:   C:\code\PellesC\Forum\PathTest\Path Test

Then project file have these:
Code: [Select]
POC_PROJECT_RESULTDIR = ""Path Test""#
Code: [Select]
#
# Build PathTest.exe.
#
""Path Test"\PathTest.exe": \
output\main.obj
$(LINK) $(LINKFLAGS) -out:"$@" $**
and i can't use it.

If i change these:
Code: [Select]
POC_PROJECT_RESULTDIR = Path Test#
Code: [Select]
"Path Test\PathTest.exe": \
output\main.obj
$(LINK) $(LINKFLAGS) -out:"$@" $**
it works.

May the source be with you