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.

View | Details | Raw Unified | Return to bug 154429
Collapse All | Expand All

(-)a/languages/src/org/netbeans/modules/languages/ParserListenerFactoryImpl.java (-1 / +2 lines)
Lines 72-78 Link Here
72
72
73
    @Override
73
    @Override
74
    public Collection<SchedulerTask> create (Snapshot snapshot) {
74
    public Collection<SchedulerTask> create (Snapshot snapshot) {
75
        Document document = snapshot.getSource ().getDocument (false);
75
        // need to pass true here - if the document is not open just open it
76
        Document document = snapshot.getSource ().getDocument (true);
76
        String mimeType = snapshot.getMimeType ();
77
        String mimeType = snapshot.getMimeType ();
77
        if (!LanguagesManager.getDefault ().isSupported (mimeType)) return null;
78
        if (!LanguagesManager.getDefault ().isSupported (mimeType)) return null;
78
        //System.out.println("\nASTEvaluators: ");
79
        //System.out.println("\nASTEvaluators: ");

Return to bug 154429