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.
There is a bug that I cant automaticaly format Gruntfile.js. Shortcut and button to Format (alt+shift+f) not working, but when I copy content in another js file its nicely format. I use html5 project and have gruntfile (starting task from solution is great feature) but formating not working :(
It works for me. Does the grunt file have correct syntax coloring? Does it happen every time? Please attach IDE log after formatting fails (see [1]). Thank you [1] http://wiki.netbeans.org/FaqLogMessagesFile
Created attachment 145103 [details] Gruntfile I was out of office now I am back: maybe problem is that my Gruntfile is not in SiteRoot (defined in project). It is in root of project. Good point, syntax highlight for JS not working in this file. (just basic highlighting, "strings" in quotes are orange) but got another problem http://statistics.netbeans.org/analytics/exception.do?id=711936 LCH
(In reply to Vladimir Riha from comment #1) > It works for me. Does the grunt file have correct syntax coloring? Does it > happen every time? Please attach IDE log after formatting fails (see [1]). > Thank you > > > [1] http://wiki.netbeans.org/FaqLogMessagesFile From message.log: INFO [org.netbeans.modules.parsing.impl.SourceCache]: Parser factory: org.netbeans.modules.csl.core.GsfParserFactory@77e92e98 returned null parser for Snapshot 1844591272: Gruntfile.js
After reinstalling netbeans to netbeans with all components got not consistent state when it cant parse gruntfile and I cant open gruntfile. So after another reinstall back to HTML5+PHP ... its working like normal javascript file with highlighting and so on... but not detect it like "text/grunt-javascript" so I cant run tasks from IDE but its OK. :)
Reassigning to project, list of tasks is not related to formatting anymore. Could you please try it with latest dev build from [1] ? There have been some fixes since NB 8.0 Beta. Thank you [1] http://bits.netbeans.org/netbeans/trunk/nightly/latest/
should be already fixed.
(In reply to Jan Becicka from comment #6) > should be already fixed. Download latest Dev version and still not working for me :) Exception when loading tasks and formatting still not working. http://statistics.netbeans.org/analytics/exception.do?id=712130
I fixed 241819 and I cannot reproduce this one.