Support env variables in project configurations
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
調査の方向性
Start by tracing how setup_project configurations reach FlutterRun, then inspect the job runner's plenary Job environment and the debugger launch config environment. Add an optional per-configuration env field that merges with Neovim's environment for run and debug processes only. Done means those processes receive the selected configuration's values while other jobs, such as pub get and devices, remain unchanged.
索引モデルが issue の本文から書いたものです。
説明
Today there is no way to set environment variables for the flutter run command per project configuration. The process started by FlutterRun inherits Neovim's environment, so env vars have to be exported in the shell before starting Neovim, or set with vim.env in pre_run_callback. The vim.env approach leaks the value into the whole Neovim session and is not undone when switching to another configuration.
Other editors support this per run configuration (IntelliJ "Environment variables", VS Code launch.json "env").
Proposal: add an optional env field to setup_project configurations:
require("flutter-tools").setup_project({
{
name = "Dev",
flavor = "dev",
env = { API_KEY = "abc", LOG_LEVEL = "debug" },
},
})
The values would be merged on top of Neovim's environment and only applied to the run/debug process of that configuration: the job runner (plenary Job env) and the debugger runner (launch config env). Other jobs like pub get or devices stay unchanged, which keeps the scope small (see #89).
Happy to open a PR if this sounds good.
- 主要言語
- Lua
- スター
- 1.4k
- フォーク
- 117
- 平均マージ
- 9時間 54分
- マージ済み PR(30日)
- 22
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nvim-flutter/flutter-tools.nvim のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
nvim-flutter/flutter-tools.nvim#524 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
nvim-flutter/flutter-tools.nvim#426 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
nvim-flutter/flutter-tools.nvim#393 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
nvim-flutter/flutter-tools.nvim の issue をすべて見る
似ている issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
petertriho/nvim-scrollbar#120 ·
-
Addon Conflict Bug Forever Module - Tracker
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信
-
docs(plugin): complete terminal API and permission scope documentation対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdocumentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
eugenioenko/ttt#1000 ·
メンテナーはふだん 1 日以内に返信