mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Support coverage for Docker based interpreter
This commit is contained in:
@@ -14,7 +14,7 @@ else:
|
||||
|
||||
coverage_file = os.getenv('PYCHARM_COVERAGE_FILE')
|
||||
run_cov = os.getenv('PYCHARM_RUN_COVERAGE')
|
||||
if os.getenv('JETBRAINS_REMOTE_RUN'):
|
||||
if os.getenv('CREATE_TEMP_COVERAGE_FILE'):
|
||||
line = 'LOG: PyCharm: File mapping:%s\t%s\n'
|
||||
import tempfile
|
||||
(h, new_cov_file) = tempfile.mkstemp(prefix='pycharm-coverage')
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
*/
|
||||
package com.jetbrains.python.remote;
|
||||
|
||||
import com.intellij.util.PathMappingSettings;
|
||||
import com.intellij.util.AbstractPathMapper;
|
||||
import com.intellij.util.PathMappingSettings;
|
||||
import com.intellij.util.containers.MultiMap;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -111,4 +111,9 @@ public class PyRemotePathMapper extends AbstractPathMapper implements Cloneable
|
||||
}
|
||||
return pathMapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PyRemotePathMapper clone() {
|
||||
return cloneMapper(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,9 @@ public abstract class PythonRemoteInterpreterManager {
|
||||
|
||||
public final static Key<PathMapper> PATH_MAPPING_SETTINGS_KEY = Key.create("PATH_MAPPING_SETTINGS_KEY");
|
||||
|
||||
public final static Key<PathMappingSettings> ADDITIONAL_MAPPINGS = Key.create("ADDITIONAL_MAPPINGS");
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated use {@link com.jetbrains.python.run.PyRemoteProcessStarterManager#startRemoteProcess(Project, GeneralCommandLine, PythonRemoteInterpreterManager, PyRemoteSdkAdditionalDataBase, PyRemotePathMapper)}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user