Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 384062 - Show line number of xtend in generated java sources
Summary: Show line number of xtend in generated java sources
Status: CLOSED WONTFIX
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 393885
Blocks:
  Show dependency tree
 
Reported: 2012-07-02 12:11 EDT by Lipeng Mising name CLA
Modified: 2012-11-08 10:27 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lipeng Mising name CLA 2012-07-02 12:11:00 EDT
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 */    }
....
Comment 1 Antti Ruokomäki CLA 2012-07-15 17:26:20 EDT
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.
Comment 2 Sven Efftinge CLA 2012-11-08 10:27:23 EST
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).