- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
LineNumberTable for Scala scripts
Thu, 2009-02-12, 00:24
Hello, folks!
Trying to implement support for Scala scripting in IntelliJ plugin we figured out, that there is no appropriate LineNumberTable produced for class, generated from appropriate script. This fact impedes to provide debugging support. Also it would be great, if generated class would have name, dependent from initial script file name, but not vanilla "Main".
Is it possible to imllement it in the near-term future?
Thanks.
Kind regards,
Ilya
Trying to implement support for Scala scripting in IntelliJ plugin we figured out, that there is no appropriate LineNumberTable produced for class, generated from appropriate script. This fact impedes to provide debugging support. Also it would be great, if generated class would have name, dependent from initial script file name, but not vanilla "Main".
Is it possible to imllement it in the near-term future?
Thanks.
Kind regards,
Ilya
Thu, 2009-02-12, 00:57
#2
Re: LineNumberTable for Scala scripts
On Thu, Feb 12, 2009 at 12:24:38AM +0100, Ilya Sergey wrote:
> Also it would be great, if generated class would have
> name, dependent from initial script file name, but not vanilla "Main".
It looks like you can do this already, with -Xscript:
-Xscript Compile as a script, wrapping the code into object.main()
...but I don't know for sure it's working.
On Thu, Feb 12, 2009 at 12:24:38AM +0100, Ilya Sergey wrote:
> Trying to implement support for Scala scripting in IntelliJ plugin we
> figured out, that there is no appropriate LineNumberTable produced for
> class, generated from appropriate script. This fact impedes to provide
> debugging support. Also it would be great, if generated class would have
> name, dependent from initial script file name, but not vanilla "Main".
> Is it possible to imllement it in the near-term future?
I noticed some of the linenumbertables were borked a while back when I was looking into classfile redundancy, but I never
opened a ticket about it. Can you open a ticket in trac? I will take a look.
https://lampsvn.epfl.ch/trac/scala