Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » DocumentAdapter(Why DEBUG_LINE_DELIMITERS is true in DocumentAdapter?)
DocumentAdapter [message #1066876] Thu, 04 July 2013 21:31 Go to next message
Rodrigo Antonio is currently offline Rodrigo Antonio
Messages: 17
Registered: June 2010
Location: São Paulo - Brasil
Junior Member
I'm developing my editor with DLTK (4.0.0.201206062034).

In some moments I need to write in the sources.

I got no problems using GetBuffer().Append ("source")

However if my string contains line delimititers(like "function() \nlocal oLocalVar1 \nreturn"), I got this exception:


! MESSAGE WARNING: DocumentAdapter added new line delimiter to code: 13 10
! STACK 0
java.lang.Throwable
at org.eclipse.dltk.internal.ui.editor.DocumentAdapter.validateLineDelimiters (DocumentAdapter.java: 498)




Analyzing DocumentAdapter I saw this:

private static final boolean DEBUG_LINE_DELIMITERS = true;

How do I not give exception:this case?

I really need to add sources such as:


thank you
Re: DocumentAdapter [message #1067704 is a reply to message #1066876] Wed, 10 July 2013 08:28 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
Hi,

Looks like some forgotten debug statements.
Exception is not thrown, but only logged, however I agree it does not
look nice.

Could you file a bug for it?

Thanks,
Alex
Re: DocumentAdapter [message #1068141 is a reply to message #1066876] Fri, 12 July 2013 11:58 Go to previous message
Rodrigo Antonio is currently offline Rodrigo Antonio
Messages: 17
Registered: June 2010
Location: São Paulo - Brasil
Junior Member
Hi,

Alex,

I opened this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=412843


Thanks a lot.
Previous Topic:links in help will not work
Next Topic:How access my editor in AbstractSourceParser?
Goto Forum:
  


Current Time: Sat Oct 25 22:21:55 GMT 2014

Powered by FUDForum. Page generated in 0.09643 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software