A ClickHouse HTTP response that stalled (a relay holding the reply, a dropped connection) left the console showing Running forever. The built-in driver now stops waiting after 600 seconds without response data and reports that the outcome is unknown, with the query_id; it does not replay or cancel the statement. Reading another chunk restarts the timer, and the Advanced property http_read_timeout (seconds) changes the interval.
Fixes#6435
Co-authored-by: principalwater <[email protected]>
ClickHouse accepts a standalone SET over HTTP, but without a session the setting is gone before the next request, so a console script silently ran its later statements with other settings. With use_http_session=false the driver now refuses a session-scoped SET before sending it and says to use a session or query-level SETTINGS; named sessions, SETTINGS clauses and SET DEFAULT ROLE are unchanged. The ClickHouse splitter now also treats # line comments and nested block comments as comments.
Fixes#6432
Co-authored-by: principalwater <[email protected]>
Templates under src/main/resources/templates get a warning (underline and Problems) on a fragment expression whose template does not exist or does not define the fragment, as the inspection Thymeleaf > Unresolved template and fragment references. A fragment counts as defined by th:fragment, th:ref, an element of that name, or an id. It stays silent where names cannot be resolved as Spring Boot's defaults do: spring.thymeleaf.prefix or suffix set in application.properties / .yml, missing templates outside the project folder's own templates directory, ~{_}, ?: fallbacks, expression names, relative names and comments. Template names get .html unless they end in an extension Thymeleaf recognizes, which also fixes Go to Declaration on names with a dot.
Part of #2889
Co-authored-by: audichuang <[email protected]>
The Annotate gutter's Options menu gets a Colors submenu with Author, Order (the default, tint by commit order) and Hide. Author gives the authors, sorted by name, the palette colours in turn. The choice is kept in localStorage and applies to every annotated editor, like the column and Names options.
Refs #6397
Co-authored-by: audichuang <[email protected]>
reformat_file's description pointed agents at an optimize_imports tool for import-only cleanup, but none was registered. optimize_imports runs the existing organize-imports path (including the Ruff fallback for Python) on the given files without reformatting and returns the same capped unified diff as reformat_file. Documented in the English and Chinese MCP guides.
Co-authored-by: akbar1214 <[email protected]>
Import Settings now reads templates/*.xml from a JetBrains settings archive or settings folder and, after confirmation, merges the templates (group, abbreviation, description, body, variables and defaults, contexts, deactivated state) into the custom live templates under stable jetbrains.* ids, so importing again updates rather than duplicates. Built-in and unrelated custom templates are kept.
Contexts are read as IDEA writes them: the full context id first (JAVA_SCRIPT, SHELL_SCRIPT), then its shorter prefixes down to the language (JAVA_STATEMENT, Python_Class, JS_STATEMENT, KOTLIN_TOPLEVEL), OTHER as everywhere, and comment or string contexts expand outside code. Templates whose contexts don't map to a language are listed as not imported, never made global; expressions OpenIDEA can't evaluate are listed and kept as text.
Co-authored-by: muutot <[email protected]>
Adds a "Fix safe lint issues on save" Ruff setting that runs ruff check --fix-only on Python files when saving, and a commit check that applies the same safe fixes before committing. Safe fixes run separately from formatting and Format on save.
Also translates the new "No safe lint fixes to apply" message and drops the replaced on-save hint from the ko/ru/tr catalogs.
Co-authored-by: muutot <[email protected]>
The Run/Debug with <title> actions of a plugin executor took only an object argument, while a plugin command passes text, so a plugin's own entry could start a configuration only as a plain run without the executor's Java agent. They now take a configuration id, or a services.context / services.toolbar command's argument as it came (the first selected service's configuration).
Fixes#6516
New Scratch Buffer (NewScratchBuffer, no default shortcut) cycles through buffer1.txt to buffer5.txt in the scratches folder: an existing buffer is opened with its contents (matched case-insensitively), a missing one is created empty. Listed in the keymap presets and the scratch guide.
Co-authored-by: muutot <[email protected]>
A remote window (SSH, WSL, Dev Container) shows a compact CPU and memory indicator beside the connection status; network and disk badges appear only when saturated. Clicking it, or Show Remote Host Resources, opens a dashboard with 60-second sparklines for CPU (cores, load), memory, network (with RPC round-trip latency) and disk (I/O and free space), the OpenIDEA processes on the host grouped by kind, and the top other host processes.
End Process asks for confirmation naming the process and PID, and ends only processes in the backend's own tree. Linux /proc and cgroup v2 limits are read for containers.
Co-authored-by: dengliu <[email protected]>
A Jupyter Variables tool window (bottom, under the stripe's overflow until first opened; also in Find Action) lists the variables of the last active notebook's kernel: name, type and a truncated repr, hiding private names, modules and IPython's own names. It refreshes after a run, a kernel restart and a switch of notebook, and never starts a kernel.
The variables are read with a silent execute_request carrying a user expression (no output, history, execution count or busy/idle status), only while the kernel is idle; a run started meanwhile waits for it, bounded to 10 seconds. A notebook tab restored at startup picks up its session once it opens.
Closes#6508
Co-authored-by: wildcatDownstairs <[email protected]>
Transpose (EditorTranspose, no default shortcut) swaps the code points before and after each caret and moves the caret past them; at a line end it swaps the line's last two code points. With several selections it rotates their texts (the rightmost moves to the leftmost) and keeps each replacement selected; mixed carets and selections do nothing. Listed in the IntelliJ and VS Code keymap presets and documented in the editor guide.
Co-authored-by: muutot <[email protected]>
Adds Convert to Python File to the Project view context menu of a .ipynb and Convert to Jupyter Notebook to that of a .py file, both also in Find Action for the active editor.
The script uses # %% cell markers; Markdown and raw cells become commented # %% [markdown] / # %% [raw] cells, and IPython-only lines (%magic, !shell) and whole %%cell-magic cells are commented out so the script runs with plain python. The result is written next to the source without overwriting (<name>-1.py, ...) and opened; an open notebook or script is converted as shown, unsaved edits included. Back to a notebook gives nbformat 4.5 with a Python 3 kernelspec, where # %% / #%% lines start cells and a script without markers becomes one code cell. A notebook that is not nbformat 4 reports an error and writes nothing.
Closes#6372
Co-authored-by: wildcatDownstairs <[email protected]>
coverage xml (import) and coverage lcov (Run with Coverage) exit 2 when the data misses a [report] fail_under, which failed the import and lost the run's report; both now get --fail-under=0.
coverage.py now runs in the nearest folder above the data file with a coverage.py configuration (.coveragerc, setup.cfg, tox.ini, pyproject.toml), else the project root, so a monorepo member's [paths] and relative_files apply. Files without source come from the combined data's measured_files() instead of parsing warnings, and Python runs with -W ignore, so disable_warnings and PYTHONWARNINGS=error no longer drop files or fail the import. coverage.py runs with a 10-minute timeout, and coverage.py 4 data or a coverage.py older than 6.3 get clear errors.
Closes#6474
Co-authored-by: wildcatDownstairs <[email protected]>
Fixes for the Python import updates on module and package moves:
- Nested attribute chains got overlapping edits and the move failed; each expression now gets one edit, on its longest moved prefix.
- Cancelling ends the request after the import scan and returns cancelled instead of partial edits.
- In monorepos, module names come only from Python roots (detected from a Python project file or marked by the user), a moved folder counts only when it holds .py/.pyi files, and an import is left alone when the importing file's own root has a module of that name.
- Files are read through the documents layer, so a BOM or another encoding no longer shifts the edits.
- Moving a .pyi stub without its .py changes no imports.
- Rewriting import pkg.models keeps pkg bound when the file still uses pkg.helper().
- Statements sharing a line stay valid, and moved names are removed line by line, keeping the remaining names' layout and comments.
Closes#6475
Co-authored-by: wildcatDownstairs <[email protected]>
The port check retried every bind error for 5 s; it now retries only AddrInUse (the previous adapter still shutting down) and reports any other bind error at once.
Every loopback form of the host (127.1, LOCALHOST, 0:0:0:0:0:0:0:1, ::ffff:127.0.0.1) is normalised with the URL parser and stays on loopback: localhost and IPv6 loopback listen on 127.0.0.1, since debugpy's adapter before 1.8 listens on IPv4 only, and the connect line and waiting note say 127.0.0.1 then. Another 127.x address listens on itself. Docs explain that an imported VS Code listen.host of 0.0.0.0 becomes localhost and how to reach the IDE from a container.
Co-authored-by: wildcatDownstairs <[email protected]>
The submenu of a problem's inspection (Alt+Enter on a fix, Problems, Inspection Results) lists the codes the inspection profile in effect turns off for that producer, each checked (unchecking removes the rule), plus Add rule… to suppress a code before it has ever reported (for example Ruff's UP045). Rules are plain profile entries, so the editor, Problems and Inspect Code hide those codes. The rows show only for inspections split by code (language servers, code-split built-ins); the input dialog is provided by the workbench.
Co-authored-by: muutot <[email protected]>
Import a Coverage Report now reads coverage.py's .coverage data file; choosing one .coverage.* file of a parallel run imports all of them. The data only records executed lines and arcs, so coverage.py in the project's interpreter combines it into a scratch file (combine --keep, the user's files untouched) and writes Cobertura XML (xml -i) for the existing importer, run in the project directory so [paths] and excluded lines apply. Running the interpreter needs a trusted project; without trust, an interpreter or coverage.py the error says so and points to coverage xml output. Files without source in the project are listed without lines and the notification says to map them with [paths].
Closes#6392
Co-authored-by: wildcatDownstairs <[email protected]>
Python Debug Server run configuration (Debug only): the IDE's debugpy adapter listens (attach with listen) and the program connects with debugpy.connect. The form shows the line to add; a loopback host listens on 127.0.0.1 only, any other host on all interfaces (with a warning, since debugpy's listen mode has no authentication); local/remote roots map paths and redirectOutput sends the program's output to the console. While waiting, the session is Starting and the console shows the address and the line; Stop cancels the wait. When the connected program ends by itself, the configuration listens again in the same tab, keeping the output. A port in use fails the start up front (debugpy's adapter would otherwise wait forever), and on the first stop the program's debugpy version is compared with the IDE's, with a warning when they differ. VS Code attach configurations with listen import as Python Debug Server.
Closes#6369
Co-authored-by: wildcatDownstairs <[email protected]>
Project-local data source folders in the Database tree: New › Folder…, rename and delete (members move back to the root), Move to Folder (also for several selected sources, including a new folder) and drag-and-drop onto a folder. Folders live in .openidea/data-source-folders.toml, written atomically and validated (one folder per source, known parents, no cycles), and are reloaded when the file changes on disk; removing data sources drops them from their folders.
Co-authored-by: wangyuewen-china <[email protected]>
Several selected data sources in the Database tree share Refresh, Deactivate and Remove: the context menu shows only those, with the number of affected sources. Refresh runs every selected source and reports failures once; Deactivate disconnects only the connected ones; Remove asks once (listing the names), disconnects, saves the project once and keeps the rest of the selection. The toolbar's Deactivate and Properties follow the multi-selection.
Co-authored-by: wangyuewen-china <[email protected]>
A run configuration started through execute_run_configuration ran out of sight, with no Run tool window tab, console or Stop. The tool now asks the project window to start the prepared configuration (before launch tasks already done), tagged with mcp.configRun; run_start recognises the tag on the first start, tees the output into the call's output file and reports the run it started, so exitCode, runId, stop_run and fullOutputPath keep working. A project loaded for MCP alone (no window, brave mode) still runs it directly.
Fixes#6330
Query consoles stay in <dataDir>/consoles/db; the database feature registers that folder as a Database Consoles root in the Project view's Scratches and Consoles scope, re-registered when a remote session starts or ends. Console folders show the data source's name and icon ("Orders", "Orders: sales") through new display-only label/icon file decorations, which also order siblings when sorting by name. Consoles announce their creation so the tree refreshes, deleted console files close their editors, and a console's data source is recovered from its path when the binding is missing.
Co-authored-by: wangyuewen-china <[email protected]>
Recent Files listed every query console as console.sql, so consoles of different data sources looked the same. Rows for files without an open editor now use the file decoration's tab title and icon, so a console shows as console [Orders] with its data source icon; match highlighting is dropped when the shown title differs from the file name.
Co-authored-by: wangyuewen-china <[email protected]>
Tables and views in the Database tree now show their comment in grey after the name, with the full comment as the row tooltip. Built-in drivers read it in the same catalog query that lists relations (PostgreSQL, MySQL, Oracle, ClickHouse, Snowflake, SQL Server extended properties) and JDBC sources from REMARKS. The new Show Table Comments view option is on by default and toggles from the Database window options; TableInfo.comment is optional on the wire.
Co-authored-by: wangyuewen-china <[email protected]>
The agent Sign In dialog parses OAuth device-authorization URLs and one-time codes from the sign-in PTY output and shows them above the terminal with Copy and Copy Code & Open Browser, using the desktop clipboard and browser. On openidea-server, sign-in PTYs are marked as a remote session (REMOTE_CONTAINERS=1 when no SSH or Codespaces marker exists, GH_BROWSER=true for gh without a browser override), so CLIs pick device-code sign-in instead of a remote-only loopback callback.
Co-authored-by: dengliu <[email protected]>
Docker commands moved from the desktop crate into the ide-host project_host domain, so a remote window reaches the Docker daemon on the remote host through openidea-server instead of the local one. The SSH tunnel reuses the existing resolve logic, docker_executable only caches a found path, and the Services store drops event streams, timers and in-flight requests when the host changes.
Co-authored-by: dengliu <[email protected]>
Import a Coverage Report now reads Cobertura XML (coverage.py's coverage xml and many other tools): line hits, partial branches from condition-coverage, relative file names resolved against <sources>, foreign paths mapped by suffix as for the other formats, and <methods> lines not counted twice. The import notification says how many files of a report are not in the project. Missing directories are now looked up once, which makes reports with CI paths under macOS's autofs /home import in under a second instead of tens of seconds.
Closes#6359
Co-authored-by: wildcatDownstairs <[email protected]>
Switching Sign In > GitHub account for GitHub Copilot used to hide New Tasks models behind an Apply step. A new trusted command, agent_preview_copilot_models, probes Copilot's model catalog for the staged account in memory without touching copilot.toml, models.json or active sessions, so the account and default model can be chosen together and saved with one Apply / OK, and Cancel discards both. Account logins are validated before they reach gh, and applying the account refreshes the stored catalog.
Co-authored-by: dengliu <[email protected]>
Adds an mdx language backed by @mdx-js/language-server and moves .mdx out of markdown.toml; the prose keeps Markdown highlighting, outline and folding. The server needs typescript.tsdk, which the launcher fills with the TypeScript vtsls uses (selected version, else vtsls' bundled one, else the one installed with the server, else the project's); an explicit tsdk setting wins, and the managed install adds typescript@6. Places keyed on markdown (live rendering, large-file outline, spell checking as prose, auto-indent, Surround With, colour preview) now include mdx. Formatting follows the Markdown entry of the Prettier / oxfmt language lists so saved lists keep formatting .mdx, and Prettier gets --parser mdx from mdx.toml instead of an extension special case.
Closes#6340
Co-authored-by: wildcatDownstairs <[email protected]>
Editor > Code Style > JavaScript and TypeScript get an Imports tab: import paths (shortest / relative / non-relative / relative within the project), import path ending (automatic / minimal / index / .js), and glob and regex lists of what not to auto-import. They are stored with the code style, added to the servers' typescript/javascript preferences under both vtsls and typescript-language-server key names, and sent to running servers with didChangeConfiguration; a server's own Language Servers settings still win. The two exclusion lists are always sent (as [] when unset) so clearing one takes effect without a restart. Adds the typescript_import_style language smoke test.
Closes#6072
Co-authored-by: wildcatDownstairs <[email protected]>
Indented .sass files now run some-sass-language-server (MIT, installed through npm from the Tools list): completion for variables and mixins across @use, Go to Declaration, hover with SassDoc comments and syntax diagnostics. vscode-css-language-server does not parse the indented syntax; SCSS, CSS and Less stay on it. The server throws on a null somesass configuration, so the definition passes an empty settings table to keep its defaults.
Closes#6339
Co-authored-by: wildcatDownstairs <[email protected]>
Navigate > Related Symbol now switches between a JS/TS component and the same-named files beside it: an Angular component, directive, pipe or service and its template, styles and spec (also following templateUrl / styleUrl / styleUrls), and Button.tsx with Button.module.css, Button.test.tsx and Button.stories.tsx. Targets are grouped as Source File, Template, Styles, Test and Stories. It reads only the folder listing and the open file's text; two same-named sources (Button.ts and a compiled Button.js) are not offered for each other.
Closes#6337
Co-authored-by: wildcatDownstairs <[email protected]>
Adds Compare File with Editor: the file selected in the Project view (or passed as the argument) is diffed against the active editor's file, opened at the editor's caret line, with swappable sides. The Project view context menu offers it right after Compare With… for a single file other than the editor's; virtual documents, folders, multiple files and the editor's own file get an explanatory notification instead. It is unbound in the presets and mapped from imported keymaps via CompareFileWithEditor.
Co-authored-by: mansur-akhmadi <[email protected]>
Adds Search with Google to the Run console context menu: it opens a web search for the trimmed, URL-encoded selected output in the browser, and is disabled when nothing (or only whitespace) is selected.
Co-authored-by: mansur-akhmadi <[email protected]>
Adds Close All Tabs to the terminal tab context menu. Close Tab / Close Other Tabs / Close All Tabs now share requestCloseTabs, which closes the tabs in order, confirms each running command like Close Tab, stops at a tab the user keeps open, and skips tabs whose shell already exited.
Co-authored-by: mansur-akhmadi <[email protected]>
Adds Export to Text File… to the Find Usages toolbar and Find Action. It writes the active search as shown (access filter applied, excluded usages left out) as an indented text report to a file picked in the save dialog, and reports write errors as a notification.
Co-authored-by: mansur-akhmadi <[email protected]>
Adds Tools > Save as Live Template…: with a selection in a text editor it adds a User live template whose text is the selection (dedented like $SELECTION$, with $ escaped as $$), in the file's language, and opens Settings > Live Templates on it. The page now accepts a focus target and selects that template.
The action is unbound in the presets and is reachable from imported keymaps and IdeaVim via SaveAsTemplate.
Closes#6304
Co-authored-by: mansur-akhmadi <[email protected]>
Adds Increase / Decrease Font Size in All Editors actions that change the editor font size setting for every open editor, next to the existing single-editor zoom actions.
The default keymaps bind Alt+Shift+. / Alt+Shift+, (Ctrl+Shift+. / Ctrl+Shift+, on macOS) to the All Editors actions; the single-editor actions stay available from Find Action and can be bound in Keymap settings. Docs and keymap tests updated.
Closes#6349
Co-authored-by: mansur-akhmadi <[email protected]>
IDEA's Edit > Delete Duplicate Lines (EditorUniqueLines): in the selected lines, or the whole file without a selection, keeps the first of each repeated line and deletes the later ones.
Closes#6322
Co-authored-by: mansur-akhmadi <[email protected]>
IDEA's Scroll Left / Scroll Right: move the editor viewport by one column without moving the caret, counted in whole columns. Unbound by default, as in IDEA.
Closes#6302
Co-authored-by: mansur-akhmadi <[email protected]>
IDEA's Kill to Word Start / Kill to Word End: cut from each caret back to the previous word start or on to the next word end, across blank lines, by hump with CamelHumps on. Repeated kills at the same caret collect into one clipboard entry like Cut up to Line End, backward kills before the collected text. Unbound by default, as in IDEA's default keymaps.
Closes#6293
Co-authored-by: mansur-akhmadi <[email protected]>
IDEA's Toggle Sticky Selection: while on, every caret move (keys, IDE actions, clicks, Find) extends the selection from its anchor. Turning it off, Esc, an edit of the document or a copy end it and remove the selection, as in IDEA. Swap Selection Boundaries keeps it going from the other end. No default shortcut, as in IDEA's default keymaps.
Closes#6324
Co-authored-by: mansur-akhmadi <[email protected]>
The encoding chosen for a file from the status bar (Reload or Convert) is remembered for that file across reopening and restarts, and a folder can have an encoding its files inherit (project settings). A converted file keeps its new encoding once saved. Precedence: a file's own choice, then the .editorconfig charset, then the folder mapping.
Co-authored-by: LittleGuava <[email protected]>
Test Runner Options gets Track Running Test (also in Find Action as run.toggleTrackRunningTest), remembered with the other test tree options and on by default. While a run is in progress, each test that starts is selected, its collapsed suites opened and its output shown; when several start together the last in tree order wins. A test finishing doesn't move the selection, so a test picked by hand stays selected until the next one starts, and focus doesn't move.
Co-authored-by: mansur-akhmadi <[email protected]>
A project can pin a GitHub CLI account in vcs.github.account (.openidea/settings.toml, a login, never a token), chosen in Settings > Version Control > GitHub or from the Pull Requests tool window header. With an account chosen, its token is resolved through gh and set as GH_TOKEN in the project environment for the project root and its agent worktrees; a .envrc GH_TOKEN still wins, and the token is cleared when the project closes or loses trust. Copilot keeps billing to its own account through COPILOT_GITHUB_TOKEN.
Automatic (the default) sets no GH_TOKEN and makes no GitHub calls on project open. When the settings page or the Pull Requests window asks for the status with several gh accounts signed in, the project's GitHub remote is probed to suggest a non-active account with access ("Use <login> for this project").
New commands: gh_project_account_status, gh_set_project_account. The gh account listing is shared with the Copilot account selector.
Co-authored-by: dengliu <[email protected]>
Copilot's Sign In notice and the free-text Launch > GitHub account field become one Sign In section: a GitHub account selector listing Copilot CLI's own default login (with its status from auth.getStatus) and the github.com accounts signed in to GitHub CLI (gh auth status, ignoring ambient token variables), plus Sign In... and an in-IDE Add account... that runs gh auth login in the sign-in dialog and selects the new account.
New Tasks model controls wait until the selected account is signed in and applied, and load that account's model catalog instead of showing a cached one from another account or subscription; changing the account evicts the idle Copilot catalog probe.
New commands: agent_copilot_auth_status, agent_gh_login_spawn.
Co-authored-by: dengliu <[email protected]>
Agents can be signed in from the IDE: Sign In... in Settings > Agents > Agent
Setup and on a sign-in error in the chat opens a dialog running the agent's own
login flow (copilot login, codex login, claude, an ACP terminal-auth method) in
an IDE-managed PTY with the real program and arguments, no shell quoting. The
Settings window's boot provides the embedded terminal, so the dialog works there
without importing the terminal feature. Sign-in clears a failed model-catalog
cooldown and refreshes the agent's models. Copilot's login runs with ambient
GitHub token variables cleared, and copied login hints quote paths with spaces.
A test pins that every built-in login hint yields the arguments Sign In runs.
Co-authored-by: dengliu <[email protected]>
Adds the Project view's Show Scratches and Consoles option (Options >
Appearance, and a Find Action toggle), on by default. Off, the Project / Unity /
Unreal panes leave out the Scratches and Consoles root and scratch paths outside
the project; the Scratches and Consoles pane and the path-based panes are
unchanged. Select In > Project View then switches to the Scratches and Consoles
pane for a scratch the Project pane hides.
Closes#6272
Co-authored-by: mansur-akhmadi <[email protected]>
Registers the GitHub CLI as a managed tool (cli/cli release archives for
macOS / Linux / Windows on arm64 and x64, verified against the release's
checksums file), and offers Install GitHub CLI next to Download manually in
Pull Requests and Clone Repository > GitHub when gh is missing. An existing gh
(OPENIDEA_GH, PATH, Homebrew, Program Files, Snap) counts as installed, so no
duplicate is offered. gh is now looked up on each use instead of once per
process, so a copy installed while the IDE runs is picked up without a restart;
ide-github drops its `which` dependency for the shared tool_path lookup.
Co-authored-by: dengliu <[email protected]>