223 Commits
Author SHA1 Message Date
Nikita Iarychenko 1d6464dab8 OPENIDE #97 License and Eula in OpenIDE (add copyright) 2025-04-30 13:26:44 +04:00
Nikita Iarychenko 06598ccf33 OPENIDE fixed missing value in jdk update test 2025-04-30 13:25:02 +04:00
Tagir Valeev 05de6a6bdb Less raw types
GitOrigin-RevId: 2a6e712b4017cf1ead7870543e562acb654fbeaf
2024-09-16 11:23:15 +00:00
Max Medvedev bdbfdf7b78 SimpleMergeQueueTest needs a test application
GitOrigin-RevId: d2dbd695a7cf4b469349dc2b2d512677e3e9c709
2024-08-29 19:36:11 +00:00
Lev Serebryakov df7dbf79f4 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Java support.

GitOrigin-RevId: ee00abe855c80245102334b3f32ea49415b885ea
2024-08-13 17:24:47 +00:00
Tagir Valeev 9c5d02e246 [java-ui] Remove MockFacetLibrariesValidatorDescription.java (redundant)
GitOrigin-RevId: cdcaf76bdb7aac4b5197ac20101c475f03b9a086
2024-06-20 16:25:34 +00:00
Alex Plate c28fbc938d [Workspace Model] Inline the WorkspaceModel.internal extension property
This property is not needed as we don't want to expose the information about the internal interface. If the internal interface is needed, an explicit cast to `WorkspaceModelInternal` can be done

GitOrigin-RevId: 8bc63e258e4fd5fa69e9379b3548433c62da922b
2024-03-19 19:51:02 +00:00
Alex Plate c8930055a8 [Jar Repository] [IDEA-328006] LibrarySynchronizationQueue now works properly with disposed libs
The library may be disposed from the moment it got into the queue till the moment it's processed

GitOrigin-RevId: fe8a580766a267db11fb095ca71b589d17a34bbc
2024-02-14 16:15:00 +00:00
Vladimir Krivosheev 11a8751859 use kotlin.io.path.invariantSeparatorsPathString
GitOrigin-RevId: 4ee2eccc21ae3de6c13c1062ef4e80da48c0435b
2024-02-09 06:56:39 +00:00
Max Medvedev bdc3eadf02 IDEA-311941 make all tests parameterized
GitOrigin-RevId: d89a62134c127856a2a9bdeb62f386462692c318
2024-02-01 14:19:08 +00:00
Louis Vignier fa3556e841 [jdk] Fix leaking SDK in test
The NPW JDK combo can register a JDK if none were registered. This needs to be taken into account in tests #tearDown.

GitOrigin-RevId: bc407e3d7e18e192ab8bacc3e3e4f24803ca9de7
2024-02-01 09:51:48 +00:00
Max Medvedev a4cf21904a IDEA-311941 Employ SimpleMergingQueue for ProjectStructureDaemonAnalyzer
ProjectStructureDaemonAnalyzer often gets all modules of the current project
for update at once. If there are quite a lot of them (e.g., 5k), MergingUpdateQueue
wastes a huge amount of time trying to merge them one by one with complicated rules,
though the rules are extremely simple in our case: it's enough to just check updates
for equality. A simple hash map works great for this task.
So, I added SimpleMergingQueue.

This fix helps to reduce queueing tasks for intellij monorepo from ~6sec to less than
0.1sec.

GitOrigin-RevId: 33eaf1e7ccc66a1edb28addf7bbaedd00444a30b
2024-01-31 13:05:42 +00:00
Andrei.Kuznetsov ef653e31ed IJPL-578 Explicitly wait for smart mode in tests (tests/Java)
GitOrigin-RevId: f988e7c6f05e5026ef971ec3df3b279c49841e75
2024-01-31 00:01:04 +00:00
Nikolay Chashnikov 889e364d7a [tests] rewrite ArtifactTest to JUnit5
This fixes "Test method isn't public: test_rename$lambda$..." warning which was shown because JUnit3 treats synthetic methods generated from lambdas as test methods.

GitOrigin-RevId: 2e1b874d3dfab9949833609ee155935aada60d85
2024-01-27 01:41:22 +00:00
Alex Plate e1e586b158 [Workspace Model] Introduce WorkspaceModelInternal interface with some internal functions
This is a part of IJPL-345

GitOrigin-RevId: c6879d14c8ecbc383b957cfeef2a670743636193
2024-01-11 10:37:33 +00:00
Alex Plate c97ee189d8 [Workspace Model] Rename addDiff to applyChangesFrom
This name is clearer to understand.

This is a part of IJPL-345

GitOrigin-RevId: 098463d6a956cbd6dfdf2d500b0ee2be50553d26
2024-01-11 10:37:26 +00:00
Alex Plate 2c72660e60 [Workspace Model] Remove entityStorage from the WorkspaceModel API
To get a version of the storage, `currentSnapshot` should be used.

`WorkspaceModelImpl` and `VersionedEntityStorage` are marked as internal. `WorspaceModelImpl` should has an internal modifier, but this is currently not possible because Rider overrides it. `VersionedEntityStorage` may be removed in future at all.

There are some cases when the version of the storage is accessed. Probably we can create a special function to return an entity storage with its version.

This is a part of IJPL-345

GitOrigin-RevId: cc3d6c47099c91c54d571d7ca13c5ef9d84265a9
2024-01-10 15:52:45 +00:00
Sergei Vorobyov 4b102d80f0 IDEA-332234 [NPW] new: replaced language multistep by language project generators
GitOrigin-RevId: e7ecdeb6a3e74cf66711c8bc6d8f6fc80324c756
2024-01-05 12:03:29 +00:00
Sergei Vorobyov d9ae234063 [NPW] cleanup: removed platform code for the old new project wizard
The new version of the new project wizard has been stable for more than a year. Anymore, we don't need fallback to old one.

GitOrigin-RevId: ac90eef05671f96d4c13f823fd9e8bc671efa184
2024-01-05 12:02:51 +00:00
Alex Plate 8b83693478 [Workspace Model] [IJPL-345] Make MutableEntityStorage#hasChanges internal and move it into instrumentation level
GitOrigin-RevId: dc840062e1ba6618176976f78143173347056aa4
2023-12-27 13:43:07 +00:00
Mikhail Mazurkevich 6c1fd3ef20 [wsm] Add more write actions
GitOrigin-RevId: 43b06cdfb380c852a6d87ae818c3ce37f7cade56
2023-11-30 15:53:45 +00:00
Vladislav.Yaroshchuk ccd91ed6be RepositoryLibraryUtilsTest: properly reset path macros and local maven repository path before and after test
GitOrigin-RevId: 8e7430d1597912af3b77749c2a2bf561a8baae75
2023-10-05 11:24:27 +00:00
Vladimir Krivosheev afa3e4e7c6 get rid of toNioPath - do not add to a generic String instance such a extension function
GitOrigin-RevId: ddab15a88dcf2b9f2edca5c1d04b1c0dbdd113df
2023-10-01 17:41:44 +00:00
Nikolay Chashnikov d67bdd5b72 [java] API cleanup: remove unused deprecated API (IDEA-322162)
GitOrigin-RevId: 8b8a875126194efe99989d51127072dd8e503d6e
2023-09-29 09:21:34 +00:00
Nikolay Chashnikov f9a1959a64 cleanup: use ModuleRootListener.TOPIC instead of deprecated ProjectTopics.PROJECT_ROOTS (IDEA-331726)
GitOrigin-RevId: cb899d0b2e7a30e0e6751534e700d5de7506ab7e
2023-09-06 11:11:55 +00:00
Nikita.Skvortsov 7884f01741 [gradle] Resolve external annotations using Workspace Model API IDEA-322079
Perform only one (optional) write action when resolving external annotations.

GitOrigin-RevId: 7ac8d106c2c2a877528651f85e51955b0825c3c1
2023-08-18 15:27:36 +00:00
Roman Shevchenko 99b4cda0cf [project] replacing more custom Path extensions with stdlib/JRE calls
GitOrigin-RevId: ee0ef4c4273d9aa73314d77bf9697f6b656fe8fc
2023-08-08 21:50:39 +00:00
Nikita.Skvortsov 9e5c8b56b7 [es] Revert offending commit IDEA-326017
Each modifiable model of library roots retains about 13Mb of data. Collecting batches 100 of these models is not feasible.
This reverts commit 35fd310b73b424ad695b7a9c550c76b78f217d4d.

GitOrigin-RevId: 09570b747365c37bcd489cf531337ba3da269fd2
2023-07-21 17:31:19 +00:00
Nikita.Skvortsov 8277fcc476 [gradle] add batch API in ExternalAnnotationsArtifactsResolver IDEA-322079
Extract commit actions of model modification (editor.commit) and batch them in portions of 100 models per write action.

GitOrigin-RevId: 35fd310b73b424ad695b7a9c550c76b78f217d4d
2023-07-14 17:43:37 +00:00
Nikita.Skvortsov 74ecd5975b [es] do modify library roots when not needed. IDEA-323242 IDEA-322079
There is no need to rewrite existing external annotations root when it does not really change

closes #2497

GitOrigin-RevId: 4f72d6139425d52c06379b72a2832acb2f6577ff
2023-06-28 16:22:44 +00:00
Nebojsa.Vuksic f51f883764 [IDEA-323114] Fix: Gradle JVM not choose automatically on Gradle project import.
In Android Plugin version Giraffe Beta 2, AndroidSdkType is changed to decouple AndroidSdkType from JdkSdkType, and it now extends from SdkType instead of JavaDependentSdkType.

This caused Gradle JVM lookup to fail in the GradleJvmResolutionUtil#setupGradleJvm setup method.

Main reason of failure is that JdkAuto#createResolver method, which is used during SDK lookup, didn't handle scenario when there are more than one non-simple registered Java SDKs(Now we have two candidates: Java SDK and Android SDK).

When JdkAuto#createResolverImpl is invoked it returns null, because
Android Sdk and Java Sdk both evaluate to true for SimpleJavaSdkType#notSimpleJavaSdkTypeIfAlternativeExistsAndNotDependentSdkType call.

With this new change when multiple non simpleSdkType we pick a first SDK candidate available and proceed.

GitOrigin-RevId: 0ed9bd5313ac99ccb7f7c9c95c9d0ad20fe0874d
2023-06-21 19:50:45 +00:00
Alex Plate 069e1b0932 [Workspace Model] [IDEA-320676] Move WorkspaceModel to the new module
GitOrigin-RevId: 16b9ef5a148ed992acffce8cc14124045e9dd376
2023-06-19 09:35:21 +00:00
Alex Plate 0ea27da5c6 [Workspace Model] [IDEA-320676] Move all packages from workspaceModel to workspace folder
GitOrigin-RevId: b70062397efd6347c34431c24aacd2ec2e216897
2023-06-19 09:35:12 +00:00
Alex Plate bfd595ae86 [Workspace Model] [IDEA-320676] Rename package of jps model (ModuleEntity and other related entities)
GitOrigin-RevId: 102135a4f66c4a12c9b1f95035b1607cb933825d
2023-06-19 09:35:04 +00:00
Alex Plate 37c54118b9 [Workspace Model] [IDEA-320676] Rename base packages of the workspace model: com.intellij.workspaceModel
The rename of the packages is needed to follow the naming convention. See the attached ticket for the details.

GitOrigin-RevId: 24b2328e572efa23d67133fc495855cf662ea795
2023-06-19 09:34:30 +00:00
Alexey Belkov eba859446f Apply "Kotlin | Assignment can be replaced with operator assignment" on whole project
^KTIJ-25352

GitOrigin-RevId: ed3283325767f207167717ca703a102f4eb50e66
2023-05-19 13:27:41 +00:00
Vladislav.Yaroshchuk 8f34ef6e4c IDEA-269182 Refactor RepositoryLibraryUtils
* Show fewer info notifications
* Make all operations non-modal
* Resolve libraries if absent instead of showing error before checksum computation
* Remove useless "rebuild existing checksums" action
* Get rid of deprecated Platform API usages
* Add info logging

GitOrigin-RevId: 8f4f2ec3172d8aec9a88957dc9b326c9e0bbf18a
2023-04-11 17:06:17 +00:00
Vladimir Krivosheev bb543d9d10 DeferredIconImpl - don't use application pool
GitOrigin-RevId: fff239d4050ab955eac7f09c9c4c12440a4e19c0
2023-03-24 15:49:38 +00:00
Nikolay Chashnikov 496511375f [project model] mark FacetUtil.saveFacetConfiguration and FacetState.getConfiguration as @Nullable
...and add necessary checks. This fixes NullPointerException, which may happen if there is an InvalidFacetConfiguration without a configuration tag (reproduced in IntelliJConfigurationFilesFormatTest).

GitOrigin-RevId: 804d3271e97c8415a22e130ffd4ddddf93e944df
2023-03-17 11:59:33 +00:00
Sergei Vorobyov 96b4165d58 [cleanup] removed unused and confusing NPW data extension properties
Some plugin writers occasionally chooses wrong property. For example build-system from Java language instead of Scala.

GitOrigin-RevId: a92e2b974a1c782271a5b8e6e9dde15617592e0a
2023-01-26 18:21:30 +00:00
Bart van Helvert b4a2c9ac78 [test] Fix tearDown calls that ignore exceptions
GitOrigin-RevId: f79a5c427d3d208064e6a34672af7bed2e8e652a
2023-01-18 14:09:25 +00:00
Sergei Vorobyov d2bedc471a IJ-CR-100762 moved VirtualFileUtil into core-api, NioPath into utils.io
GitOrigin-RevId: 0fb91d5feed7b864329ae51ad945e40da011967d
2023-01-12 14:16:59 +00:00
Sergei Vorobyov 079d025125 IJ-CR-100762 extracted getResolvedNioPath from NioPathUtil.createFile
made all function in NioPathUtil as extensions

GitOrigin-RevId: fc33f3b8377c3391ab6ea35306a7553c5a6fb547
2023-01-12 14:16:54 +00:00
Nikolay Chashnikov 5f8c17a3ff cleanup: simplify code using WorkspaceModel::currentSnapshot property (IJ-CR-99521)
GitOrigin-RevId: 8b2629a2f6fcd8eeb44d7d43fbd9e7272337b932
2023-01-10 11:26:48 +00:00
Daniil Ovchinnikov 57a55a9c45 deprecate com.intellij.util.io.exists with error
GitOrigin-RevId: e9e931795e2a5bc8ba60408803508d72c84100ea
2023-01-06 20:27:57 +00:00
Vladislav.Yaroshchuk 544576143e IDEA-269182 Rebuild checksums on any Repository library change
Instead of forcing user to enable checksums manually, we decided to
build them automatically when library is added or changed. Same for
repository binding if it was not bind before.

RepositoryLibraryUtils are refactored, notifications'
messages made more detailed.

GitOrigin-RevId: 549a73749db08437ed0d8b3f61ca0da9aa5d1a1e
2022-12-14 18:36:44 +00:00
Vladislav.Yaroshchuk 17c7aaddbe IDEA-269182 Drop verify-sha256-checksum attribute from RepositoryLibraryProperties
GitOrigin-RevId: 8a9684d4040d19caa50243d36f8034e90bf2b9c5
2022-12-14 18:36:40 +00:00
Vladislav.Yaroshchuk 3729792318 IDEA-269182 RepositoryLibraryUtils: leave only one ctor, change behaviour in tests via methods
GitOrigin-RevId: 8accc23d57b683ca291ee6ff445c4b89295e3e87
2022-12-14 10:13:19 +00:00
Vladislav.Yaroshchuk 5bc6f4f6c2 IDEA-269182 Implement listener to add checksums and bind repo for new libraries
We don't want to force developers update checksums and
select bind repository manually when we can do this
automatically in listener when new library is added.

GitOrigin-RevId: 5af3ed3e12e4861819b3ce648870280c77a25231
2022-12-12 21:27:26 +00:00
Vladislav.Yaroshchuk 7b99c89dd8 IDEA-269182 Change "Reload libraries" action to "Check resolution"
Reload has side effect: it may change library roots.
In the context of out remote repository it's enough
to check whether library can be resolved, but not reload it.

GitOrigin-RevId: 6664aa77b835a26e003c40e72e22edf85219f7f2
2022-12-12 21:27:23 +00:00