PhaserEditor icon indicating copy to clipboard operation
PhaserEditor copied to clipboard

Build Guide Does Not Work For 963 Reasons

Open Slight0 opened this issue 6 years ago • 13 comments

Just followed this guide to the T and got 963 errors (although I think all of the "javascript" errors can be ignored). I should note I did not have Java, Eclipse, or any other of the dependances installed before putting this all together. I am using Eclipse Oxygen EE 2018 release and Java 8 (jdk-8u181).

(I attached all the errors in txt and html versions, view whichever you prefer)

PhaserEditorBuildIssues.zip

Here is a picture of the failure message when I try to run the .product file.

afewerrors

afewmoreerrors

Any ideas what's going on or what I'm missing? I've tried adding JRE-SE 10 to my library list which eliminates the 3 of 6 build path errors, but the same failures happen.

Slight0 avatar Jul 27 '18 02:07 Slight0

Hi, I have to update this guide, I keep you updated.

PhaserEditor2D avatar Jul 27 '18 14:07 PhaserEditor2D

@Slight0 Are you trying to compile v1 or v2?

PhaserEditor2D avatar Aug 07 '18 12:08 PhaserEditor2D

Couldn't build PhaserEditor Version 1.5.3 on Mac OS X :( Eclipse Oxygen 3 and Java 10.0.2 Here is a picture of the failure message when I try to run the .product file. screen shot 2018-12-21 at 00 13 01

RANUX avatar Dec 20 '18 18:12 RANUX

Hi, v1.5.3 requires Java 8. Please try with it first.

PhaserEditor2D avatar Dec 21 '18 13:12 PhaserEditor2D

Hi, v1.5.3 requires Java 8. Please try with it first.

Hi! After reinstall JDK to java version "1.8.0_191" i've got new errors :(

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.wst.jsdt.web.ui [334]
  Unresolved requirement: Require-Bundle: org.eclipse.wst.jsdt.web.core; bundle-version="[1.0.300,2.0.0)"
    -> Bundle-SymbolicName: org.eclipse.wst.jsdt.web.core; bundle-version="1.0.901.v201707142218"; singleton:="true"
       org.eclipse.wst.jsdt.web.core [328]
         Unresolved requirement: Require-Bundle: org.eclipse.wst.jsdt.core; bundle-version="[2.0.0,3.0.0)"
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.wst.web.ui [330]
  Unresolved requirement: Require-Bundle: org.eclipse.wst.jsdt.ui; bundle-version="[2.0.0,3.0.0)"
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.wst.jsdt.web.core [328]
  Unresolved requirement: Require-Bundle: org.eclipse.wst.jsdt.core; bundle-version="[2.0.0,3.0.0)"

"build\wst_deps" contains: org.eclipse.wst.jsdt.web.core_1.0.800.v201505130300.jar org.eclipse.wst.jsdt.web.ui_1.0.800.v201403271809.jar

untitled-1

Thank you for help!:)

RANUX avatar Dec 23 '18 18:12 RANUX

Ok, if it compiles well we are in a good path. Let me check the WST dependencies in my local repo.

PhaserEditor2D avatar Dec 24 '18 15:12 PhaserEditor2D

Hi,

I think you are including other WST plugins with a recent version. Please, go to the Target Platform you are using and check the versions of WST you are using. This is a picture of what I am using locally:

image

PhaserEditor2D avatar Dec 26 '18 10:12 PhaserEditor2D

By the way, just to confirm. Do you have any compilation error?

PhaserEditor2D avatar Dec 26 '18 10:12 PhaserEditor2D

Thanks. I disabled other WST plugins with higher version and commented lines 41 and 46 in PhaserIDE2.java (LicCore.PRODUCT_VERSION and LicCore.startMonitor()) and now it compiles with errors. Errors arise because of undefined methods in LicCore and other missing libs like:

javafx.embed.swt.FXCanvas 
phasereditor.ui.BaseImageCanvas
phasereditor.ui.ICanvasCellRenderer
org.eclipse.core.resources.IFile
org.eclipse.lsp4j.SymbolInformation
phasereditor.inspect.core.jsdoc.IJsdocProvider
org.pushingpixels.*

RANUX avatar Dec 27 '18 11:12 RANUX

Maybe you can add the missing methods to LicCore, but keep them empty, and do a pull request, so others can use that working version.

I think you are merging plugins of v1 with v2. Just remove from the workspace the plugins under the v2 folder.

PhaserEditor2D avatar Dec 27 '18 19:12 PhaserEditor2D

image

Hello ! Thank you for all but there is some bundle version issues during my build of the editor. I imported org.eclipse.jgit but it doesn't work, i can't manually find org.eclipse.jgit.transport.sshd even if i think it comes with org.eclipse.jgit.ssh

Al3xCalibur avatar Dec 31 '18 14:12 Al3xCalibur

Hi @Al3xCalibur

These are the jgit plugins I have in my local Target Platform:

image

PhaserEditor2D avatar Jan 03 '19 19:01 PhaserEditor2D

I have to write a new Build Guide. I found a simplest way to create the Target Platform, by using a Phaser Editor binaries as plugins folder, but right now I am too busy working on release v2 of the editor, I have a week of delay on it.

PhaserEditor2D avatar Jan 03 '19 19:01 PhaserEditor2D