eclipse-birt / birt

Eclipse BIRT™ The open source reporting and data visualization project.
http://www.eclipse.org/birt
Eclipse Public License 2.0
451 stars 389 forks source link

How to import BIRT code into eclipse #628

Closed SteveSchafer-Innovent closed 2 years ago

SteveSchafer-Innovent commented 3 years ago

I have not been successful at importing the BIRT code into eclipse without there being errors. I've tried several methods of importing, including importing existing project at the root level, importing existing project for each individual project, and importing existing maven project at the root level, with varying results. I'd like to know if anyone has been able to get the code imported without any errors and specifically how to do it.

patric-r commented 2 years ago

When running the "birtrun" configuration, I get:

image

Is this a known issue?

A click on "continue" starts the report designer, however. In the console I see:

osgi> Nov 05, 2021 9:35:53 PM org.eclipse.birt.report.model.metadata.ExtensionLoader handleError
SEVERE: Message:Duplicate extension name when adding the extension [RotatedText] to the meta-data dictionary. Error code:DUPLICATE_EXTENSION_NAME 
(along with other SWT exceptions)

Has something changed regarding the project explorer in BIRT? I used to create (report) projects and organize my rptdesign files there but it doesn't seem to work like this anymore. I can create a Report Project, but it is not shown in the project explorer.

(will test junit later)

wimjongman commented 2 years ago

is this a known issue?

Yes.

In Eclipse you can have several starting points called applications. Currently, in the launch configuration, the DesignerApplication is used. You can play with that to launch BIRT in several 'modes'.

image

patric-r commented 2 years ago

Thanks. Have you seen my 2nd question? Somethings seems to be really broken in the designer, neither the project explorer nor the navigator will show any created project.

ruspl-afed commented 2 years ago

Somethings seems to be really broken in the designer, neither the project explorer nor the navigator will show any created project.

Please create another issue to discuss this. We will need steps to reproduce. Please also check if you can see the same problem when running from pre-built BIRT binaries.

wimjongman commented 2 years ago

Thanks. Have you seen my 2nd question? Somethings seems to be really broken in the designer, neither the project explorer nor the navigator will show any created project.

That was an answer to your second question. Change the application to see BIRT in different outfits. The one you are looking at now does not have the project explorer. https://github.com/eclipse/birt/issues/628#issuecomment-962210935

patric-r commented 2 years ago

@ruspl-afed: Which pre-built BIRT binaries do you mean? This one? https://download.eclipse.org/birt/downloads/drops/I-R1-4.8.0-201805221921/birt-report-designer-all-in-one-4.8.0-20180522-win32.win32.x86_64.zip

@wimjongman Which "application" corresponds to the BIRT designer (= what happens when I execute the eclipse binary in above package)? I just assumed that it's the default (DesignerApplication) and then I would assume that it behaves in the same way

ruspl-afed commented 2 years ago

@ruspl-afed: Which pre-built BIRT binaries do you mean? This one? https://download.eclipse.org/birt/downloads/drops/I-R1-4.8.0-201805221921/birt-report-designer-all-in-one-4.8.0-20180522-win32.win32.x86_64.zip

the binaries that you can produce with the local maven build. please open another issue if you think that BIRT Designer has a bug, it seems to be not related with this ticket

wimjongman commented 2 years ago

Patrick we can continue this discussion here: https://github.com/eclipse/birt/issues/692