94 Commits
Author SHA1 Message Date
Alexandr Trushev f50ea14677 [editor] IJPL-54 Move DocumentEntity to separate module depending on kernel and andel
GitOrigin-RevId: 9c3e3b1bb9a003e8b273302fa8c19f6e56e91a10
2025-02-19 14:23:15 +00:00
Alexandr Trushev f6380a4e99 [editor] IJPL-54 Refactor classes around DocumentEntity
GitOrigin-RevId: c259bdc5320489336520c2b79725537ec1daa075
2025-02-19 14:23:15 +00:00
Vladimir Krivosheev 2744060f54 IJ-CR-146078 add support for whenGuards, set 17 as default jvm target for custom kotlinc opts
GitOrigin-RevId: 9b107d08ff3b588c3c5099a95276ac714ac6ea19
2025-02-17 12:06:29 +00:00
Leonid Shalupov e4e5753846 housekeeping: remove unused imports
GitOrigin-RevId: ccba6d05260f5eb551ffa87e0d8a38dc93148a3a
2025-02-04 11:00:15 +00:00
Mikhail Filippov 125f63e5ac IJPL-175801 Bump Kotlin compiler version to 2.1.10
GitOrigin-RevId: 0eaa79864af98c9f26e788ffebd51d876a663cd8
2025-01-27 22:43:00 +00:00
Vladimir Krivosheev 97eb8081ed update bazel files
GitOrigin-RevId: fc8f02d9532ef4f014925f793434e9b0bcfd9317
2025-01-26 19:04:16 +00:00
Nikolay Rykunov 0c84c41f2b [platform] IJPL-175634: Deprecate withKernel
GitOrigin-RevId: b1d56e4f3cc56c98f027d28ddabf39cba32652c7
2025-01-24 17:51:00 +00:00
Nikolay Rykunov 364ac41659 [platform] IJPL-175634: Start kernel on application startup and put it to its CoroutineScope
GitOrigin-RevId: 2b22d16a913085ecea2a759958321e2f11e972c6
2025-01-24 17:51:00 +00:00
Mikhail Filippov ba9662ad32 fix missing Kotlin compiler dependencies
GitOrigin-RevId: 07cec8eb7f466cb1eea80c5654d6086f3d62bf05
2025-01-23 12:54:07 +00:00
Alexander Shparun 8d98a1c726 [fleet] semblance of structured concurrency in RpcExecutor
RpcExecutor acts as a dispatcher of incoming requests
to a set of services that do not necessarily have the same lifetime;

if one wants to retract a service, there should be a way to cancel
all associated coroutines as well

GitOrigin-RevId: 25f2b45743fe16080a82ebfa7502dc647d971667
2025-01-21 22:18:14 +00:00
Nikolay Rykunov 31f674ac21 [rd] Entity should be deleted in finally block
GitOrigin-RevId: fdec28e0e8636dff65361bc1a6b39a850efd15fb
2025-01-15 17:24:25 +00:00
Vladimir Krivosheev cead2d63b0 update bazel files
GitOrigin-RevId: 333d3f356208427b26cb3c5f3ba514da50aefad0
2025-01-14 18:32:25 +00:00
Nikolay Chashnikov 16cd137c98 [remote dev] refactoring: introduce and use intellij.platform.backend module as a marker for modules not compatible with the frontend process
Before, we used intellij.platform.monolith module for that, but it looks strange when modules that can work at the backend have dependency on 'monolith'. And it may cause problems in the future if we start using separate installations for monolith and backend. So given that to fix IJPL-164312 we need to mark more modules as incompatible with frontend, it's better to use the proper marker.

GitOrigin-RevId: 329fdcd99a298e56baaf9dfdac75604ec512f84c
2025-01-13 13:16:13 +00:00
Nikolay Rykunov a9bda93ae4 [debugger-rd] IJPL-160146: Get rid of XDebuggerPsiEvaluator, introduce XDebuggerDocumentOffsetEvaluator instead
It wasn't possible for Remote Dev to pass PsiElement to the evaluator, so let's calculate psiElement on the backend when evaluation is requested

GitOrigin-RevId: 576e569bf50a0be42a3e864e732e4d0f2b136a24
2025-01-06 18:49:50 +00:00
Vladimir Krivosheev 0bc1cf1557 update bazel files
GitOrigin-RevId: 7320d3eff3aba093692ce66839c720ece6d7c4db
2024-12-30 11:28:24 +00:00
Vladimir Krivosheev 7b9ec58009 do not export intellij.database.connectivity.tests
GitOrigin-RevId: a1ef44dfa34cde110c9e6cad19d11b5e3019ab72
2024-12-28 21:45:55 +00:00
Denis Zaichenko 5a5fb777b7 [vcs] [RD] IJPL-160237 Refactor. withLastKnownDb moved to the kernel module.
GitOrigin-RevId: 60bca58f5859273199d2105347350618f901676f
2024-12-27 16:33:29 +00:00
Sergei Sysoev 2312ed4161 [fleet] update noria, rhizome, rpc compiler plugins
GitOrigin-RevId: 75ea38dc5e81b63b2aa554b0a6cde0cafb696a47
2024-12-24 10:25:49 +00:00
Vladimir Krivosheev 98799639aa do not use _test as lib - test targets do not support this
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Mikhail Filippov 708f7bfa69 bump Kotlin to 2.1.0
GitOrigin-RevId: 96af0046773fefea88ea259f631240e0f145b832
2024-11-30 01:54:51 +00:00
Nikolay Rykunov bcea1514c3 [rd] IJPL-171239: Add logging for kernel and project entity initialization
GitOrigin-RevId: c0f44e80b9a3c793efbc09ca2b5ce1740ccd0591
2024-11-28 18:13:23 +00:00
Vladimir Krivosheev 9e06131e87 fleet - do not export kotlinx-serialization-core lib
GitOrigin-RevId: 97e7075660c1b50b452c1cfc97f036c4b6a3242a
2024-11-28 13:59:25 +00:00
Vladimir Krivosheev 17916c90f8 libraries -> lib, resources, opt-in, test deps
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Mikhail Filippov 77813916c7 bump Kotlin to 2.1.0-RC2
GitOrigin-RevId: 8e93d6996f572009eb084e4cf1013416254ff74f
2024-11-21 16:43:54 +00:00
Nikolay Rykunov a4646da72b [rd] Handle cancellation/other exceptions when ValueEntity is created, so it will be deleted properly
GitOrigin-RevId: 35beb728eee978a9cb23cfb5192d0322d6f82f2e
2024-11-21 07:05:12 +00:00
Vladimir Krivosheev d0f2112207 bazel - use unique name to maven repository due to bazel issue (https://github.com/bazel-contrib/rules_jvm_external/issues/916)
GitOrigin-RevId: 1378657735b438684e934c8aca721d43980869c8
2024-11-09 11:06:41 +00:00
Andrzej Głuszak cbca664f6c [bazel] Second attempt at generating tests
GitOrigin-RevId: 7763c9994b7c311310b83b98a542775feb00ed68
2024-11-09 11:06:41 +00:00
Kate Botsman 2f32dae029 IJPL-166285 Fix accessing unregistered RPC breaks following RPC calls
If RPC is not followed, backend throws an error `No remote API found for InstanceId` in `RemoteApiRegistry.resolve`.
`RpcExecutor`, however, expects this method to return `null` if service was not found, not an exception.

Therefore, the exception is propagated upward which breaks the kernel and prevents further RPC calls from executing.

We should adhere to the API requirements and return `null` if service was not found instead of throwing an error.

GitOrigin-RevId: 1388465c6cbfcef6467b03fa420f3b575db2b58a
2024-11-06 13:37:27 +00:00
Kate Botsman 4d781b9877 IJPL-165422 Fix Rhizome breaks if exception is thrown under withKernel
`withKernel` method attaches current coroutine to core `kernelCoroutineScope`
If current coroutine is finished with an exception, the cancellation is propagated to the parent job.
This cancels `kernelCoroutineScope` and prevents further usage of the scope. The scope is never recreated, so it becomes impossible to use Rhizome after that.

As a solution, `kernelCoroutineScope` should be a supervisor to avoid it being canceled by children.
We can do that by creating `childScope` under the root scope.

GitOrigin-RevId: 54747a102f9fd5d4cc3ca71ae3a793073413b169
2024-11-01 14:20:18 +00:00
Andrey Zaytsev f3a337f5f7 [fleet] remove Serialization parameter
GitOrigin-RevId: a39112ed9d24f807b973a118609546619f925ae5
2024-11-01 03:52:08 +00:00
Andrey Zaytsev f0ec9ab5a1 [fleet] get rid of polymorphic serialization of shared instructions
GitOrigin-RevId: b15c1e012334fcdb7f8d515c4c5bd54a1f175da0
2024-10-31 15:15:53 +00:00
Nikolay Rykunov e148410ea5 [rd] Introduce api to convert flow of backend objects to ids
GitOrigin-RevId: f7bac9a9e74a7bc8fcd3d2553babc54c9259e9dc
2024-10-30 00:58:37 +00:00
Nikolay Rykunov 77c53af389 [rd] Introduce a simplified api for storing backend objects in rhizome, so it can be provided through rpc
GitOrigin-RevId: 99c193de8e1bd17f33979d8c2f28900fd48f6b87
2024-10-30 00:58:37 +00:00
Andrey Zaytsev 1b061ed66e [fleet] drop legacy entity api
GitOrigin-RevId: 107c43c755d7623220f5d77e2c15d48d298b8cad
2024-10-26 18:37:58 +00:00
Mikhail Filippov 1a52450b5e bump compiler plugins
GitOrigin-RevId: 5b198d1b9b7d726c792aa1edd065ccd26ee0aab6
2024-10-01 18:24:20 +00:00
Nikolay Rykunov 6547c67d6d [rhizome/rpc] Update compiler plugin version to 2.0.20-0.2
GitOrigin-RevId: bcb0c04076f7b42325de875329e0ed250652e91e
2024-09-27 21:57:44 +00:00
Vladimir Krivosheev a9e7930abe bazel - build lang-impl
GitOrigin-RevId: c4c4dce20bd6e4046644f95f6e7b3f437c51668d
2024-09-27 13:47:17 +00:00
Vladimir Krivosheev a1210118c0 bazel - fix JPMS, exports and internal
GitOrigin-RevId: 3dc80a9ee01e1900c0cebc24b2d08f04f93ddeff
2024-09-25 19:05:37 +00:00
Vladimir Krivosheev 4eb9b78b78 use bazel to build platform-impl
GitOrigin-RevId: b5bbc75323a08c7674777e512dcfd988ceb4461f
2024-09-22 17:01:28 +00:00
Vladimir Krivosheev 834bd75254 run jps-to-bazel by Bazel, compile platform using Bazel
GitOrigin-RevId: 3774d5adc404b02036f70b7cc35c9e60fdb5d84c
2024-09-21 00:54:17 +00:00
Mikhail Filippov 3e491bf227 IJPL-161515 bump compiler plugin versions
GitOrigin-RevId: c3e4a168b839b22c1b304774e98523a54e72c900
2024-09-14 16:40:40 +00:00
Nikolay Rykunov b75a7a5b1e [rhizome] Fix compilation
GitOrigin-RevId: 961d6b1c2640e4f25749579f2c662effcb477f5b
2024-09-13 09:45:17 +00:00
Kate Botsman 609a61704d IJPL-160418 Fix flaky test RestartOfBackendRobotUiTest.gw deploy and restart of backend part 2
Provide CoroutineScope instead of CoroutineContext in KernelService to ensure that services which use Kernel will depend on this scope.

GitOrigin-RevId: b33a4a059dce0ac0669f7192b2fcefd6d3963858
2024-09-13 09:45:17 +00:00
Kate Botsman 0cd326c520 IJPL-160418 Fix API usage after rebase
GitOrigin-RevId: 1a1474c6ad4a12b0920e81bb4289dd43360afb03
2024-09-13 09:45:16 +00:00
Kate Botsman 4094cb7663 IJPL-160418 Fix project leak in tests by enforcing latest change flush
When `ProjectEntity` is deleted with `LocalProjectEntity` all its data stored inside `Novelty` which represents the difference between two DB snapshots (before and after the change).

Therefore, `Project` has an active reference which doesn't allow it to be collected by GC.

`testProjectLeak` checks that all project instances are collected and it fails.

The workaround here is to invoke another change after removing the project entity, which will replace the old `Novelty` with a new one, thus removing the active reference to a project.

GitOrigin-RevId: eafde042b865c503958ec7c2e73a5c056f944ac7
2024-09-13 09:45:16 +00:00
Mikhail Filippov f13d92e82f IJPL-150165 switch to invoke dynamic lambdas in Kotlin
GitOrigin-RevId: 63ba45a21874cc723917982996fce1a510b2a182
2024-09-05 11:19:31 +00:00
Alexander Shparun 66775ae491 [fleet] rhizomedb-compiler-plugin:2.0.0-0.23
fixes incremental compilation issue seen on runtime as "entity type not found"

GitOrigin-RevId: afb988fa8323857b10ac26f72185adfab33ac474
2024-09-05 00:16:14 +00:00
Vladimir Koshelev d59de51577 [rhizomedb] use transactor.changeAsync for registering an entity type to avoid races
GitOrigin-RevId: c64f8a7fc114c3752230c958d1918bf6f893ad75
2024-09-02 18:07:43 +00:00
Valery Teplyakov 6e9ea7f354 [fleet, rhizome] Rhizomedb 0.21 -> 0.22
GitOrigin-RevId: 09031367563016ab6b0f572fc34171e7bb3811d1
2024-09-02 13:55:53 +00:00
Andrey Zaytsev b4cad9c6ef IJPL-150165 [fleet] avoid registering Entity.eid as an attribute
GitOrigin-RevId: 47c04bc657aa0af3e117dbe1b24180111e2ad71a
2024-08-30 22:15:56 +00:00