File tree Expand file tree Collapse file tree 6 files changed +25
-13
lines changed Expand file tree Collapse file tree 6 files changed +25
-13
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.4.1 230218
2
+
3
+ ### Fixes
4
+
5
+ - fixed error with breakpoints in other subsystems
6
+ - fixed error with project closure causing listener to be called even after project was dead
7
+
1
8
## 0.4.0 230211
2
9
3
10
### Added
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
4
4
}
5
5
6
6
group = " com.en_circle.slt"
7
- version = " 0.4.0 "
7
+ version = " 0.4.1 "
8
8
9
9
repositories {
10
10
mavenCentral()
Original file line number Diff line number Diff line change @@ -240,8 +240,10 @@ private void doStop() throws Exception {
240
240
}
241
241
242
242
ApplicationManager .getApplication ().invokeLaterOnWriteThread (() -> {
243
- ParameterHintsPassFactory .forceHintsUpdateOnNextPass ();
244
- DaemonCodeAnalyzer .getInstance (project ).restart ();
243
+ if (!project .isDisposed ()) {
244
+ ParameterHintsPassFactory .forceHintsUpdateOnNextPass ();
245
+ DaemonCodeAnalyzer .getInstance (project ).restart ();
246
+ }
245
247
});
246
248
247
249
for (LispEnvironmentListener listener : serverListeners ) {
Original file line number Diff line number Diff line change 6
6
import com .intellij .xdebugger .breakpoints .XLineBreakpoint ;
7
7
import org .jetbrains .annotations .NotNull ;
8
8
9
+ @ SuppressWarnings ("DataFlowIssue" )
9
10
public class SltBreakpointListener implements XBreakpointListener <XLineBreakpoint <SltBreakpointProperties >> {
10
11
11
12
private final Project project ;
@@ -16,18 +17,24 @@ public SltBreakpointListener(Project project) {
16
17
17
18
@ Override
18
19
public void breakpointAdded (@ NotNull XLineBreakpoint <SltBreakpointProperties > breakpoint ) {
19
- LispEnvironmentService .getInstance (project )
20
- .addBreakpoint (breakpoint );
20
+ if (breakpoint .getProperties () instanceof SltBreakpointProperties ) {
21
+ LispEnvironmentService .getInstance (project )
22
+ .addBreakpoint (breakpoint );
23
+ }
21
24
}
22
25
23
26
@ Override
24
27
public void breakpointRemoved (@ NotNull XLineBreakpoint <SltBreakpointProperties > breakpoint ) {
25
- LispEnvironmentService .getInstance (project )
26
- .removeBreakpoint (breakpoint );
28
+ if (breakpoint .getProperties () instanceof SltBreakpointProperties ) {
29
+ LispEnvironmentService .getInstance (project )
30
+ .removeBreakpoint (breakpoint );
31
+ }
27
32
}
28
33
29
34
@ Override
30
35
public void breakpointChanged (@ NotNull XLineBreakpoint <SltBreakpointProperties > breakpoint ) {
31
- LispEnvironmentService .getInstance (project ).nativeBreakpointUpdated (breakpoint );
36
+ if (breakpoint .getProperties () instanceof SltBreakpointProperties ) {
37
+ LispEnvironmentService .getInstance (project ).nativeBreakpointUpdated (breakpoint );
38
+ }
32
39
}
33
40
}
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ public class PluginPath {
13
13
public static File getPluginFolder () {
14
14
String path = PathManager .getConfigPath ();
15
15
File configPath = new File (path );
16
- if (configPath .exists ()) {
17
- // Root jetbrains config folder
18
- configPath = configPath .getParentFile ();
19
- }
20
16
File pluginFolder ;
21
17
if (configPath .exists ()) {
22
18
pluginFolder = new File (configPath , PLUGIN_SUFFIX );
Original file line number Diff line number Diff line change 168
168
</projectListeners >
169
169
170
170
<change-notes ><![CDATA[
171
- <p>0.4.0 New features:</p>
171
+ <p>0.4.1 New features:</p>
172
172
<p>- Support for multiple lisp interprets<br />
173
173
- ABCL Support<br />
174
174
- CCL Support<br />
You can’t perform that action at this time.
0 commit comments