Debug on a Python configuration with an SSH run target now starts the program under the debugpy bootstrap listening on the host's loopback interface, forwards a local port through the SSH session and attaches with the project root mapped onto the target folder. When the host's interpreter has no debugpy, the IDE's copy is uploaded once to ~/.openidea/debug/<version> (written to a temporary folder and renamed into place so concurrent runs don't see partial files); without a local copy the error offers to install it. The check times out after 30 s, and the run fails if debugpy is not ready 120 s after start. The launch parameter containerDebug is renamed targetDebug.
Closes#6695
Co-authored-by: wildcatDownstairs <[email protected]>
Breakpoints can be set in notebook code cells, and Debug Cell (notebook toolbar, cell toolbar, Find Action) runs the cell under the kernel's debugger through the Jupyter debugger protocol: DAP requests go as debug_request on the control channel, replies and events come back as debug_reply/debug_event. This works for local ZeroMQ kernels and kernels on a Jupyter server alike.
The bridge dumps every code cell once the debugger starts, rewrites source paths between cell URIs and the kernel's compiled files, re-dumps edited cells before setBreakpoints, and sends disconnect (never terminate) when the session ends, so the kernel and its variables are kept. DebugManager::start_over attaches a session over an existing stream. Kernels without a debugger are refused at once with the reason, and Interrupt during a debug session disconnects first.
Closes#6681
Co-authored-by: wildcatDownstairs <[email protected]>
Connect to Jupyter Server... in the notebook kernel drop-down and Find Action takes any URL a Jupyter server prints (lab/notebook/JupyterHub user URLs are reduced to the server base) and a token. The token is checked against /api/kernelspecs and stored in the OS credential store; only the base URL is written to disk. Saved servers are listed in the kernel drop-down with their kernel specs, remembered per notebook, and can be removed again.
A remote kernel is started with POST api/kernels, driven over its channels WebSocket (through the configured HTTP proxy via the new ide_http::tunnel), interrupted with POST .../interrupt and deleted on restart, close, failed or cancelled start. A dropped socket is reopened for the same kernel and session for about 15 s so buffered output is replayed. The kernel transport now has a Link with local (ZeroMQ) and remote variants, sharing execution, output routing and the Jupyter Variables window. Token-less servers get the _xsrf cookie and header.
Closes#6526
Co-authored-by: wildcatDownstairs <[email protected]>
Adds a GitHub Actions tool window listing the workflow runs of the current branch (including its pull request runs), with a toggle for every branch. Expanding a run lists its jobs; selecting a job shows its log with runner timestamps and group markers removed and error lines highlighted. The toolbar has Re-run Failed Jobs, Re-run All Jobs, Re-run Job, Open in Browser and Refresh, and the list refreshes every 15 seconds while anything runs.
gh 2.104 refuses to print responses containing terminal escape sequences unless --allow-escape-sequences is passed; ide_github::api retries a GET with the flag only when gh refused for that reason, so older gh versions keep working.
resetConnection now clears a GitHub check still running for the previous project, which left the connection stuck in "checking" after switching projects.
The tool window uses the github icon (the build tool window already uses toolwindow-build), and "GitHub Actions" is kept untranslated in zh.
Closes#6716
Co-authored-by: wildcatDownstairs <[email protected]>
Adds Git > GitHub > Share Project on GitHub. The dialog asks for the repository name, Private (on by default), the remote name and a description; a folder that is not a Git repository yet is initialized. A confirmation lists the commits to push, or the files and message of an initial commit. The repository is then created with gh api, added as the remote and the branch pushed with its upstream. A project that already has a remote on that GitHub server gets a notification linking to it instead.
vcs_init now detects the project's repositories before it returns, so a command right after it no longer fails with "project is not a git repository".
Closes#6715
Co-authored-by: wildcatDownstairs <[email protected]>
Adds Git > GitHub > Create Gist... From the editor it posts the selection, or the whole file without one; from the Project view and editor tabs it posts the selected files (folders are skipped). The dialog asks for a file name (single file only) and a description, with Secret (on by default), Open in browser and Copy URL; the choices are remembered. The gist is created with gh api under the project's GitHub account and a notification links to it.
Closes#6714
Co-authored-by: wildcatDownstairs <[email protected]>
The plugin index entry gained optional localized fields (#6776) that are skipped when empty, so specta now emits separate serialize and deserialize shapes for IndexEntry and MarketPlugin. The committed bindings still had the single shape; regenerated with the export_bindings test.
Configure GPG Signature gets a signing format (OpenPGP / SSH), saved as gpg.format in the repository config. With SSH, the key list shows ssh-agent's keys (`ssh-add -L`, saved as key::<public key>) and ~/.ssh/*.pub files, agent keys first, with a hint to ssh-add a key that isn't in the agent. Changing the format without a new key removes the old key, which belongs to the other format.
Closes#6712
Co-authored-by: wildcatDownstairs <[email protected]>
Plugin Overview and What's New rendered as plain text and ignored the UI language. plugin.toml gains optional description-file and change-notes-file (API 1.18, Markdown inside the package, UTF-8, at most 256 KiB); a shared loader validates them and localized siblings (description.zh-CN.md) in check, pack, install and index. Descriptions and change notes resolve per locale from locales/<tag>.json and those siblings, with English fallback, for installed, local catalog and marketplace plugins.
Markdown is rendered with lazily loaded marked and an isolated DOMPurify that strips scripts, event handlers, javascript:/file: links, styles and external resources, keeping marked out of the Settings window's boot graph.
Closes#6773
Merged with main: the pending-uninstall placeholder plugin now gets docs from its manifest.
Co-authored-by: wildcatDownstairs <[email protected]>
The terminal now highlights a typed command the IDE recognises, and Cmd+Enter (Ctrl+Enter on Windows/Linux) runs it in the Run tool window instead of the shell; plain Enter still runs it in the shell, and unrecognised lines pass Cmd+Enter through. Settings > Tools > Terminal > Run commands using IDE, on by default.
The zsh, bash and fish integration scripts now send OSC 133 B after the prompt, report PATH, VIRTUAL_ENV and CONDA_PREFIX at each prompt, and bind a key that clears the command line in emacs and vi modes; nothing runs if the line isn't cleared. Recognised lines are those a Run Anything provider accepts for the terminal's folder: pytest / python -m / python file.py with the shell's active environment, package scripts, mvn/gradle in the containing module, npx / pnpm exec, and manage.py in its folder. Lines with shell syntax and run configuration names stay with the shell.
Closes#6719
Co-authored-by: wildcatDownstairs <[email protected]>
.rst files opened in the editor alone. They now get the Editor Only / Editor and Preview / Preview Only layouts with a preview that follows typing, rendered by docutils in the project's Python interpreter; without docutils or an interpreter the preview says what is missing.
Rendering runs only in trusted projects, off the UI thread, with a 15 s timeout, -E and an empty working directory; a render superseded by new text is cancelled and its interpreter stopped. include, raw, file and URL insertion and docutils.conf are off, and the HTML goes through the Markdown preview's sanitizer (MathML kept, remote images not loaded). The SVG preview's live-text store and the Markdown preview's image loader moved to shared modules unchanged.
Closes#6682
Co-authored-by: wildcatDownstairs <[email protected]>
Adds Settings > Languages & Frameworks > JSON Schema Mappings: each mapping has a name, a schema (URL or project file) and the files it applies to (paths or globs, !pattern excludes). Mappings are saved to the project's .openidea/settings.toml by default, or globally, and are sent to vscode-json-language-server and yaml-language-server through workspace/didChangeConfiguration without a restart.
Patterns are sent as absolute paths because both servers prefix patterns with **/, built-in SchemaStore entries exclude the files a custom mapping takes so the custom schema replaces rather than adds to them, a project schema file is not validated against itself, and the page warns about patterns that take every JSON or YAML file.
Closes#6679
Co-authored-by: wildcatDownstairs <[email protected]>
Project endpoints (Search Everywhere's Endpoints tab, URL completion and navigation in .http files) came only from Spring and plugins. A built-in provider now reads Flask and FastAPI routes: app/blueprint/router decorators with methods, add_url_rule, blueprint and APIRouter prefixes including those given at registration, nested routers and mounted sub-apps, prefixes from module constants, imports and settings attributes. Only receivers resolved to Flask, Blueprint, FastAPI or APIRouter instances count, and routes whose path is only known at runtime are left out. Path parameters become {name}.
Route decorators get the Open in HTTP Client gutter icon. The project is scanned once and changed .py files are re-read individually (a large change set rescans); a new python_route_sources command lists candidate files using the Spring source scan, skipping site-packages.
Closes#6533
Co-authored-by: wildcatDownstairs <[email protected]>
Adds a Celery run configuration type: Worker runs python -m celery -A <app> worker (with -B when Run Beat scheduler is on), and Enqueue task sends one task with celery call (module, task, JSON args and kwargs). Celery joins the shared Python kind check (ide_run::is_python_kind, now also used for the container PYTHONPATH of local Docker runs, which Flask and FastAPI missed), so it runs on the project interpreter with PYTHONPATH / PYTHONUNBUFFERED, in containers too, and debugs through debugpy with subprocess attach for pool processes.
Checkbox fields in run configuration forms now show their text once, on the checkbox, instead of also as a misaligned row label (Go, JVM, Tomcat, Docker types included). The Python docs cover -P solo and separate Beat on Windows, @shared_task needing the app, and one debug session per pool process.
Closes#6646
Co-authored-by: wildcatDownstairs <[email protected]>
Flask and FastAPI apps could only run as ordinary scripts. Adds Flask server and FastAPI run configuration types: Flask runs python -m flask run with FLASK_APP / FLASK_DEBUG (read by every Flask version), host, port and extra options; FastAPI runs python -m uvicorn <module:app> with reload, host, port and options. Both use the Python interpreter choice and debug with debugpy; under the debugger Flask runs with --no-debugger, and without subprocess attach the reloader is turned off so breakpoints still stop.
A top-level (or src/) app.py, wsgi.py, main.py or app/main.py assigning Flask(...) or FastAPI(...) to a module-level name gets a detected configuration. The list of Python run kinds is now one function (ide_run::is_python_kind) instead of copies in the host, Docker, process and SDK code.
Closes#6532
Co-authored-by: wildcatDownstairs <[email protected]>
.jinja, .jinja2 and .j2 files opened as Plain Text. They now open as Jinja2 templates, with the extension before them deciding the content between the tags: Jinja2 HTML (.html.j2, .html.jinja, .htm.*) gets the HTML language server, Emmet, tag closing and linked tags like Django templates; any other name (nginx.conf.j2, values.yaml.j2, base.jinja) is a Jinja2 Template over plain text without HTML tooling.
Both use @codemirror/lang-jinja (now a direct dependency, the same 6.0.1 already in the lockfile): highlighting, folding and indentation of block statements, completion of tags, filters and tests, and tag matching. The file icon follows the extension before .j2, and breakpoints in a file typed as a Jinja language turn on debugpy's jinja support.
Closes#6644
Co-authored-by: wildcatDownstairs <[email protected]>
A repository tracking files with Git LFS gave no sign of it, and when the LFS objects were not downloaded (git-lfs missing, or a clone with GIT_LFS_SKIP_SMUDGE) the files stayed pointer files without explanation.
Once per repository and session in a trusted project, the LFS-tracked files whose checkout is still a pointer are listed (git ls-files ':(attr:filter=lfs)'). A notification names them and offers Pull LFS Objects (git lfs pull, after git lfs install --local when no config sets up the filter; an existing hook is kept), or says Git LFS is not installed and links to git-lfs.com. Git > Pull LFS Objects runs the same pull as a remote operation with progress, console output and cancel; it shows for repositories whose root .gitattributes uses filter=lfs.
Merged with the submodule actions from #6738: both repository flags, operations and notices are kept side by side.
Closes#6743
Co-authored-by: wildcatDownstairs <[email protected]>
Importing JetBrains settings now reads installed.txt and disabled_plugins.txt instead of listing plugins as not imported. Plugins with a known OpenIDEA counterpart are looked up in the marketplace while the confirmation is open and offered for install afterwards; IdeaVim turns on the built-in Vim emulation; disabled and unmapped plugins are listed.
Closes#6732
Co-authored-by: wildcatDownstairs <[email protected]>
Add Python Interpreter › Virtualenv / uv Environment gets "Inherit packages from base interpreter" (off by default, as in PyCharm), creating the environment with --system-site-packages for venv and uv. A virtualenv picked as the base is refused with the option on, since venv and uv build on the Python it came from.
Closes#6664
Co-authored-by: wildcatDownstairs <[email protected]>
Importing JetBrains settings now carries over inspection profiles (inspection/*.xml): Default merges into OpenIDEA's Default profile and other profiles become IDE-level profiles of the same name. Inspections with a counterpart keep their state and level, PEP 8 codes PyCharm ignores are turned off for Ruff and pylsp, and the confirmation lists what has no equivalent.
Closes#6723
Co-authored-by: wildcatDownstairs <[email protected]>
Add Python Interpreter › Conda Environment only listed the Python versions of local interpreters, so an environment with another version (or any, with no local Python) couldn't be created although conda downloads it. The version list now also offers Python 3.10–3.15; a version without a local interpreter is passed as is (`conda create … python=3.12`). The newest local version stays the default, 3.13 without one. conda's own error (the …Error: block, without the channel hints) is shown when create fails.
Closes#6672
Co-authored-by: wildcatDownstairs <[email protected]>
A project cloned without --recurse-submodules had empty submodule folders and no sign of it. Repositories now report submodules whose checkout was never initialized (skipping update=none and active=false ones); a notification lists them with Initialize, and Git › Submodules gets Initialize Submodules (`git submodule update --init --recursive -- <uninitialized paths>`, so checked-out submodules aren't detached) and Sync Submodule URLs (`git submodule sync --recursive`). Both need a trusted project.
Closes#6726
Co-authored-by: wildcatDownstairs <[email protected]>
Adds File › Save File as Template… (also in Find Action). The dialog prefills the active file's name, extension and current buffer, unsaved edits included, lets the user edit them and saves the template to the global Default file-template scheme without switching the selected scheme.
Co-authored-by: muutot <[email protected]>
Settings › Version Control › GitHub only listed accounts already signed in with gh, Clone Repository › GitHub told signed-out users to run gh auth login in a terminal, and Pull Requests opened a raw terminal tab.
The PTY sign-in dialog and OAuth device-code parser move from features/agents to src/workbench/CliSignInDialog.tsx and src/platform/deviceCode.ts, so agents and GitHub share them without a cross-feature import. GitHub settings get Sign In… / Add account… (selecting a newly added second account for the project) and Install GitHub CLI when gh is missing; the Pull Requests tool window signs in in-IDE and reconnects, with Add account… in its error state, repository selector and account menu; Clone › GitHub gets Sign In… and Add account…. The merge with main carries the dialog's terminal-reply filtering and FIFO input over to the moved file.
Co-authored-by: dengliu <[email protected]>
When the recent list holds remote projects, Welcome › Projects, the Recent Projects popup, the title-bar Project Widget's Recent Projects and File › Open Recent group them under Local and each remote target (SSH · host, WSL · distro, Dev Container · folder), most recently used first, with collapsible groups and the per-row host pill dropped inside a host group; search flattens the groups again. Local-only lists are unchanged. Recent list rows now take their natural height, so two- and three-line remote rows no longer overlap in the popup's virtualized list.
Co-authored-by: dengliu <[email protected]>
Tool window shortcuts focus an open but unfocused tool window on the first press and hide it on the second, as in IntelliJ IDEA. Appearance › Tool Windows gets an opt-in "Hide open tool windows on shortcut" (appearance.toggleToolWindowsOnShortcut, default off): when on, the shortcut hides such a window in one press and focus stays where it was.
Co-authored-by: dengliu <[email protected]>
A background tab keeps its CodeMirror view detached. Measured detached it is out of view, so CodeMirror maps its viewport through changes instead of fitting it, and a reload replacing most of the file (a checkout) made the hidden view draw every new line (30k DOM lines, ~5 s to show the tab again).
onTransactions now maps a detached view's viewport through the composed batch and, only when that exceeds 1,000 lines, runs that one update with the private viewState.inView set (guarded: only when it is a boolean, restored in finally) so CodeMirror fits the viewport. Small hidden edits keep mapping as before.
Closes#6762
Co-authored-by: audichuang <[email protected]>
PluginHost could deadlock: ensure_active held plugin.runtime across Wasm instantiation and activate(), where plugins call subscribe* (shared.subscriptions), while flush_events_at took queues -> plugins -> subscriptions -> runtime. post_window_events then blocked behind queues on the WebKit main thread, freezing the app (Not Responding).
- A per-plugin `activating` mutex serializes start/stop; `runtime` is now a leaf lock that never spans activation or host callbacks. stop() marks the plugin Disabled under it so a concurrent event can't reactivate it mid-stop.
- flush_events_at, queue_watched_changes, post_events_from and remote_languages snapshot plugins/subscriptions before taking queues instead of nesting the locks.
- plugin_post_events and plugin_set_active_file run off the main thread (async + spawn_blocking); the frontend keeps their order with a FIFO chain, snapshotting the editor context at call time.
Closes#6774
Co-authored-by: dengliu <[email protected]>
Settings > Editor > Smart Keys gets the Line Copy and Paste options: Copy/Cut with no selection act on each caret's line (can be turned off), Copy can select the copied lines, and a linewise paste goes above the caret line, at the caret, or trimmed mid-line. Native, context-menu and Paste from History pastes share the same linewise metadata.
Co-authored-by: muutot <[email protected]>
Python functions and classes without a docstring offer Insert a documentation string stub in Show Context Actions, generating PyCharm's default reStructuredText stub with :param: lines for the parameters (self/cls skipped) and :return:.
Co-authored-by: muutot <[email protected]>
File > Save As opens the existing Copy dialog for the active file with Open copy in editor forced on. A single-file copy of an open editor uses the new doc_copy_as, which writes the current buffer with its encoding, BOM and line endings and refuses a target that is open in another editor.
Co-authored-by: muutot <[email protected]>
The Documentation tool window gets a find bar (Cmd/Ctrl+F and a toolbar button) with match highlighting, a match count and previous/next navigation; the query is matched as plain text, and re-rendered documentation keeps the active match without scrolling.
Co-authored-by: muutot <[email protected]>
Quick Preview in the Project tool window: with one file selected, Space opens a read-only, highlighted preview popup without opening an editor tab (an open buffer's text when there is one). Escape, a selection change, focus loss or unmount close it. Bound in the IntelliJ macOS/Windows and VS Code macOS keymaps.
Co-authored-by: muutot <[email protected]>
Annotate backgrounds alternated between 18% and 24% tint once a file had more commits than palette colours, so neighbouring commits differed in weight as well as hue, and at 18% some hues were nearly grey. Commit and author colouring now share one tinted() helper at 40%.
Co-authored-by: junchangpeng <[email protected]>
A non-empty selection offers Create new scratch file from selection in Show Context Actions. The selection is copied verbatim into a new numbered scratch file (no language template), whose language is detected from the fragment, else the source file's language or extension.
Co-authored-by: muutot <[email protected]>
Settings > Live Templates gets Duplicate Template: it creates an editable user copy in the same group with the body, variables, contexts and options, and resets the abbreviation to ABBREVIATION as IDEA does. Plugin templates stay read-only but can be duplicated; the copy drops the plugin origin.
Co-authored-by: muutot <[email protected]>
Project view Options > Appearance > File Details shows each file's modification date and time and its size beside its name, as IDEA's File Details does. Off by default, persisted with the other view options; a missing modification time shows only the size.
Co-authored-by: muutot <[email protected]>
Show History for Selection ran one git log -L with patches and sent every commit's before/after block in one reply; selecting all of a 5,000-line file with 2,000 commits produced an 849 MB reply. The single git log -L is now read line by line: the first records keep their diffs (at least four, then as many as fit in 512 KiB), the rest keep only the commit header and the +++ path and hunk ranges. A row without its diff is read from its own commit when selected (git log -L <range> -n1 <commit>), and the tab prefetches in the direction of travel. New commands vcs_block_history_summary / _revisions / _revisions_at; the tab falls back to vcs_block_history on older servers. The reader pins --src-prefix/--dst-prefix and applies the lone-CR normalisation from #6757 to the summary path.
Co-authored-by: audichuang <[email protected]>
The Project view's horizontal scrollbar stayed visible at rest. It is now a DOM overlay (the shared Scrollbar gains a horizontal mode) that shows while the content scrolls sideways and fades about a second after scrolling stops, taking no row space either way; its thumb can still be dragged while visible. With the overlay the tree follows the dominant wheel axis over the last 200 ms, so small sideways deltas in a vertical trackpad gesture no longer shift the tree or reveal the bar. Other trees keep the native horizontal scrollbar.
Co-authored-by: faysou <[email protected]>
Signing in to GitHub CLI in the Sign In dialog could abort with "unexpected escape sequence from terminal": gh probes the background color with OSC 11 before prompting, and xterm's reply could be dropped before the PTY id resolved or reordered across concurrent term_write calls, so a late reply reached gh's prompter. gh auth login PTYs (local and remote) now get GLAMOUR_STYLE=notty when unset, which skips the probe; the dialog drops OSC 10/11/12 color replies, buffers input until the PTY exists and writes it in FIFO order, and no longer counts automated cursor/device replies as user input when deciding on the auto-Enter for the device code.
Co-authored-by: dengliu <[email protected]>
Follow-up to #6746. A repository choice saved as owner/name comes from a release that knew only github.com, so it now means github.com's repository of that name, and the Enterprise one only when github.com has none; #6746 had read it as the origin remote's, which reconnected some projects to the Enterprise server. The probe that picks where to ask gh follows the same rule and finds an Enterprise repository by its remote's path.
Co-authored-by: wildcatDownstairs <[email protected]>
With a key bound to Show Diff in New Window, the Compare tool window opened an empty diff: the diff actions could not ask the focused view what it shows, so they diffed the Project view's or the editor's file against HEAD, and the shelf, stash, patch and review trees only claimed Show Diff's own key. Views now register a diff source on their element (diffSource.ts) and both diff actions ask the one around the focused element first, whatever runs them (shortcut, menu, Find Action). Covered: Compare trees (tool window, comparison window, Push, rebase plan), shelf checklist and panel, Stash view and Unstash dialog, Apply Patch list, Local Changes review dialog and the Git Log's changed files. A guessed file without local changes now shows "No local changes in X" instead of an empty diff.
Fixes#6751
Co-authored-by: albince-mi <[email protected]>
Follow-up to #6742. The new pull request form's head repository picker keyed its options by owner/name, so same-named repositories on an Enterprise server and on github.com could not both be picked, and it offered remotes on another host. It now lists only remotes on the base repository's host, keyed by host/owner/name, and the default head ignores a tracked remote on another host. A selection saved before #6742 (no host) now resolves to the origin remote's repository when that is one of the matches, instead of depending on remote order.
Co-authored-by: wildcatDownstairs <[email protected]>
Follow-up to #6729. Repositories now compare by host as well, so acme/app on an Enterprise server and on github.com stay two remotes; the selector shows the host when remotes span hosts, and the saved choice is host/owner/name (an older owner/name still loads). connect passes the target's host and root to its own requests and switches the shared API host only after they succeed, so a failed switch no longer redirects the existing connection's requests. Remotes match an Enterprise host whatever its port, keeping gh's host:port for --hostname. Docs note that gh checks the server certificate against the system trust store.
Co-authored-by: wildcatDownstairs <[email protected]>
@codemirror/lang-html only nests JavaScript into <script> blocks whose type is exactly text/javascript, text/ecmascript and the like, so type="text/ecmascript-6" (old Vue CLI templates) and HTML's legacy text/javascript1.x stayed plain text. HTML, Vue, JSP, Django, Angular and Thymeleaf templates now parse these types as JavaScript.
Fixes#6683
Extending a selection with Shift+Down over long unwrapped lines got slower with every selected line: while scrolling the head into view, CodeMirror placed each long line's rendered part by the target's fraction of that line (1 above the target, negative below it), so every long line above the caret was redrawn from its end and back. The @codemirror/view patch now centres every unwrapped line's line gaps on the target's x, taken from the target's own line; wrapped lines are unchanged.
Adds selectLongLinesSql/Txt perf scenarios, SQL to the in-memory backend's languages, and a jsdom test for the line gaps.
Refs #4658
Co-authored-by: audichuang <[email protected]>
gh api does not take the host from the remote as gh pr does, so requests for an Enterprise repository went to github.com. GhApiRequest now carries an optional host passed as gh api --hostname (validated as host[:port]); the GitHub tool window sends the connected repository's host, availability reads the login on that host, and remotes on the host gh resolved count as GitHub remotes. Commit checks in the Git log keep github.com.
Fixes#6717
Co-authored-by: wildcatDownstairs <[email protected]>
Tracebacks of runs on Docker and Compose run targets print container paths: a site-packages frame showed File not found and a project frame fell back to a search by file name. The Run console, test tree and Debug Console now know the container a run is in, and an absolute path from such a run resolves through run_container_path: a file under a folder the project interpreter's snapshot copied opens that read-only copy, otherwise the bind mount whose container folder is the longest prefix maps it to the folder here (Compose mounts from docker compose config, cached until a Compose file changes). Paths that map to nothing show File not found; local runs resolve as before.
Closes#6710.
Co-authored-by: wildcatDownstairs <[email protected]>
With a Docker or Compose run target as the project interpreter, the Python Console reported "No Python interpreter" because it only asked for a local interpreter. When there is none but a run target interpreter is set, the console now starts its driver as a python run, which Run already routes into the target's container (project mounted, the target's interpreter, docker stop on Stop). The driver exits on SIGTERM itself, since as a container's PID 1 it would otherwise ignore Stop until docker's SIGKILL.
Closes#6685.
Co-authored-by: wildcatDownstairs <[email protected]>
With Show Changes from Parents on, a merge commit's changes listed only one group per parent, and the flat view did not show the groups at all. The merge's own changes (files changed against every parent) now come first, followed by a "Changes to <hash> <subject>" node per parent in both the flat and the directory view; a merge with no changes of its own shows "No merge conflicts". The parent filter keeps the merge's own changes and the chosen parent's node.
Fixes#6691