eclipse-4diac / 4diac-ide

Eclipse Public License 2.0
19 stars 28 forks source link

Can't build success from source using Eclipse Modeling Tools version 2024-03 #181

Open wzj7531 opened 3 months ago

wzj7531 commented 3 months ago

I am wondering if anyone has successfully compiled 4diac-ide from source. According to the documentation, I have tried many times, but none were successful. i installed both M2E and Xtext Complete SDK, jdk 17 has been installed, It seems that the prerequisites are in place. Next, import 4diac-ide project, resolve api baseline problem, and waiting for resolve depencencies.... Unfortunately, some dependencies cannot be retrieved remotely: Snipaste_2024-06-06_15-31-22 No repository found containing: osgi.bundle, org.apache.commons.lang.source, 2.6.0.v2014270220 seesion context was:(profile=TARGET_DEFINITION:resource:/org.eclipse.fordiac.ide.product.target,phase=org.eclipse.equinox.internal.p2.engion.phases.Collect, oprand=,action-). So, some can help to solve it?

azoitl commented 3 months ago

I'm assuming you are trying to build the current release branch from source. We just recently noticed that there are to many dependency conflicts that prevent that.

However I would anyhow not recommend to build the latest release branch. Depending on what you want to do I would mostly recommend the development branch. There all dependencies are up to date and you also have hundreds of new features and bug fixes.

The update documentation how to build from source can be found here: https://github.com/eclipse-4diac/4diac-documentation/blob/main/src/development/building4diac.asciidoc

wzj7531 commented 3 months ago

Thanks , i will try it

wzj7531 commented 3 months ago

After repeated attempts, I think I am about to succeed. All dependencies resolved, but here the last build error:

1

I don't have much experience with Java. So,how can i resolve the "Abstract method does not specify a body" error?

wzj7531 commented 3 months ago

After modify Xtend Settings like this:

2

Only two errors remain:

3

So, how to fix it? @azoitl

azoitl commented 3 months ago

For me it looks like you have some outdated branch of 4diac IDE source code. As I written above when you want to build 4diac IDE from source please use either the latest develop or freeze branch. In that branches also all Java settings are part of the plugins and you don't have to set anything manually.

The problem you are seeing in your last screen shot happes because one of our libraries changed. This is fixed for quite some time in develop or freeze branch.

wzj7531 commented 3 months ago

For me it looks like you have some outdated branch of 4diac IDE source code. As I written above when you want to build 4diac IDE from source please use either the latest develop or freeze branch. In that branches also all Java settings are part of the plugins and you don't have to set anything manually.

The problem you are seeing in your last screen shot happes because one of our libraries changed. This is fixed for quite some time in develop or freeze branch.

OK I'll try it.

wzj7531 commented 3 months ago

@azoitl Does the ui of ide build from repo same as the ui in the document figure?

azoitl commented 3 months ago

@azoitl Does the ui of ide build from repo same as the ui in the document figure?

Could you please elaborate a bit more. I fear I can not follow you.

wzj7531 commented 3 months ago

@azoitl Does the ui of ide build from repo same as the ui in the document figure?

Could you please elaborate a bit more. I fear I can not follow you.

Nevermind, i have found answer. Like you said, you have removed the deployment perspective some versions ago... But which version ide has the development perspective?

azoitl commented 3 months ago

@wzj7531 I don't know by heart but I would say about 4-5 years ago in one of the last 1.x version.

The reason for removing it was that it was very bad from a workflow / usability view point. We are here continuously working on reducing the number of clicks necessary to deploy.

In the latest preview versions you can even setup deployment configurations and easily start these.

wzj7531 commented 3 months ago

@wzj7531 I don't know by heart but I would say about 4-5 years ago in one of the last 1.x version.

The reason for removing it was that it was very bad from a workflow / usability view point. We are here continuously working on reducing the number of clicks necessary to deploy.

In the latest preview versions you can even setup deployment configurations and easily start these.

I have tried one by one, found that 1.12.2 is the last version that have the development perspective. By the way, the forte 1.12.0 has bugs if add modbus function.

azoitl commented 3 months ago

@wzj7531 I don't know by heart but I would say about 4-5 years ago in one of the last 1.x version. The reason for removing it was that it was very bad from a workflow / usability view point. We are here continuously working on reducing the number of clicks necessary to deploy. In the latest preview versions you can even setup deployment configurations and easily start these.

I have tried one by one, found that 1.12.2 is the last version that have the development perspective. By the way, the forte 1.12.0 has bugs if add modbus function.

We don't have capacities to maintain old versions. Especially the modbus code was reworked and improved a lot by @kumajaya. Therefore I can only again strongly recommend to use the latest development versions.