This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 173363 - New line breaks code
Summary: New line breaks code
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Miloslav Metelka
Depends on:
Blocks: 130138
  Show dependency tree
Reported: 2009-09-30 10:12 UTC by Alexandr Scherbatiy
Modified: 2009-11-17 07:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-09-30 10:12:02 UTC
Product Version         = NetBeans IDE 6.8 Beta (Build 200909281634) (#066b555e5ecf)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.

Steps to reproduce:

- Copy the code to the editor:
var names = ["Petr"];

- Position cursor before "Petr" string
var names = [|"Petr"]; // | means cursor

- Press Enter

The result is:
var names = ["  

Main.fx:11: Unterminated string literal - missing ' or ".
var names = ["
Main.fx:12: Unterminated string literal - missing ' or ".
Main.fx:12: It looks like you are missing a ',' delimiter or perhaps have a malformed expression here?
Main.fx:12: Sorry, I was trying to understand a sequence creation expression but I got confused when I hit the end of
the script..
 Perhaps you are missing a ']'.
4 errors
Comment 1 Miloslav Metelka 2009-11-14 11:40:20 UTC
Comment 2 Alexandr Scherbatiy 2009-11-17 07:29:59 UTC
verified in Build 200911170201