Questions about the development environment #712
Replies: 40 comments 3 replies
-
@
@patric-r |
Beta Was this translation helpful? Give feedback.
-
It's a pity that you seem to refuse to answer my simple question: What does it make sense forcing me starting 20 application types when you know the answer or when it is somewhere configured? I started 3, but I don't see any difference. We're planning contributing to this project, but we need your or the communities support and a perspective that this project is really alive again and to provide at least basic help/documentation of how to start developing. But compared to other open source projects, it seems to be much harder here... |
Beta Was this translation helpful? Give feedback.
-
Sorry, I do not understand this question :( Are you trying to start BIRT Designer from sources? What I can see is 2 product manifests with "designer" in its id
and
So what we are talking about? |
Beta Was this translation helpful? Give feedback.
-
I mean this one: Starting eclipse.exe shows me that what I call the "Report designer" (if you use other terms, it would be nice to learn them that we use the same terms). My question is: What do I have to do in order to start exactly this "application" from the BIRT development environment? |
Beta Was this translation helpful? Give feedback.
-
To start "All in One" you need to select
if something is not working as expected please open the dedicated issue to focus on concrete scenario |
Beta Was this translation helpful? Give feedback.
-
I am not going to spoon-feed you, my friend. We learn from frustration and bumping our noses. :) Good to see your frustration level rise ;)
There are only a couple of them in the org.eclipse.birt namespace. Also, you have to clean your configuration before you start a new application otherwise you will not see any difference. Before you ask me how to do that, take a good look at the launch configuration form. If an application does not run, you have to examine the messages. Most of the time there is a missing plugin or there are too many plugins. I will organize a teams session for Monday. We can do a Q&A there. Thank you for your testing efforts. Your tests were a driver for the recent developments. Try to stay positive. |
Beta Was this translation helpful? Give feedback.
-
The eclipse.exe from birt-report-designer-all-in-one is the right one.
Now you are ready to design reports.
|
Beta Was this translation helpful? Give feedback.
-
BTW in my start script for the BIRT IDE, I set some environment variables and then call
The logging.properties is only because I use java.util.logging from inside scripts in my reports. |
Beta Was this translation helpful? Give feedback.
-
I filed an issue to make life a little bit better for consumers: #694 |
Beta Was this translation helpful? Give feedback.
-
Thanks! The viewer is not working, I know this had been discussed recently - is the github issue #649 the right one for this (because I don't get any stacktrace, just a 404 in the browser when doing a PDF preview)? And BTW, I saw this in the error log: |
Beta Was this translation helpful? Give feedback.
-
@wimjongman I have question regarding the last step, making the plugin configuration for the tests identical to the birt-run launch configuration: |
Beta Was this translation helpful? Give feedback.
-
I finally (think that) I understand what you mean. |
Beta Was this translation helpful? Give feedback.
-
Yes :) Sorry for the confusion. How do you test/debug your local working copy changes? |
Beta Was this translation helpful? Give feedback.
-
I don't think there is a shortcut. The shortest way is maybe editing the file in a text editor. Launch configs are a moving target because of adding/removing future plugins. Launch configs can be different on different platforms. Therefore the developers should understand what makes them tick so that they can create/change them quickly. |
Beta Was this translation helpful? Give feedback.
-
Especially because they are a moving target, it makes sense to commit them to the repo. |
Beta Was this translation helpful? Give feedback.
-
I fixed the reloading of the target platform already: That's only in a nightly build so far... But even with that, there is still rebuild upon startup and it's not clear what causes that. It happens even when to setup tasks are performed... As I have suggested the problem isn't parent projects themselves but rather the fact that they show/include the entire tree of nested projects in them which can be avoided with filters, which I have started to work on... |
Beta Was this translation helpful? Give feedback.
-
I tried the eclipse installer and opened the workspace as Wim showed in the Q&A session. Eclipse shows 487 errors and ~100K warnings. I dont' understand why on my machine there are 487 errors, because I saw only 14 (?) on Wim's machine. BTW, Wim wanted to share the recorded Q&A session. |
Beta Was this translation helpful? Give feedback.
-
Got it. I was confused about resource filters but I looked it up and now I'm good. I filed an issue for the resource filters: Add resource filters to parent projects #699 |
Beta Was this translation helpful? Give feedback.
-
What is the recommend way / workflow to test own applications which use the BIRT runtimes againt the checked out working copy of BIRT without creating all BIRT jars by a full maven build and assigning those to the applications? E.g. by adding "Required Projects" (birt projects) to the build path for such applications. |
Beta Was this translation helpful? Give feedback.
-
Assumptions:
Steps:
|
Beta Was this translation helpful? Give feedback.
-
@ruspl-afed Afterwards, we start the platform, load the design handle and create the runAndRender task:
For each to-be-created PDF we do:
|
Beta Was this translation helpful? Give feedback.
-
In our application we work similar to @patric-r. We are using the "birt-runtime" here (without OSGI). But instead of explicitly adding single JARs we just add ReportEngine/lib/* to the classpath. This includes all the files in that directory. This requires the Maven build of course. But to just test modifications of the BIRT source, we do not need to do it this way: |
Beta Was this translation helpful? Give feedback.
-
@hvbtup You're completely right, we do it in a similar way that we can test everything in the BIRT designer (except that we don't use DB connections within BIRT, we decoupled the db model from the BIRT design model, so our process is roughly -> Export relevant data from DB to XML, start our application which invokes BIRT in the above way and the design uses the xml as a datasource). However, I know that there are performance issues and memory leaks in the BIRT engine (at least in the version we're using) which only appear when creating many PDFs within one ReportEngine. Is there a way to achieve this? |
Beta Was this translation helpful? Give feedback.
-
Note that JDT's increment compiler automatically creates the |
Beta Was this translation helpful? Give feedback.
-
Here's another trick to build a class path. Go to any of the JUnit tests and do Run as (or DebugAs) -> JUnit test. Then open the Debug perspective (upper right button with +), and you see the terminated process. Right click (context menu) the nested process object and use Properties... Here you can see the command line used to launch the test. This has the full class path of everything used by that test. |
Beta Was this translation helpful? Give feedback.
-
We have created a video that explains the full cycle of contributing to BIRT. 00:00 Intro |
Beta Was this translation helpful? Give feedback.
-
I don't know about BIRT specific memory leaks and performance issues.
In order to do load testing or performance testing, you should definitely use test scripts or programs with loops which start e.g. 1000 reports and wait until all 1000 are finished. |
Beta Was this translation helpful? Give feedback.
-
We run all reports with -d64 -Xmx6200m -Xms512m (though only one huge report needs the 6GB), using birt (4.5 and 4.8) under wildfly on dedicated windows servers with multiple users. |
Beta Was this translation helpful? Give feedback.
-
I was able to solve this. Now I only have one remaining error message:
in org.eclipse.birt.data.oda.pojo.ui/META-INF/MANIFEST.mf This seems to be a basic beginner's eclipse issue. I think it is worth mentioning. What I had to do:
I have to repeat this every time I start eclipse.exe, as it seems. Otherwise Eclipse finds and uses the JRE 11 in c:\prog\jdk... and that causes a lot of "Failed to init ct.sym" errors. For birt-runtime-test (inside BIRT Tests) and org.eclipse.birt.axis.overlay (inside BIRT Bundles) I had to explicitly choose JavaSE-11 in the build path. |
Beta Was this translation helpful? Give feedback.
-
https://stackoverflow.com/questions/63446925/the-project-was-not-built-due-to-failed-to-init-ct-sym-for-c-program-files-jav helped me to solve this. But I still don't understand the error. |
Beta Was this translation helpful? Give feedback.
-
This thread is locked because there were too many separate discussions. Please open a new topic with your question.
Beta Was this translation helpful? Give feedback.
All reactions