[gnome-builder] eslint: handle a couple subtleties in the host launcher
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] eslint: handle a couple subtleties in the host launcher
- Date: Sun, 2 Jan 2022 02:10:56 +0000 (UTC)
commit e66aba592bf66cead52a7363d807e96ce19db31a
Author: Christian Hergert <chergert redhat com>
Date: Sat Jan 1 18:10:51 2022 -0800
eslint: handle a couple subtleties in the host launcher
Related !490
src/plugins/eslint/eslint_plugin.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/eslint/eslint_plugin.py b/src/plugins/eslint/eslint_plugin.py
index 5f35e0611..6f3a55b71 100644
--- a/src/plugins/eslint/eslint_plugin.py
+++ b/src/plugins/eslint/eslint_plugin.py
@@ -77,7 +77,12 @@ class ESLintDiagnosticProvider(Ide.Object, Ide.DiagnosticProvider):
# environment since that is likely where things were installed
# and likely need access to host libraries/etc at known
# locations/paths.
- launcher = Ide.SubprocessLauncher.new(flags)
+ if host is not None:
+ launcher = host.create_launcher()
+ launcher.set_flags(flags)
+ else:
+ launcher = Ide.SubprocessLauncher.new(flags)
+ launcher.set_run_on_host(True)
launcher.set_cwd(srcdir)
launcher.push_argv(local_eslint)
return launcher
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]