Community
Participate
Working Groups
https://groups.google.com/forum/#!topic/xtend-lang/gs3RDJ8LVjc I'm using xtend with playframework now. The xtend files are in a "xtend" dir, and I set the target of generated java files to "app", which is recognized by playframework. When there is something wrong in my code, playframework will show some exception stacks on the console, but there is only line numbers of generated java files. I have to open the java file, find the error line, and guess which line of xtend it is. (I forgot to say, play will display several lines of java code on the web page, so we can find the xtend line number directly if there is). The java source usually not hard to read, but sometimes it still cost some time to find the exact line number in xtend if the logic is complex. So will xtend provide an option in the configuration, that we can show line numbers of xtend files in java files? e.g. /* 1 */ public static class User { /* 2 */ private String _name; /* 2 */ public String getName() { /* 2 */ return this._name; /* 2 */ } ....
Other application servers also show Java line numbers in case of exception. A feature to help finding the related Xtend line number would be useful. An alternative to previous suggestion would be a "Go to Xtend Line By Java Line Number" feature.
With bug #393885 Java code will be completely transparent and your scenario should just work (of course you need to configure play! to use Xtend's compiler).