[ 
https://issues.apache.org/jira/browse/NETBEANS-2183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16785503#comment-16785503
 ] 

Jesper Johnson commented on NETBEANS-2183:
------------------------------------------

The ampersand in the searchurl (*&search*) option needs to be escaped. The 
workaround for NetBeans 8.2 on OS X is to edit 
{code:java}
/Applications/NetBeans/NetBeans 
8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf{code}
adding the option
{code:java}
-J-Dnetbeans.cdnjs.searchurl=https://api.cdnjs.com/libraries?fields=description,homepage,assets\&search={code}
to *netbeans_default_options*

> CDNJS access no longer works
> ----------------------------
>
>                 Key: NETBEANS-2183
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2183
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 10.0
>         Environment: Windows 10 Professional 64 bit
> OpenJDK 11.0.2
> NetBeans 10.0 - latest updates
>            Reporter: Mark Eggers
>            Priority: Major
>         Attachments: cdnjs-search.png, cdnjs-update.png, 
> messages-with-additional-properties.log, messages.log
>
>
> # Right-mouse button on a project and select properties
>  # Select CDNJS under Javascript libraries
>  # The list of libraries comes up
>  # Expect either a green checkbox or the latest version in the far right 
> column
>  # Question marks are there instead
> Also, when searching for a new library via CDNJS, a "Search Failed :(" 
> message is displayed.
> The trace in the logs:
> INFO [org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask]
> Unexpected token END OF FILE at position 0.
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:81)
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:75)
> [catch] at 
> org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.parse(LibraryProvider.java:303)
>  at 
> org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.run(LibraryProvider.java:260)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> INFO [null]: Last record repeated 9 more times.
> Note that this also fails on an old NetBeans 8.2 installation running on JDK 
> 8. I suspect that the remote request is failing.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to