apache / apache/netbeans

Global way of dealing with global JavaScript symbols

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

Description

### Description

I have a large web app that has many JavaScript files. Some of those files are classes that define global utility functions that I use everywhere. NetBeans doesn't recognize those global symbols because things are loaded in a complex way. NetBeans wants me to declare the global symbols in each JavaScript file in the form:

/* global mysymbol */

Rather than declaring those symbols global in hundreds of JavaScript files, can't I just do those declarations in one place?

### Use case/motivation

_No response_

### Related issues

_No response_

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

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

No repository file, test, or entry point is named. Start by tracing how NetBeans handles /* global ... */ declarations for JavaScript files and where project-wide settings are defined. Done means a user can declare global symbols once and have them recognized across the project.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.