Hi, I’ve set a Python project with couple of build system variants:
"build_systems":
[
{
"name": "isd",
"selector": "source.python",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"cmd": [".venv/scripts/python.exe", "-u", "$file"],
"working_dir": "${project_path}",
"variants": [
{
"name": "DuckDB",
"selector": "source.sql",
"file_patterns": ["*.duckdb"],
"working_dir": "$project_path",
"word_wrap": false,
"cmd":
[
"duckdb",
"-f",
"$file"
],
},
{
"name": "Pytest",
"cmd": [".venv/scripts/pytest"],
},
{
"name": "Markdown preview",
"cmd": ["cmd", "/c", "start", "$file"],
"selector": "text.html.markdown",
}
]
}
]
However, when I press Ctrl+B
none or the variants nor the primary, understands the selector
or the file_patterns
key.
It uses the last run build system (variant) regardless, and I need to go with Ctrl+Shift+B
, which is no hard thing to do, but I just don’t keep track which build variant I run the last.
Am I missing some setting, as otherwise what’s the point using selectors or file patterns in build system itself and variants?