Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » code formatter remove pipe caracters used for multitype in @return comments
code formatter remove pipe caracters used for multitype in @return comments [message #1283384] Thu, 03 April 2014 11:04 Go to next message
Thierry Thierry is currently offline Thierry ThierryFriend
Messages: 1
Registered: April 2014
Junior Member
My problem is quite simple:
when I use the php code formatter and let it format PHPDoc comments,
all the '|' characters are removed from the @return descriptions !

When I take an example from the phpDocumentor manual,

Before formatting :
    /**
     * example of showing multiple possible return types
     * @return int|string could be an int, could be a string
     */

After formatting :
    /**
     * example of showing multiple possible return types
     * 
     * @return int string be an int, could be a string
     */


which is totally wrong!
Is it a bug or is there a way to configure the formatter to not remove those '|' characters?

Thank you for your help!

Re: code formatter remove pipe caracters used for multitype in @return comments [message #1290123 is a reply to message #1283384] Wed, 09 April 2014 23:27 Go to previous messageGo to next message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
I have the same issue and can tell you that it is a bug.
You can search in bugzilla for it and if you don't find anything, you should create there a new issue.
Re: code formatter remove pipe caracters used for multitype in @return comments [message #1290634 is a reply to message #1290123] Thu, 10 April 2014 09:40 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
fyi
Bug 431979 Code formatter remove pipe caracters and delete words when using multitype in @return comments (with patch)
Previous Topic:Eclipse error message while trying to open and RSE project
Next Topic:File explorer like Total Commander or Windows commander
Goto Forum:
  


Current Time: Fri Apr 26 04:43:14 GMT 2024

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

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

Back to the top