- This topic has 54 replies, 7 voices, and was last updated 8 years, 6 months ago by rijwan.
-
AuthorPosts
-
Brian FernandesModeratorOkay, so this appears to be the crux of the problem; the command I gave you worked just fine for me.
We know if you go to the Node directory and type node, you get the node prompt. If we use the full path, this command should work from any location as well (does for me). So, from your temp folder, if you execute
F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node
or
F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node.exe
does this give you the node prompt?
Note: If not, you could try quoting the entire string (though should not be necessary as there are no spaces). Please be sure to double check that the path we’re using is the right path to the node executable.
mongonvParticipantHey Brian,
Both of those go to the node prompt when run from the f:\me2015\temp folder.
Brian FernandesModeratorOkay, I have a feeling the problem could be the PG node script that we’re trying to run. Get to the command prompt and change to the following directory
C:\Users\Ed\.myeclipse\phonegap\com.genu tec.eclipse.mobile.embedded.phonegap_3.6.3\win32-me20141201-1428\node_modules\phonegap\bin
Now execute
F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node phonegap.js create PGTest
Does that work? Do ensure that you are in the folder that contains the phonegap.js file when executing this command.
mongonvParticipantHey Brian,
Here are the results of that run:C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3\win32-me20141201-1428\node_modules\phonegap\bin>F:\ME2015\plugins\com.genuit
ec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node phonegap.js create PGTest
The system cannot find the path specified.‘node’ is not recognized as an internal or external command,
operable program or batch file.C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3\win32-me20141201-1428\node_modules\phonegap\bin>
It failed saying it could not find node. The phonegap.js was in that folder too.
Let me know what else to do.
Thanks much
Brian FernandesModeratorOkay, so you get node prompt, but it can’t seem to execute the phonegap node script. Here are two very basic node scripts. The only difference between them is that one includes a #!/usr/bin/env node entry at the start of the file – I’m wondering if this makes a difference.
Unzip the attachment to any directory, go to that directory on the command line, and try to execute both scripts with:
F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node node1.js
and
F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node node2.js
Do both work and print “Hello World” to the console?
Attachments:
You must be logged in to view attached files.
mongonvParticipantHey Brian,
Both versions print “Hello World” and no errors.F:\ME2015\NodeTemp>F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node node1.js
Hello WorldF:\ME2015\NodeTemp>F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node node2.js
Hello WorldF:\ME2015\NodeTemp>
Brian FernandesModeratorWell, that’s good news and bad news, I was hoping one of those wouldn’t work and give us a better idea of what is going wrong.
I wonder if there is something wrong with the PhoneGap version installed – a problem during unzipping or something like that. If you go to c:\users\Ed\.myeclipse\phonegap folder and check properties on the com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3 folder, how big is it? It should be around 34 MB.
We’ll dig deeper if the size seems right.
mongonvParticipantHey Brian,
The properties for the folder C:\Users\Ed\.myeclipse\phonegap says:111 mb (116,653,007 bytes)
That is a tad bigger than the 34 mb you are expecting.
There are two subfolders in there:
com.genuitec.eclipse.mobile.embedded.phonegap_3.5.0 – 76.3 meg
com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3 – 34.9 megIs the 3.5.0 folder not supposed to be there?
Brian FernandesModeratorI was asking for properties only on the com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3 folder, not the phonegap folder, so those figures do look right. The 3.5.0 folder is OK, it would be the version that was installed by a prior version of MyEclipse – the size of that too should have been around 36MB, no idea why that folder is twice the size. For now though, it isn’t what MyEclipse is using (and not what we are testing) so it does not matter.
Try this:
1) In MyEclipse – delete your error log.
2) Shut down MyEclipse.
3) Rename the com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3 folder in c:\users\ed\.myeclipse\phonegap to com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3_old
4) Start MyEclipse, attempt to create a new PhoneGap project, I believe this will re-create the folder (please confirm).I don’t think this will actually fix the problem, but it should reset the PG 3.6.3 installation and the error log will indicate issues during creation of that installation if any, please send me the error log.
After this, please repeat the test from a few posts up
Change to the following directory
C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3\win32-me20141201-1428\node_modules\phonegap\bin
and execute
F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node phonegap.js create PGTest
Any change in the output?
mongonvParticipantHey Brian,
Sorry for the delay on the test, been a busy day.Here is the screen output from running the test after doing the steps you outlined:
C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3\win32-me20141201-1428\node_modules\phonegap\bin>F:\ME2015\plugins\com.genuit
ec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node phonegap.js create PGTest
The system cannot find the path specified.‘node’ is not recognized as an internal or external command,
operable program or batch file.C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.6.3\win32-me20141201-1428\node_modules\phonegap\bin>
Let me know what else you want me to try.
Thanks much
Brian FernandesModeratorEd,
So there is unlikely to have been a corruption in the phonegap we extracted – or it happened again. In my last reply I asked you to attach the log file from the workspace, can you please send that across? That might tell us if something went wrong.
mongonvParticipantSorry missed that, like I said long day 🙂
Here is the log.
Attachments:
You must be logged in to view attached files.
Brian FernandesModeratorEdi,
Unfortunately, nothing related to the extraction in the log, though I did notice the PhoneGap version being listed when the creation command is executed – so apparently the script is getting to some point and then failing (will have to confirm). At this point, I wonder if your experience with the 3.5.0 CLI would be any different, could you try going to
C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.5.0\win32-me20140821-1433\node_modules\phonegap\bin
and execute
F:\ME2015\plugins\com.genuitec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node phonegap.js create PGTest
mongonvParticipantHey Brian,
Yes it was different:C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.5.0\win32-me20140821-1433\node_modules\phonegap\bin>F:\ME2015\plugins\com.genuit
ec.eclipse.embedded.nodejs_0.10.26.win32-x86_64-me20141201-1428\nodejs\node phonegap.js create PGTest
[phonegap] create called with the options C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.5.0\win32-me20140821-1433\node_modules
\phonegap\bin\PGTest com.phonegap.helloworld HelloWorld
[phonegap] Customizing default config.xml file
[phonegap] created project at C:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.5.0\win32-me20140821-1433\node_modules\phonegap\bi
n\PGTestC:\Users\Ed\.myeclipse\phonegap\com.genuitec.eclipse.mobile.embedded.phonegap_3.5.0\win32-me20140821-1433\node_modules\phonegap\bin>
It appears to have made the PETest in the 3.5 ….. folder.
Might be a good clue.
Brian FernandesModeratorAbsolutely – this is good news.
Back in MyEclipse, when you are creating a new PhoneGap Application project, the “Target runtime” combo should list out “MyEclipse Embedded PhoneGap 3.5.0” as well, can you switch to that and try to create a project? Does that work?
-
AuthorPosts