mirror of
https://github.com/hexedtech/codemp-intellij.git
synced 2024-12-23 04:54:52 +01:00
fix: logging now actually works
This commit is contained in:
parent
9ff8de0df4
commit
9e16c21454
3 changed files with 7 additions and 3 deletions
|
@ -16,7 +16,9 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation "com.github.adamheinrich:native-utils:master-SNAPSHOT"
|
||||
implementation 'com.github.adamheinrich:native-utils:master-SNAPSHOT'
|
||||
implementation 'org.slf4j:slf4j-api:2.0.9'
|
||||
implementation 'ch.qos.logback:logback-classic:1.4.6'
|
||||
}
|
||||
|
||||
// Configure Gradle IntelliJ Plugin
|
||||
|
@ -72,4 +74,4 @@ tasks.register('cargoClean', Exec) {
|
|||
dependsOn deleteGeneratedNativeInterface
|
||||
}
|
||||
|
||||
clean.dependsOn cargoClean
|
||||
clean.dependsOn cargoClean
|
||||
|
|
|
@ -20,8 +20,9 @@ public class CodeMP {
|
|||
} catch(IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
} finally {
|
||||
LOGGER.info("Loaded CodeMP library!");
|
||||
loadedLibrary = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ public class BufferAttachAction extends AnAction {
|
|||
ApplicationManager.getApplication().runWriteAction(() -> {
|
||||
CodeMP.LOGGER.debug("Received text change {} from offset {} to {}!\n",
|
||||
event.getContent(), event.getStart(), event.getEnd());
|
||||
CodeMP.LOGGER.info("is writable: {}", document.isWritable());
|
||||
document.replaceString( //TODO this doesn't work
|
||||
(int) event.getStart(),
|
||||
(int) event.getEnd(),
|
||||
|
|
Loading…
Reference in a new issue