Skip to content

Commit

Permalink
Merge pull request #56 from Enerccio/stable
Browse files Browse the repository at this point in the history
0.4.1 fixes
  • Loading branch information
Enerccio authored Feb 18, 2023
2 parents 3094831 + be93981 commit f15132b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.4.1 230218

### Fixes

- fixed error with breakpoints in other subsystems
- fixed error with project closure causing listener to be called even after project was dead

## 0.4.0 230211

### Added
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "com.en_circle.slt"
version = "0.4.0"
version = "0.4.1"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,10 @@ private void doStop() throws Exception {
}

ApplicationManager.getApplication().invokeLaterOnWriteThread(() -> {
ParameterHintsPassFactory.forceHintsUpdateOnNextPass();
DaemonCodeAnalyzer.getInstance(project).restart();
if (!project.isDisposed()) {
ParameterHintsPassFactory.forceHintsUpdateOnNextPass();
DaemonCodeAnalyzer.getInstance(project).restart();
}
});

for (LispEnvironmentListener listener : serverListeners) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.intellij.xdebugger.breakpoints.XLineBreakpoint;
import org.jetbrains.annotations.NotNull;

@SuppressWarnings("DataFlowIssue")
public class SltBreakpointListener implements XBreakpointListener<XLineBreakpoint<SltBreakpointProperties>> {

private final Project project;
Expand All @@ -16,18 +17,24 @@ public SltBreakpointListener(Project project) {

@Override
public void breakpointAdded(@NotNull XLineBreakpoint<SltBreakpointProperties> breakpoint) {
LispEnvironmentService.getInstance(project)
.addBreakpoint(breakpoint);
if (breakpoint.getProperties() instanceof SltBreakpointProperties) {
LispEnvironmentService.getInstance(project)
.addBreakpoint(breakpoint);
}
}

@Override
public void breakpointRemoved(@NotNull XLineBreakpoint<SltBreakpointProperties> breakpoint) {
LispEnvironmentService.getInstance(project)
.removeBreakpoint(breakpoint);
if (breakpoint.getProperties() instanceof SltBreakpointProperties) {
LispEnvironmentService.getInstance(project)
.removeBreakpoint(breakpoint);
}
}

@Override
public void breakpointChanged(@NotNull XLineBreakpoint<SltBreakpointProperties> breakpoint) {
LispEnvironmentService.getInstance(project).nativeBreakpointUpdated(breakpoint);
if (breakpoint.getProperties() instanceof SltBreakpointProperties) {
LispEnvironmentService.getInstance(project).nativeBreakpointUpdated(breakpoint);
}
}
}
4 changes: 0 additions & 4 deletions src/main/java/com/en_circle/slt/tools/PluginPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ public class PluginPath {
public static File getPluginFolder() {
String path = PathManager.getConfigPath();
File configPath = new File(path);
if (configPath.exists()) {
// Root jetbrains config folder
configPath = configPath.getParentFile();
}
File pluginFolder;
if (configPath.exists()) {
pluginFolder = new File(configPath, PLUGIN_SUFFIX);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
</projectListeners>

<change-notes><![CDATA[
<p>0.4.0 New features:</p>
<p>0.4.1 New features:</p>
<p>- Support for multiple lisp interprets<br />
- ABCL Support<br />
- CCL Support<br />
Expand Down

0 comments on commit f15132b

Please sign in to comment.