Bug 421042 - [quick fix] Add quick fix for missing semicolon
Summary: [quick fix] Add quick fix for missing semicolon
Status: CLOSED DUPLICATE of bug 39813
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 01:43 EST by llewellyn falco CLA
Modified: 2013-11-06 11:34 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description llewellyn falco CLA 2013-11-05 01:43:50 EST
Say you have the java code

int a = 1

You will get the error :
Syntax error, insert ";" to complete BlockStatements

If you then try a QuickFix you will get :
No suggestions available


I would suggest the addition of an "Add semicolon at end of line"

While I know this is trivial for most seasoned programmers, it is not for new programmers. Furthermore, the lack of consistent help prevents the habit of looking to the quickfixs from forming in the being of the learning process.

The addition of these simple quickfixes can really help students.

thanks,
llewellyn
Comment 1 Dani Megert CLA 2013-11-06 06:42:31 EST

*** This bug has been marked as a duplicate of bug 39813 ***
Comment 2 Wayne Beaton CLA 2013-11-06 11:28:00 EST
I don't see how this is a duplicate of Bug 39813.
Comment 3 Dani Megert CLA 2013-11-06 11:33:16 EST
(In reply to Wayne Beaton from comment #2)
> I don't see how this is a duplicate of Bug 39813.

Bug is about providing quick fixes for common syntax error, like missing semicolon. That's what this bug here also asked for, no?
Comment 4 Wayne Beaton CLA 2013-11-06 11:34:39 EST
(In reply to Dani Megert from comment #3)
> Bug is about providing quick fixes for common syntax error, like missing
> semicolon. That's what this bug here also asked for, no?

I fixated on the example, not the title. Thanks for clarifying.