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 225409

Summary: YAML parser false syntax error
Product: web Reporter: Ninj
Component: YAMLAssignee: Petr Pisl <ppisl>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description Ninj 2013-01-28 11:57:37 UTC
Product Version = NetBeans IDE 7.3 Beta 2 (Build 201211062253)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02

I'm working on a Symfony2 project.
This YAML file is correct:

(...)
services:
    bt.twig.common_bt_extension:
        class: %bt.twig.common_bt_extension.class%
        tags:
            - { name: twig.extension }
        arguments: [@service_container]
 
However, the editor reports an error on the line "- { name: twig.extension }". It says "ScannerException while scanning for the next token we had this found character @(64) that cannot start any token"
Comment 1 Ninj 2013-01-28 11:57:43 UTC
Created attachment 130720 [details]
IDE log
Comment 2 fraifrai 2013-05-14 11:48:35 UTC
Adding double-quotes solves the problem in Netbeans. But They shouldn't be needed and the parser must be corrected.
Comment 3 Ondrej Brejla 2013-07-02 14:05:13 UTC

*** This bug has been marked as a duplicate of bug 212063 ***
Comment 4 Ondrej Brejla 2013-07-03 09:46:25 UTC

*** This bug has been marked as a duplicate of bug 232192 ***