apache / apache/netbeans

HTML 'Class not found' errors when using CDN stylesheet

Open
#5,276 1 comment 0 reactions 0 assignees View on GitHub
kind:feature needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 16

### What happened

When adding bootstrap (or other frameworks) in a html/php project using a CDN directly, the remote file isn't parsed/cached so any CSS class used within the html page generates a "Class ... not found" error/warning light bulb.

Large projects that use CDNs thus have hundreds of warning light bulbs unnecessarily.

### How to reproduce

Create a basic HTML or PHP Project.

Put this code in the index.html/index.php file

```HTML








Hello




```

Lines 6, 7 & 8 shows errors/warnings

![image](https://user-images.githubusercontent.com/122187116/211826554-a7bc3d1d-1fe7-44bd-81dd-c8799b067c1b.png)

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Windows 10

### JDK

19

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem in index.html or index.php with the Bootstrap CDN stylesheet and inspect the “Class ... not found” diagnostics on the referenced lines. Trace the NetBeans HTML/CSS analysis responsible for remote stylesheets; done means CDN-defined classes no longer produce spurious warnings while local class diagnostics remain.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, css, html, php
Domain
frontend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.