Commit Graph

52 Commits

Author SHA1 Message Date
Akash Yadav 684bd26ead fix(projects): delay in posting file related events to FileManager 2023-03-31 00:04:57 +05:30
Akash Yadav 81df6d29db build: include EventBusAnnotationProcessor locally 2023-03-30 23:49:17 +05:30
Akash Yadav cd55af5a19 fix(projects): doc version and lastModified is not updated after DocumentChangeEvent 2023-03-29 12:40:19 +05:30
Akash Yadav 8f6392ff55 feat(lsp: add option to perform code actions on main thread 2023-03-29 12:37:56 +05:30
Akash Yadav 51155f9456 feat: add patch ability to ActiveDocument 2023-03-29 11:55:53 +05:30
Akash Yadav e6d1e42004 feat: use Flashbar for project sync notification 2023-03-28 19:17:10 +05:30
Akash Yadav a7e9f350ae fix(flashbar): allow resetting duration to DURATION_INDEFINITE 2023-03-28 18:31:34 +05:30
renovate[bot] a4e69445ab chore(deps): update plugin com.github.johnrengelman.shadow to v8.1.1 2023-03-21 18:53:44 +05:30
Akash Yadav 1730d0ae67 fix(tooling-api): project initialization failure when the project contains a Java library module
This happens due to the use of relocated packages in AndroidIDE's Java Compiler API. The 'JavaModuleCompilerSettings' class references the 'javax.lang.model.SourceVersion.RELEASE_11' enum.
However, in AndroidIDE, the SourceVersion class has the package name 'jdkx.lang.model'.

The project compiles successfully as the ':subprojects:tooling-api-model' module is a Java library due to which, 'javax.lang.model.SourceVersion' can be referenced without any errors.
However at runtime, there is no such class and hence the 'NoClassDefFoundError' is thrown. This exception is silently logged to the error stream by the JSONRpc protocol and hence it
cannot be seen in the IDE logs.

This closes #875.
2023-03-18 13:48:19 +05:30
Akash Yadav fb4ec48940 refactor: fix lint issues 2023-03-14 19:40:24 +05:30
Akash Yadav 4149e3909e fix(projects): update entries from module source class indices on file events 2023-03-13 18:26:47 +05:30
Akash Yadav 642b1d4a13 fix(projects): update active document cache when a file is deleted or renamed 2023-03-13 15:46:33 +05:30
Akash Yadav d81c553557 fix: check tooling server state before executing tasks (fixes #847) 2023-03-09 23:18:45 +05:30
Akash Yadav d4db2635bd refactor: move javapoet to separate module 2023-03-05 23:29:39 +05:30
renovate[bot] 8965b446eb chore(deps): update plugin com.github.johnrengelman.shadow to v8.1.0 (#830)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-28 18:23:52 +05:30
Akash Yadav 886a0cacfa feat: ignore 'package-info' when indexing sources and libraries 2023-02-26 10:46:28 +05:30
renovate[bot] 385e9cf080 chore(deps): update plugin com.github.johnrengelman.shadow to v8 (#818)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-25 18:16:41 +05:30
Akash Yadav 4ebda7fc8f feat: [EXPERIMENTAL] prune method bodies of files before parsing in JavaCompilerImpl 2023-02-23 23:22:57 +05:30
Akash Yadav 3d606d16b4 feat: use custom JavaCompiler implementation for Java LSP 2023-02-22 23:34:22 +05:30
Akash Yadav a4a59af9ed refactor: make ReusableCompiler open 2023-02-22 23:34:22 +05:30
Akash Yadav 52a75f0c15 refactor: move JavacConfigProvider to 'javac.config' package 2023-02-22 23:34:21 +05:30
Akash Yadav eeaed54edc fix: remove unnecessary reflective access in JavacConfigProvider 2023-02-22 23:34:21 +05:30
Akash Yadav 8ae3b0a05c refactor: create independent method for caching locations in JavacFileManager 2023-02-20 20:41:54 +05:30
Akash Yadav 840bacd5b5 refactor: set java version for javac-related projects to JAVA_11 2023-02-14 18:51:41 +05:30
Akash Yadav 29f9868f54 chore: include nb-javac-android as subproject 2023-02-14 18:35:37 +05:30
Akash Yadav 2b61d92c80 fix: UTF-8 character in CharOperation causes build issues on Windows (closes #762) 2023-02-12 00:14:18 +05:30
Akash Yadav 2a841748b8 fix: invalid path specified in :subprojects:tooling-api-model:copyToTestDir Gradle task 2023-02-12 00:12:35 +05:30
Akash Yadav 40d128d76e refactor: resolve some compiler warnings 2023-02-11 21:34:37 +05:30
Akash Yadav 0f6abf34cf refactor: rename package 'javax' to 'jdkx' 2023-02-11 21:12:55 +05:30
Akash Yadav 96ca54c394 refactor: removed unnecessary JavacTaskUtil class 2023-01-28 22:49:45 +05:30
Akash Yadav 1cc1f21ea7 fix(tooling-api): FileTypeAdapter is incorrectly implemented 2023-01-28 22:39:49 +05:30
Akash Yadav 755043b050 refactor(javac): update nb-javac-android
This replaces the usage of 'com.sun' package from javac to 'openjdk'.
2023-01-28 22:39:48 +05:30
Akash Yadav f8e370a9e4 fix: update tests to be compatible with JDK 17 2023-01-28 22:39:47 +05:30
Akash Yadav 7fd2b79886 fix(tooling-api): register custom GSON adapter for java.io.File 2023-01-28 22:39:47 +05:30
Akash Yadav 17ac655fa8 refactor: refactor 2023-01-23 21:25:13 +05:30
Akash Yadav 4c1f78cced fix: fix memory leaks related to GradleBuildService and editor activity 2023-01-20 22:49:44 +05:30
Akash Yadav 1e944ba8e0 tests: test AGP 7.4.0 with tooling API implementation 2023-01-19 09:42:38 +05:30
Akash Yadav 9cdc4bd1a3 tests: test tooling api implementation with minimum supported version by default 2023-01-19 09:41:19 +05:30
Akash Yadav 5542c690cc fix(deps/tooling-api): update builder-model to v7.4.0 2023-01-19 09:40:30 +05:30
Akash Yadav be3bcdc3a5 refactor: move hardcoded dependencies to version catalog 2023-01-19 08:56:36 +05:30
Akash Yadav 97d8f66f2d feat: replace Toaster with Flashbar 2023-01-19 00:32:37 +05:30
Akash Yadav 83b8ffb531 refactor: remove unused subprojects 2023-01-15 08:48:53 +05:30
Akash Yadav f4b0a4fce4 fix: remove usage of partial reparser to reduce LSP errors 2023-01-08 12:33:45 +05:30
Akash Yadav 4b53fd6c66 chore: fix jvmTarget warnings in subprojects 2023-01-07 20:12:12 +05:30
Akash Yadav 0df55c0331 refactor(lsp/java): remove unused imports and methods 2023-01-07 20:08:35 +05:30
Akash Yadav 012ae9927a tests: try to fix issues related to tooling-api-all.jar 2023-01-06 23:39:02 +05:30
Akash Yadav 3090632c66 feat: use Gradle ANTLR plugin to generate lexers 2023-01-01 13:43:23 +05:30
Akash Yadav 42a3e71114 chore: migrate to Kotlin DSL and Version Catalog 2022-12-30 23:24:38 +05:30
Akash Yadav a8247e75e2 feat: moved project info destruction logic to ProjectManager 2022-12-25 21:56:03 +05:30
Akash Yadav fe12c2c106 fix: R.jar completions are not updated after resource updates 2022-12-23 11:05:58 +05:30