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.
Summary: | Incorrect end line for HTML/RUBY code | ||
---|---|---|---|
Product: | ruby | Reporter: | Thomas Preisler <thp> |
Component: | RHTML | Assignee: | Erno Mononen <emononen> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Thomas Preisler
2009-04-21 21:07:51 UTC
Hi, thanks for the report. Can you please elaborate on what exactly do you mean by: "The Netbeans sets the yellow boxes for the HTML code on the less than symbol at the start of the line and the first greater than symbol inside the line." By the yellow boxes, do you mean how the brackets get highlighted? Note that this doesn't mean that NB would make any changes into the code, it is just highlightning. Please ask the customer kanifeli@gmail.com directly. I just transferred CR 6829622 to this issue. I'm sorry, I don't know to what are you referring by CR 6829622. In any case, I've sent an email to kanifeli@gmail.com asking him/her to comment on this issue - marking as incomplete until more info is provided. I am sorry if i was not clear enough at the time. The "yellow boxes" I refer to are the automatic highlights the Netbeans uses to mark where a code line starts and stops. These are highlights provided for us so that we can check to make sure that our code is complete and that all functions started are correctly ended. In HTML the Netbeans should always highlight the "<" less than symbol and the ">" greater than symbol at the end of the code line. Ruby uses the symbols "=>" when defining many aspects of the work. For some reason, while I was working, Netbeans started highlighting the symbol ">" at the end of the "=>" ending the section of code there instead of reaching the true end. Using the original example I am going to use "||" to signify the Netbean Highlights. Again the highlights are the color boxes that show up when you hover over a line of code that tell you where that function, class or line of HTML code starts and ends. If my code line is: <%= button_to "Empty cart" , :action => :empty_cart %> The highlights should be and initially where located like this: |<|%= button_to "Empty cart" , :action => :empty_cart %|>| After a while of working however the Highlights were showing like this: |<|%= button_to "Empty cart" , :action =|>| :empty_cart %> When I tried running the code, the recorder error showed because it was not reading the full line. It was only reaching the "=>" and that left the code incomplete creating an error. I cannot add an image because one of my hard drives recently failed and I lost the Netbeans installation along with the issue. Thanks for the clarification, I can see the issue now. This is in fact a dupe of an older issue, namely #137688. I'll try fix for 6.8. *** This issue has been marked as a duplicate of 137688 *** |