Commit Graph

427 Commits

Author SHA1 Message Date
Mikhail Filippov
68e20d9aa8 IJPL-188202 bump Kotlin version to 2.2.0
(cherry picked from commit 4086267a8b175d5cd1fb1c0ee77b4e0ddf999524)

IJ-CR-168727

GitOrigin-RevId: 96790b1a0aa125c07767685caa008369fb7496b6
2025-07-12 00:51:47 +00:00
Mihail Muhin
37241ba0c3 [fleet] fix not showing some notifications in build (re-fix with no changes to LoggingContextContextElement)
GitOrigin-RevId: 80821b25dfe57a5a3468c9ef96414220a95f4caf
2025-06-16 19:57:47 +00:00
Denis Bazhenov
bad9230a56 [fleet] fixed undo viewport scrolling error
Viewport was not scrolled back to the place were change was made when
undoing global operation (refactoring).

GitOrigin-RevId: f44c6279fbae1ca72373ae3574234e0d609df0ef
2025-06-16 18:34:57 +00:00
Alexander Zolotov
3d8d462fff Revert "[fleet] fix not showing some notifications in build (because there was no ws id in context)"
This reverts commit 1444b99fe499668a227410d19d46aebea59963a1.

GitOrigin-RevId: c935eea5e7ff295a9f8a3856639db760933a927b
2025-06-16 17:36:22 +00:00
Alexander Zolotov
469c4fc6e1 Revert "[fleet] fix not showing some notifications in build (because there was no ws id in context): dock api compatibility"
This reverts commit 1e0d1e11

GitOrigin-RevId: f9a0e66a4085925bf0fcfbd5e223647a6652d10f
2025-06-16 17:36:22 +00:00
Vladislav Protasov
d8450a738d [fleet] AIR-1240 unescapeHtml for Parameter info popup rendering
GitOrigin-RevId: 1ba1922e8cdb97538f471fbebf9284480c3fb9c9
2025-06-16 11:48:25 +00:00
Ilia Kirianovskii
815db21d30 [jps-to-bazel] Set exported_compiler_plugins to @lib//:rpc-plugin for fleet.rpc module (IJI-2772)
GitOrigin-RevId: f632921ec836691939b2d816c869b097307f9bc4
2025-06-10 17:55:05 +00:00
Alexander Shparun
02118dde3c [fleet] usages of queryAsFlow
GitOrigin-RevId: 699d1330921200fdfe0e4291aa9dc26ce93ac5a2
2025-06-09 18:42:22 +00:00
Mihail Muhin
0e751e0961 [fleet] fix not showing some notifications in build (because there was no ws id in context): dock api compatibility
GitOrigin-RevId: 1e0d1e119866131205329670b4461a06e72570eb
2025-06-09 18:22:13 +00:00
Mihail Muhin
bdf3c1cd1a [fleet] fix not showing some notifications in build (because there was no ws id in context)
GitOrigin-RevId: 1444b99fe499668a227410d19d46aebea59963a1
2025-06-09 18:22:13 +00:00
Mikhail Filippov
0f89491c75 update Kotlin compiler to 2.2.0-RC2
GitOrigin-RevId: a0f1737d76f4501fc4f7b4435c625a55cf1f199b
2025-06-08 11:02:07 +00:00
Alexander Shparun
7db51395fb [fleet] gradle scripts
GitOrigin-RevId: 5a3b677a73608fa41a205766406a420657c88927
2025-06-05 21:14:37 +00:00
Andrey Zaytsev
e10b821843 [analyzer] move lsp.protocol to community/fleet to enable gradle dependency on it from fleet
GitOrigin-RevId: 00d0fa952106348cd0ec9c2b48f3b34d2e1e28ee
2025-06-04 21:36:59 +00:00
Alexander Shparun
e303ea7f13 [fleet] deprecate RemoteObject in favour of RemoteResource
migrate RenameApi

GitOrigin-RevId: a309e38b8936984866b41203d2b5f29926f3d48f
2025-05-31 02:17:30 +00:00
Alexander Shparun
85ed4f1762 [fleet] test for relations on deleted entities
GitOrigin-RevId: 43b87ad5e4a4caaffef0abe07c12968d7e935dad
2025-05-30 22:57:35 +00:00
Alexander Shparun
ebcc5b4a7d [fleet] CreateEntity and Add must assert that referenced entities exist
(cherry picked from commit d228740b1b6c7a275f6765e8a44ee3f7875e66a0)

FLEET-CR-6239

GitOrigin-RevId: c04b1eb90a0c5f917fb2ff2fd7b8258992dfadfe
2025-05-30 16:54:33 +00:00
Alexander Shparun
b8211adcdb [fleet] clarify "null value cannot be cast to V"
GitOrigin-RevId: b85942740d5659bd7a31b85a3c6467b845b4902d
2025-05-27 00:51:35 +00:00
Mikhail Filippov
40e854e522 IJPL-188826 bump Kotlin language version to 2.2
GitOrigin-RevId: 61c9fecae6a713d7e328e74b83186bc5d2f6bf66
2025-05-26 13:41:54 +00:00
Vladimir Krivosheev
68ccf7381c update kotlinx-serialization from 1.7.3 to 1.8.1
GitOrigin-RevId: 3e3a0743901d5177898b1ccb2ab20874dad75fd2
2025-05-26 08:45:10 +00:00
Nikolai.Sviridov
02d7d7b4e7 [Air] AIR-349 fix chat "jumping", add paste action, AIR-992 add copy/cut to chat input
GitOrigin-RevId: 6f7678bf00b21a937427d67ac5f83d94b69559c0
2025-05-23 19:51:16 +00:00
Titouan Bion
940a645a21 [fleet] Remove targets blocks + wasm optin + regenerate from JPS
GitOrigin-RevId: e83126c3c0d860b4ce721c2581b04a39b1dba72d
2025-05-23 09:29:31 +00:00
Mikhail Filippov
a9ae07e88f IJPL-188202 update Kotlin compiler to 2.2.0-RC
GitOrigin-RevId: 68709d60e9ee0b5b790a2a1cf5349618fc23d6f1
2025-05-21 19:53:51 +00:00
Vladislav Protasov
1a6fa5cd53 Fix typos
GitOrigin-RevId: 2629f59454e0c1188490673a963753acf8ea3d8a
2025-05-19 15:06:41 +00:00
Valery Teplyakov
401febfb7f [fleet, rhizomedb] Yet another util function
GitOrigin-RevId: 9a1d34a9a1feb5edb313df4c75432fcdcdbfae81
2025-05-16 16:59:12 +00:00
Sergei Sysoev
2cebe9b858 [fleet] bump rhizome compiler plugin version
GitOrigin-RevId: bd9647742c462e1889f42435b6e9e7950e739762
2025-05-16 05:43:14 +00:00
Alexander Shparun
3edf733f03 [fleet] deprecate Query.collectLatest
- for a state-query that never has more than one valid match at the same time ( query { } ) it is equivalent to Query.collect
	- for a query that can potentially have many valid matches (Entity.each()) it is almost definitely an error because only one of them will be processed

GitOrigin-RevId: b9fce3aa7773f8c1642439260cf0dbd1448efcad
2025-05-16 01:33:03 +00:00
Titouan Bion
2bcbf03fcb [fleet] Fix generator reproducibility
GitOrigin-RevId: 043fc53f75d81b82281c1856099281a32cc5b27a
2025-05-14 15:21:32 +00:00
Alexander Shparun
561a4a24d3 [fleet] tokenSetsFlow will wait for context db source to catch up to rete
it used to update the threadLocal in place, but this is fragile because next updateThreadContext will reset it to some past value

GitOrigin-RevId: 2fd4ba8aa8b6b481a1648cce5f919434c119aebb
2025-05-12 17:17:18 +00:00
Alexander Shparun
5ea9d8ea6b [fleet] ChangeInterceptor.Identity does not have to update db context
it will be updated by waitForDbSourceToCatchUpWithTimestamp in `change` itself

GitOrigin-RevId: 031305509d4f2d047404429dee719387c7419e6f
2025-05-12 17:17:18 +00:00
Alexander Shparun
942b7174ec [fleet] catch up to change.dbAfter instead of trying error prone arithmetic on timestamps
GitOrigin-RevId: cf8c7b4058fecbc8e80012921815920e26d86b3d
2025-05-12 17:17:18 +00:00
Alexander Shparun
3cbc2b6fcb [fleet] tokenSetsFlow has no right to update thread bound db
because it does not wait for dbsource to catch up, it will show the consumer a glimpse of the future that will be gone when DbContextElement updates the thread context

anyway it is inconsistent because it only moves forward and provides no consistency guarantees, the only way to safely consume match's value is to observe it inside withMatch

GitOrigin-RevId: 33d7096fff8fc118cf092efbcb24c9879bcc0660
2025-05-12 17:17:18 +00:00
Alexander Shparun
0137be47e5 [fleet] delete TrackedQueryTest
it was testing a legacy api that was migrated to rete a long time ago, rete has its own tests

nitpick: wait for rete to catch up to db source, not transactor

GitOrigin-RevId: b6c078b529e1766435e62f8124e1db874e3a9842
2025-05-09 21:17:56 +00:00
Alexander Shparun
148d462f57 [fleet] delete deprecated Transactor.saga
GitOrigin-RevId: b471febc5e69bcb8a5efaba134ee0a5cc0c79fab
2025-05-09 21:17:56 +00:00
Alexander Shparun
015ed530f9 [fleet] delete consumeAllAndSelect; unused debounce and batching
consumeAllAndSelect is an abomination

GitOrigin-RevId: 54557cb25e31679702e54e5bad7ce6f7e65ab490
2025-05-09 21:17:56 +00:00
Alexander Shparun
c9dcaa4ea9 [fleet] "not unique in scope" from Memoizer - propose a fix
GitOrigin-RevId: d2414641458961232de2c782b977a5d56f513979
2025-05-09 21:17:56 +00:00
Vladimir Krivosheev
53ab1b258e IJ-MR-162467 do not export intellij.platform.refactoring
GitOrigin-RevId: 4bb68401d046d1fffba4fa73935bb1c404d8d49f
2025-05-09 20:49:36 +00:00
Vladimir Krivosheev
3023c3224b customize compiler plugin set via custom target
GitOrigin-RevId: ad790785ccd29b1922210547b7555e82761c7a00
2025-05-09 20:49:36 +00:00
pavel.sergeev
d1f57f803b [fleet] fix infinite hang on find in file when DesktopMacOS window manager is used
GitOrigin-RevId: 2f0fee62c1b5297d22d0be837317a68b212a9881
2025-05-08 21:48:55 +00:00
Vladimir Krivosheev
6f8ff07ccc simplify bazel labels (another step towards using simple names that reflect directory structure)
GitOrigin-RevId: 12bfb2d0fa315d87c7a4ade363d0f834cf324b71
2025-05-08 16:58:30 +00:00
Alexander Zolotov
d230eaee2f [fleet] upgrade rhizome plugin
GitOrigin-RevId: 4b1f5e0641a496160fdff9f9ba2f76e50d3da24a
2025-05-08 13:09:05 +00:00
Vladimir Krivosheev
509ccbac94 support exported_compiler_plugins for "provided" deps
GitOrigin-RevId: 87921dc5baaf0b52ab413499d17f0882d4cebc14
2025-05-08 09:27:21 +00:00
Vladimir Krivosheev
08a5cba64e revert: fix expects plugin (temporary workaround)
GitOrigin-RevId: ae513b355e0e7ad39566870ccf053fc1232bab13
2025-05-08 09:27:21 +00:00
Vladimir Krivosheev
37cfe49096 fix expects plugin (temporary workaround)
GitOrigin-RevId: bf66bade425c436567a2a04e11053737997500a5
2025-05-07 20:57:30 +00:00
pavel.sergeev
2031ef5c18 [fleet] bring desktop window manager
[fleet] set desktop window manager to 0.0.8

[fleet] files generated by gradle

[fleet] fix typos

[fleet] fix jcef typing with kdt

[fleet] add clicks count field; store window manager evetn instead of awt event; now mouse works in JCEF event with KDT

[fleet] reduce the number of buffer copying

[fleet] add an utility function to access direct byte buffer pointer

it's used by JCEF

[fleet] invalidate screen property

[fleet] rename

[fleet] fix stucked modifiers

[fleet] add configuration to run with desktop window manager

[fleet] use atomic to be safe in case if `requestFrame` is called from non ui threads

[fleet] fix ctrl-c in terminal with desktop window manager

[fleet] drop the frame-requested flag immediately after the check

otherwise it might overwrite next request if it was scheduled during frame rendering

[fleet] synchronize reads with writes in ime in a propper way

[fleet] sync gradle with iml

[fleet] fix after rebase

[fleet] use non mutable editor for reading

[fleet] fix arrow in the terminal

[fleet] add a basic implementation of the text client interface for the terminal

[fleet] cleanup

[fleet] add a comment

[fleet] input methods expect that any mutable editor transaction will be executed at some point

hopefully we will remove this requirement later

[fleet] improve IME

[fleet] fix togglable application menu items; fix fullscreen toggle

[fleet] fix modifiers key press

[fleet] we don't use NSEvent timestamp at the moment

[fleet] minor

[fleet] synchronously read editor state

[fleet] make writes async

[fleet] wip

[fleet] according to docs text range might be out of document boundaries

[fleet] fix ime popup positioning

[fleet] more methods in the text client interface

[fleet] wip2

[fleet] wip3

[fleet] it works

[fleet] enable frost glass effect

[fleet] change jframe background more forcibly

though still not always working for windows other than first

[fleet] removed unused attribute

[fleet] removed because we already set window background in `BasicWindow`

[fleet] clipboard is implemented desktop toolkit

[fleet] sync theme with OS

[fleet] add window background effect property to window manager

[fleet] disable transition animation for window; otherwise it moves too slowly when dragged out

[fleet] window drag improvements

fix typo, now we send it cursorLeftWindow
don't use real event timestamps, to be closer to AWTWindowManager.
before the change mouse up was ignored in WindowDragAndDrop (see `isRecent`)

[fleet] cursor icons

# Conflicts:
#	fleet/noria/windowManagement/implNative/srcJvmMain/noria/windowManagement/nativeImpl/DesktopMouseCursors.kt

[fleet] fix rendering stuck when some interactivity goes in terminal

[fleet] add implNative as dependency to DesktopDock

[fleet] add implNative module back

[fleet] move native wm sources

[fleet] set KDT to snapshot (do not merge in master!)

GitOrigin-RevId: a1eb27a63ca1056ddec562be1cb42aeaba913c5f
2025-05-07 03:52:27 +00:00
Christoph Thiede
f2381f02f0 [fleet, util] Fix slip in Either.toString()
GitOrigin-RevId: b115096956f42e4b6da56b359a56e3aec63b7cb4
2025-04-29 21:11:54 +00:00
Christoph Thiede
c97f8fd7bb [fleet, run+teamcity] Migrate test runner to run v2
Enhancements:

- Add support for PTY for test execution
- Display & rerun tests from multiple tasks in single test tab
- Allow debugging tests from test runner
- Make rerun items in test runner menus reactive (prefetch tasks, enable/disable menu items as available tasks change)
- Make test navigation more robust if test cannot be located (fall back to ancestors)
- Improve stability of rerunning (reuse implicit task modifiers, use largest available subset of modifiers, etc.)
- Support optional groupings of tests (togglable via menu, e.g., for Gradle Test executors)

Other changes:

- Improve responsive landscape/portrait layout of test view
- Introduce new `testTaskProvider` API for rerunning tests
- Miscellaneous UI refactorings
- Determine state of root notes in test tree based on final state (exit code) of associated launch step entity

Known regressions (will be implemented later):

- Rerun tests in same tree currently does not work (every rerun spawns a new test tree)
- Selecting tests in node will not reduce output pane to output of selected test(s)

GitOrigin-RevId: 537f9f755f7303ea53f6a22baf744c8d096d8463
2025-04-29 21:11:54 +00:00
Alexander Shparun
091dafb169 [fleet] FlowDbSource.toString
GitOrigin-RevId: d094df9c61fb9a2a680197aa76bba888c39d1720
2025-04-29 12:36:18 +00:00
Alexander Shparun
4e0ba3ec2a [fleet] when waiting for dbSource to catch up, check dbSource timestamp, not dbContext.timestamp
apparently it is possible that something will set thread bound database to a later version, which will short circuit waitForDbSourceToCatchUpWithTimestamp

thread bound database will be later updated by the first change in the coroutineContext because DbSource.ContextElement will be invoked and it will bind the database to the latest version it knows

fixes FL-33239 HB issue: DB timestamp becomes lower after leaving the spannedScope block

GitOrigin-RevId: 488ddedcb2ec5c7661a9cbf6d4f094425cc21030
2025-04-29 12:36:18 +00:00
Sergei Sysoev
8863ee6c26 [fleet, wasm] dock, ship and window manager implementation
GitOrigin-RevId: f1d0aa292177e83dd1433771a00003229a849ec7
2025-04-29 06:43:16 +00:00
Alexander Shparun
f67b602b6e [fleet] do not use hackyNonBlockingChange for durable snapshots
it is possible for frontend to have an entity type that is not accessible from the workspace layer, but is stored in the shared partition with the workspace storage key

the idea is that workspace will populate the shared partition with the snapshot contents using raw json objects for values and then frontend will reify these entities and deserialize all the attributes. deserialization happens either when the transaction is applied if we already have a serializer, or on plugin loading

when running in short circuit mode, hackyNonBlockingChange might
capture a version of the database that does not contain an entity type
with its serializers, but will be applied to a version that already
has it. the change will be expanded into a plain assertion of json
values that will never be deserialized later

FL-33229 "Open" doesn't work from the welcome screen

GitOrigin-RevId: d5f87eab099d2be273f203f8cf43d3a9ab8c6018
2025-04-25 03:07:28 +00:00