Skip to content

Commit

Permalink
[Reloadium|PyCharmPlugin] 0.8.5 | 0.7.8 Release
Browse files Browse the repository at this point in the history
**Miscellaneous**:

  Fixed:
    * Index not ready errors
    * Optimise import time
    * Modifying decorated class methods bugs
    * Comprehensions bugs
    * Python 3.10 compatibility bugs
    * Reloading nested classes
    * Windows compatibility bugs (django not rolling back db on user error)

  Changed:
    * Make debugger speedups disabled by default (does not work in some cases)

  Added:
    * Handle user errors feature (let users fix errors that occured durring debugging).
    * Adding and editing enum
  • Loading branch information
dkrystki committed Apr 12, 2022
1 parent 04ac38c commit 4d7ce9e
Show file tree
Hide file tree
Showing 19 changed files with 237 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ reloader/.build_cache
wheels

common

.syncthing*
22 changes: 21 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@ Change Log
##########


0.8.5
-------

**Miscellaneous**:

Changed:
* Make debugger speedups disabled by default (does not work in some cases)

Fixed:
* Optimise import time
* Modifying decorated class methods bugs
* Comprehensions bugs
* Python 3.10 compatibility bugs
* Reloading nested classes
* Windows compatibility bugs (django not rolling back db on user error)

Added:
* Handle user errors feature (let users fix errors that occured durring debugging).
* Adding and editing enums

0.8.4
-------

Expand All @@ -15,7 +35,7 @@ Change Log
**User Experience**:

Added:
* Modifing not loaded files msg
* Modifying not loaded files msg

0.8.3
-------
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
.. raw:: html

<p align="center">
<img src="media/example.gif" width="715px" alt="Example">
<img src="media/example_small.gif" width="715px" alt="Example">
</p>


Expand Down
2 changes: 1 addition & 1 deletion __version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.8.4"
version = "0.8.5"
58 changes: 57 additions & 1 deletion changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,60 @@
{
"0.8.5": [
{
"type": "Changed",
"description": "Make debugger speedups disabled by default (does not work in some cases)",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Optimise import time",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Modifying decorated class methods bugs",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Comprehensions bugs",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Added",
"description": "Handle user errors feature (let users fix errors that occured durring debugging).",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Python 3.10 compatibility bugs",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Reloading nested classes",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Windows compatibility bugs (django not rolling back db on user error)",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Added",
"description": "Adding and editing enums",
"tag": "Miscellaneous",
"date": "2022-04-12"
}
],
"0.8.4": [
{
"type": "Fixed",
Expand All @@ -20,7 +76,7 @@
},
{
"type": "Added",
"description": "Modifing not loaded files msg",
"description": "Modifying not loaded files msg",
"tag": "User Experience",
"date": "2022-04-05"
}
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<img src="media/logo.svg" width="400px" alt="Logo">
</p>
<h4 align="center"> The missing element of Python - Advanced Hot Reloading </h4><div class="center"><p align="center">
<img src="media/example.gif" width="715px" alt="Example">
<img src="media/example_small.gif" width="715px" alt="Example">
</p></div><div class="section" id="repository-url">
<h1>Repository URL</h1>
<p><a class="reference external" href="https://github.com/reloadware/reloadium">https://github.com/reloadware/reloadium</a></p>
Expand Down
21 changes: 21 additions & 0 deletions pycharm/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@ Change Log
##########


0.7.8
-------

**Miscellaneous**:

Fixed:
* Index not ready errors
* Optimise import time
* Modifying decorated class methods bugs
* Comprehensions bugs
* Python 3.10 compatibility bugs
* Reloading nested classes
* Windows compatibility bugs (django not rolling back db on user error)

Changed:
* Make debugger speedups disabled by default (does not work in some cases)

Added:
* Handle user errors feature (let users fix errors that occured durring debugging).
* Adding and editing enums

0.7.7
-------

Expand Down
2 changes: 1 addition & 1 deletion pycharm/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.7.7"
version = "0.7.8"
4 changes: 2 additions & 2 deletions pycharm/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
plugins {
id('java')
id('org.jetbrains.intellij') version '1.5.2'
id("org.jetbrains.kotlin.jvm") version "1.6.0"
id("org.jetbrains.kotlin.jvm") version "1.6.20"
id('com.adarshr.test-logger') version '3.1.0'
}

group 'com.reloadware'
version '0.7.7' // # RwRender: version '{{ ctx.version }}' //
version '0.7.8' // # RwRender: version '{{ ctx.version }}' //

repositories {
mavenCentral()
Expand Down
62 changes: 62 additions & 0 deletions pycharm/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,66 @@
{
"0.7.8": [
{
"type": "Fixed",
"description": "Index not ready errors",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Changed",
"description": "Make debugger speedups disabled by default (does not work in some cases)",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Optimise import time",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Modifying decorated class methods bugs",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Comprehensions bugs",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Added",
"description": "Handle user errors feature (let users fix errors that occured durring debugging).",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Python 3.10 compatibility bugs",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Reloading nested classes",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Fixed",
"description": "Windows compatibility bugs (django not rolling back db on user error)",
"tag": "Miscellaneous",
"date": "2022-04-12"
},
{
"type": "Added",
"description": "Adding and editing enums",
"tag": "Miscellaneous",
"date": "2022-04-12"
}
],
"0.7.7": [
{
"type": "Added",
Expand Down
3 changes: 2 additions & 1 deletion pycharm/src/main/java/rw/action/DebugWithReloadium.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
import com.intellij.execution.executors.DefaultDebugExecutor;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.DumbAware;
import rw.icons.Icons;


public class DebugWithReloadium extends WithReloaderBase {
public class DebugWithReloadium extends WithReloaderBase implements DumbAware {
private static final Logger LOGGER = Logger.getInstance(DebugWithReloadium.class);

public static String ID = "DebugWithReloadium";
Expand Down
23 changes: 22 additions & 1 deletion pycharm/src/main/java/rw/action/RerunDebugWithReloadium.java
Original file line number Diff line number Diff line change
@@ -1,24 +1,45 @@
package rw.action;

import com.intellij.execution.Executor;
import com.intellij.execution.RunnerAndConfigurationSettings;
import com.intellij.execution.executors.DefaultDebugExecutor;
import com.intellij.execution.runners.ExecutionEnvironment;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DataKey;
import com.intellij.openapi.diagnostic.Logger;
import org.jetbrains.annotations.NotNull;
import rw.icons.Icons;

class ExecutionDataKeys {
public static final DataKey<ExecutionEnvironment> EXECUTION_ENVIRONMENT = DataKey.create("executionEnvironment");
}


public class RerunDebugWithReloadium extends DebugWithReloadium {
public class RerunDebugWithReloadium extends WithReloaderBase {
private static final Logger LOGGER = Logger.getInstance(RerunDebugWithReloadium.class);

RerunDebugWithReloadium() {
super();
this.runType = RunType.DEBUG;
}

@Override
protected RunnerAndConfigurationSettings getConfiguration(@NotNull AnActionEvent e) {
ExecutionEnvironment environment = e.getData(ExecutionDataKeys.EXECUTION_ENVIRONMENT);
RunnerAndConfigurationSettings ret = environment.getRunnerAndConfigurationSettings();
return ret;
}

@Override
void setRunningIcon(AnActionEvent e) {
e.getPresentation().setIcon(Icons.RestartDebugger);
}
void setNotRunningIcon(AnActionEvent e) {
e.getPresentation().setIcon(Icons.Debug);
}

@Override
protected Executor getExecutor() {
return DefaultDebugExecutor.getDebugExecutorInstance();
}
}
3 changes: 2 additions & 1 deletion pycharm/src/main/java/rw/action/RunWithReloadium.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
import com.intellij.execution.executors.DefaultRunExecutor;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.DumbAware;
import rw.icons.Icons;


public class RunWithReloadium extends WithReloaderBase {
public class RunWithReloadium extends WithReloaderBase implements DumbAware {
private static final Logger LOGGER = Logger.getInstance(RunWithReloadium.class);

RunWithReloadium() {
Expand Down
2 changes: 1 addition & 1 deletion pycharm/src/main/java/rw/action/WithReloaderBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.TimerTask;


public abstract class WithReloaderBase extends AnAction implements DumbAware {
public abstract class WithReloaderBase extends AnAction {
RunType runType;

private static final Logger LOGGER = Logger.getInstance(WithReloaderBase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void beforeRun(RunType runType) {
this.runConf.getEnvs().put("RW_CACHE", EnvUtils.boolToEnv(state.cacheEnabled));
this.runConf.getEnvs().put("RW_PRINTLOGO", EnvUtils.boolToEnv(state.printLogo));
this.runConf.getEnvs().put("RW_WATCHCWD", EnvUtils.boolToEnv(state.watchCwd));
this.runConf.getEnvs().put("PYDEVD_USE_CYTHON", "NO");

List<String> reloadiumPath = new ArrayList<String>(state.reloadiumPath);

Expand Down
7 changes: 6 additions & 1 deletion pycharm/src/main/java/rw/pkg/BasePackageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,16 @@ public boolean isInstalling() {
abstract public void install(@Nullable Listener listener) throws Exception;

public void run(@Nullable Listener listener) {
if (this.shouldInstall()) {
try {
if (this.shouldInstall()) {
this.installing = true;
LOGGER.info("Installing");
ProgressManager.getInstance().run(new InstallTask(this, listener));
}
}
catch (Exception e) {
RwSentry.get().captureException(e);
}
}

abstract protected List<File> getWheelFiles() throws IOException;
Expand Down
2 changes: 1 addition & 1 deletion pycharm/src/main/java/rw/settings/PluginState.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public PluginState() {
this.printLogo = true;
this.cacheEnabled = true;
this.verbose = true;
this.debuggerSpeedups = true;
this.debuggerSpeedups = false;
}

@Override
Expand Down
Loading

0 comments on commit 4d7ce9e

Please sign in to comment.