Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341022

Summary: Eclipse saves file without newline on last line
Product: [Eclipse Project] Platform Reporter: Melissa <melissa.bugzilla>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, eclipse.sprigogin
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Melissa CLA 2011-03-25 22:18:53 EDT
Build Identifier: Build id: M20100909-0800

- Open a file with a blank line for line last.
- Delete last line. So new last line is not blank.
- Save file.
- Now open file in vi. This is what I see on the bottom:

<le/gws/plugins/items/ItemBaseTest.java" [noeol] 427L, 17611C 1,1           Top

The "noeol" indicates that there is no newline on the last line of this file. This is a problem because our code repository expects newlines on the last line.

My project is a customized Java project.

Reproducible: Always

Steps to Reproduce:
See details.
Comment 1 Dani Megert CLA 2011-03-26 03:28:35 EDT
The editor saves what's in the editor. Text files are not specified that they need a newline at the end.