defold / defold/defold

"Referencing Files..." and "Dependencies..." options don't work on editor scripts

Open
#5,113 0 comments 0 reactions 0 assignees View on GitHub
bug editor editor scripts
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
1d 21h
Merged PRs (30d)
127

Description

**Describe the bug (REQUIRED)**
The "Dependencies..." menu option doesn't list dependencies of editor scripts. Likewise, the "Referencing Files..." menu option doesn't list editor scripts, even when they require the current module.

**To Reproduce (REQUIRED)**
1. Create a new editor script
2. Require a module inside of it
3. Select the "Dependencies..." menu option while viewing the editor script
Also:
4. Open the module that the editor script requires
5. Select the "Referencing Files..." menu option

**Expected behavior (REQUIRED)**
Both menu options should work the same as they do in other script/Lua files.

**Defold version (REQUIRED):**
1.2.172

**Platforms (REQUIRED):**
Tested on:
- macOS 10.14.2
- Manjaro Linux 20.1

Contributor guide

Open the contributing guide

Research direction

Start by tracing the "Dependencies..." and "Referencing Files..." menu entry points for editor scripts and compare them with the behavior for other Lua files. Reproduce the two cases from the issue, then verify that required modules and editor scripts appear in the corresponding results.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.