facebook

MyEclipse 7.5 Formatter breaks source code

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #299619 Reply

    tzundel
    Member

    Hello MyEclipse,

    I upgraded to MyEclipse 7.5 yesterday, and have noticed the following bug:

    Summary: The Formatter kills JSP’s. (i.e. A perfectly valid JSP, when run through the formatter will no longer compile.)

    Steps to reproduce:

    1. Create new Java Web Project.

    – Name is “SomeWebProject”
    – JavaEE 5.0
    – Press “finish”

    2. Double Click on “WEbRoot/index.jsp”

    Click on the “bottom half” of the editor (the half that shows the code)

    Note that following line:

    String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;

    Press Ctrl-Shift-f (to invoke the formatter)

    Note that the aforementioned line is now:
    String basePath = request.getScheme() + “://”
    + request.getServerName() + “:” + request.getServerPort

    This will not compile. (Notice, it gets cut off at “getServerPort”)

    I have restarted MyEclipse, restarted Windows, created different projects in different workspaces, but this behavior is consistent..

    My Installation summary:

    *** Date:
    Thursday, June 18, 2009 1:25:40 PM MDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.5
    Build id: 7.5-20090609

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 7.5
    Build id: 7.5-20090609

    Eclipse Plug-in Development Environment

    Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
    Build id: M20080703-0800

    Eclipse Platform

    Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
    Build id: M20090211-1700

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
    Build id: M20090211-1700

    Eclipse Java Development Tools

    Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
    Build id: M20090211-1700

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec_new\Profiles\MyEclipse\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec_new\Profiles\MyEclipse\../../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec_new\Profiles\MyEclipse\../../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
    -clean
    -configuration
    configuration
    -vm
    C:\Program Files\Genuitec_new\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

    NOTE: I’ll not be able to respond Friday or Monday, so don’t take a lack of response as a lack of interest, I’ll respond to any questions on Tuesday (or perhaps today, if you catch me before I leave)

    tzundel

    #299636 Reply

    tzundel,
    Thank you for bringing this up. I have raised a PR to the dev team.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: MyEclipse 7.5 Formatter breaks source code

You must be logged in to post in the forum log in