Fork us on GitHub

Logged Versions

Easier way to trace issues back to their origin cause
Post Image

Logged Versions

When we get a crash report one of our first questions is "when did you build this?".
The answer is often too vague to trace the specific version, so we end up with a mixture of guessing.

The main issue is that there are different version values. They conflict with one another. They can be confusing and they can be inaccurate.

Starting with the latest update we now have a file in the root of Codename One called cn1-version-numbers and it includes two numbers that might not be accurate but will give us a general ballpark of the relevant version. The latter number is our internal SVN version number but the former can be interesting to you too. These numbers will appear as below when you make your first Log.p(String) call:

[EDT] 0:0:0,0 - Codename One revisions: 4ee2778c79ad5eaadd2344bc0f215a82483421cb
1955

The former is a GIT version, this can help you browse the git repository at that specific version by using a UWL like this:

E.g. the URL matching the version above would look like that:

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.