Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Newcomer-type question...
Newcomer-type question... [message #486832] Sat, 19 September 2009 16:40 Go to next message
Dave  is currently offline Dave Friend
Messages: 2
Registered: September 2009
Junior Member
I am glad this forum is titled 'Newcomers'... 'cause that's what I am...

I am using Fedora Eclipse 3.4.1 for the first time on FC10. I followed the tutorials to make my first PHP project and first PHP file in that project. I added one line of code and saved it.

echo "Hello World!";


then I made a Run Config (to the best of my ability) and when I run my file I get the error:

Could not open input file: tsm.php



what am I doing wrong?

Dave
Re: Newcomer-type question... [message #486848 is a reply to message #486832] Sun, 20 September 2009 01:14 Go to previous messageGo to next message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"Dave" <davecove@gmail.com> wrote in message
news:h931hv$ovk$1@build.eclipse.org...
>I am glad this forum is titled 'Newcomers'... 'cause that's what I am...
>
> I am using Fedora Eclipse 3.4.1 for the first time on FC10. I followed the
> tutorials to make my first PHP project and first PHP file in that project.
> I added one line of code and saved it.
>
> echo "Hello World!";
>
> then I made a Run Config (to the best of my ability) and when I run my
> file I get the error:
>
> Could not open input file: tsm.php

Is it possible that it is looking for the file in a different directory than
where you saved it? Try specifying the working directory in the run config.
Re: Newcomer-type question... [message #486851 is a reply to message #486848] Sun, 20 September 2009 02:00 Go to previous message
Dave  is currently offline Dave Friend
Messages: 2
Registered: September 2009
Junior Member
That was it alright... on the Run Config Arguments tab, the Working Directory was set to the default dir, which was the 'workspace' directory just above the dir my project was in. When I fixed that, I got not only a run, but a debug! Debugging PHP is the whole reason I am investigating a move to Eclipse. Very happy to see it running.

It seems odd... why would Ecplise make the run config for a project default to a directory other than the dir the project is in? I understand why you would want to be able to change it, but the default value should be the dir where the project was created... imho.

Thanks Walter! (insert icon for an e-beer here)

Dave
Previous Topic:Problems with Eclipse under Snow Leopard
Next Topic:Fighting PDT install
Goto Forum:
  


Current Time: Fri Dec 19 09:37:08 GMT 2014

Powered by FUDForum. Page generated in 0.02019 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software