anonl / nvlist

@@ -18,7 +18,6 @@
Loading
18 18
19 19
import nl.weeaboo.vn.core.IContext;
20 20
import nl.weeaboo.vn.core.IContextManager;
21 -
import nl.weeaboo.vn.core.INovel;
22 21
import nl.weeaboo.vn.impl.script.lua.ILuaScriptThread;
23 22
import nl.weeaboo.vn.script.IScriptContext;
24 23
@@ -35,7 +34,7 @@
Loading
35 34
        this.breakpoints = Objects.requireNonNull(breakpoints);
36 35
    }
37 36
38 -
    public void update(INovel novel, IDebugProtocolClient peer) {
37 +
    public void update(IContextManager contextManager, IDebugProtocolClient peer) {
39 38
        // Remove dead threads
40 39
        Iterator<DebugThread> itr = threadsById.values().iterator();
41 40
        while (itr.hasNext()) {
@@ -53,7 +52,6 @@
Loading
53 52
        }
54 53
55 54
        // Update existing threads, detect new threads
56 -
        IContextManager contextManager = novel.getEnv().getContextManager();
57 55
        IContext primaryContext = contextManager.getPrimaryContext();
58 56
        for (IContext context : contextManager.getContexts()) {
59 57
            IScriptContext scriptContext = context.getScriptContext();
@@ -99,7 +97,8 @@
Loading
99 97
        if (frameId == null) {
100 98
            return primaryThread;
101 99
        } else {
102 -
            return primaryThread;
100 +
            LOG.warn("Unable to find thread with frame ID {}", frameId);
101 +
            return null;
103 102
        }
104 103
    }
105 104

@@ -110,7 +110,7 @@
Loading
110 110
    private void update() {
111 111
        INovel novel = getNovel();
112 112
        if (novel != null) {
113 -
            activeThreads.update(novel, peer);
113 +
            activeThreads.update(novel.getEnv().getContextManager(), peer);
114 114
        }
115 115
    }
116 116
@@ -271,7 +271,7 @@
Loading
271 271
272 272
            IContextManager contextManager = novel.getEnv().getContextManager();
273 273
            DebugThread debugThread = activeThreads.findByFrameId(args.getFrameId());
274 -
            Preconditions.checkNotNull(novel, "NVList isn't active");
274 +
            Preconditions.checkNotNull(debugThread, "Unable to find thread");
275 275
276 276
            EvaluateResponse response = new EvaluateResponse();
277 277
            try {
Files Complexity Coverage
api/src/main/java/nl/weeaboo/vn 91.53% 96.76%
buildtools/src/main/java/nl/weeaboo/vn/buildtools 81.13% 87.46%
core/src/main/java/nl/weeaboo/vn 82.38% 86.59%
desktop/src/main/java/nl/weeaboo/vn/desktop 46.38% 51.56%
Project Totals (384 files) 82.05% 86.11%
1
codecov:
2
  status:
3
    project: yes
4
    patch: no
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading