Dmitry Jemerov
f0b7891d41
Turn off API usage inspection
2017-03-21 14:44:20 +01:00
Pavel V. Talanov
a03e9d340e
Wrap sourceScope() and binaryScope() using sourceFilterScope
...
To avoid having to wrap at call site
2017-03-21 16:20:02 +03:00
Pavel V. Talanov
06fd1f3c44
Drop unused LibrarySourceHacks
2017-03-21 16:20:02 +03:00
Pavel V. Talanov
dec9fa0324
SourceNavigationHelper: fix navigation to callables
...
Previously we could differentiate between callables with the same name
when relevant type declaration were in the same file only
Problem manifested most severely when several copies of sources were attached
to the same library
2017-03-21 16:20:01 +03:00
Pavel V. Talanov
d9a9d50602
KotlinScriptConfigurationManager#notifyRootsChanges: run synchronously in tests
...
Allows to unmute some of the ScriptConfigurationNavigation tests
2017-03-21 16:20:00 +03:00
Pavel V. Talanov
88447d69cb
Introduce ScriptDependenciesSourceModuleInfo
...
Implement SourceForBinaryModuleInfo api to support navigation
Support in getModuleInfo and KotlinCacheServiceImpl
2017-03-21 16:19:59 +03:00
Pavel V. Talanov
434018f679
ScriptConfigurationNavigationTest: test navigation to kotlin library
2017-03-21 16:19:59 +03:00
Pavel V. Talanov
115474b90f
SourceNavigationHelper: use API to narrow search scope
2017-03-21 16:19:58 +03:00
Pavel V. Talanov
4dee108afe
J2K SourceNavigationHelper: convert to Kotlin and prettify
2017-03-21 16:19:57 +03:00
Pavel V. Talanov
aa74ccf163
J2K SourceNavigationHelper: rename file
2017-03-21 16:19:57 +03:00
Pavel V. Talanov
4c94d931fa
findDecompiledDeclaration: narrow decompiled declaration search scope
...
Search scope of library that descriptor originated from
Introduce API that matches binaries and its' sources via IdeaModuleInfos
2017-03-21 16:19:56 +03:00
Pavel V. Talanov
569e7ac593
getModuleInfo, minor: clarify parameter parameter
2017-03-21 16:19:55 +03:00
Pavel V. Talanov
c7f147d058
Introduce NavigationWithMultipleLibrariesTest
...
Test navigation to library decompiled and source declaration when
there are multiple copies of the same library in project
Related to ba1ee99e97
2017-03-21 16:19:54 +03:00
Pavel V. Talanov
47e77201d5
AbstractNavigateToLibraryTest: refactor, extract utility code
2017-03-21 16:19:54 +03:00
Alexander Udalov
2d1b15b6fb
Drop usages of '-XX:MaxPermSize' in run configurations on JDK 8
2017-03-21 16:09:18 +03:00
Dmitry Jemerov
04b64fa30c
Sort Kotlin versions loaded from Maven by number
...
Otherwise we get 1.0.7 on top of 1.1.1, which is suboptimal
2017-03-21 14:03:25 +01:00
Dmitry Jemerov
8f8db75bb4
getNonConfiguredModules(project, configurator) excludes modules already configured with other configurators
...
#KT-16381 Fixed
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
95bc0813f8
Don't show "Configure Kotlin" notification with an empty list of configurators (context: KT-16070)
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
9f8af1feea
Refactor getNonConfiguredModules(Project)
...
Rename to getNonConfiguredModulesWithKotlinFiles() to match what it
actually does, remove duplicate configurator status check, extract code
for collecting all configurators
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
b86fe60a24
Don't report "can be configured" status if the file is already configured with another Gradle configurator
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
1f96ead801
"Configure Kotlin in project" handles modules from Gradle source roots
...
THose modules are now always collapsed to their base modules.
#KT-11828 Fixed
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
b1a65e4c74
Don't show pre-1.1.0 version of Kotlin in version chooser when configuring JS projects
...
#KT-16400 Fixed
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
8e26d5257f
Don't add stdlib-jre7 or stdlib-jre8 dependencies when configuring Kotlin with pre-1.1 version
...
#KT-16401 Fixed
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
cd4636a1e5
Add current version to "Configure Kotlin in project" version chooser if it is a release version and it wasn't found in the search results
...
#KT-16571 Fixed
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
0f21595e4b
Don't show "Configure Kotlin" if module is configured, project is not
...
Report CAN_BE_CONFIGURED from Gradle configurator only if we didn't
find any file containing valid configuration (normally the top-level
project file in an Android project doesn't have any Kotlin
configuration, so we report CAN_BE_CONFIGURED even though the module
file contains valid configuration)
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
b48b3b3237
Show "Configure Kotlin" notification at most once after project opening
...
Don't show notification after every sync; trigger it from
rootsChanged handler because the root model is not yet updated at
syncDone point
#KT-16590 Fixed
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
0a586291b6
Check jar name before trying to load JS library version
...
#KT-16596 Fixed
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
09b60e3f77
JsLibraryStdDetectionUtil: J2K
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
dffff77a5d
JsLibraryStdDetectionUtil: rename to .kt
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
ad3be8f8b5
Add test for checking JS runtime version
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
1c0acee989
Remove obsolete code for removing obsolete JS library
2017-03-21 14:01:37 +01:00
shiraji
27e1462b00
Apply quick-fix "Make visible" for INVISIBLE_FAKE #KT-16131 Fixed
2017-03-21 13:50:49 +03:00
Alexander Udalov
d4500878cb
Do not strip some classes from xercesImpl.jar in compiler.pro
...
Note that with this config, the kotlin-compiler.jar's size is increased
by 1.5Mb
#KT-16968 Fixed
2017-03-21 13:03:19 +03:00
Alexander Udalov
af5fbef4ea
Use JDK 1.6 to compile modules under "core"
...
Outputs of these modules go into kotlin-stdlib and kotlin-reflect, both
of which must be usable on Java 6
2017-03-21 13:03:18 +03:00
Dmitry Jemerov
d80891e823
Add xercesImpl.jar to core classpath as it's now required for JDOMUtil
2017-03-20 18:46:13 +01:00
Alexey Sedunov
2e3617adbb
Spring Support: Fix tests in IDEA 2017.1
...
Filter out duplicate reference targets.
Fix test data as directory references are available
inside of string literals.
Fix test data as Spring @Autowired inspection
no more reports parameterless methods.
Fix gutter checking as configuration bean references now resolve
to @ComponentScan annotation
2017-03-20 18:46:12 +01:00
Simon Ogorodnik
2804264289
Fix regression of completion inside string templates
...
CompletionContributor should not store offsets inside
replacement zone(part of file which are replaced with
dummy identifier) in offsetMap
#KT-16848 fixed
2017-03-20 18:46:11 +01:00
Dmitry Jemerov
cf18c2243f
Fix test: check highlighting only in one direction
...
Otherwise, when we check the highlighting on one of the files, the text
of the other still contains the <lineMarker> annotation and can't be
indexed as valid Kotlin code.
2017-03-20 18:46:10 +01:00
Alexander Udalov
555b3f12ee
Use LinkedHashSet instead of HashSet in DataFlowInfo.getCollectedTypes
...
This fixes DiagnosticsTestGenerated$Tests.testImplicitIntersection,
which began to fail after update to JDK 8 because the iteration order of
HashMap/HashSet has changed in JDK 8:
http://openjdk.java.net/jeps/180
http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/43bd5ee0205e
2017-03-20 18:46:09 +01:00
Mikhael Bogdanov
211b58ac6e
kt1770.kt test rewrote during migration to 171 platform
2017-03-20 18:46:08 +01:00
Dmitry Jemerov
10aedaf0f4
Adjust test data for IDEA 2017.1
...
Since https://github.com/JetBrains/intellij-community/commit/9c8003c
deprecated methods are considered to be entry points, so the Safe
Delete quickfix is no longer available for them.
2017-03-20 18:46:08 +01:00
Alexander Udalov
999e1061b8
Update test data for ant task tests
...
Looks like javac 1.8 started to report compilation errors a bit
differently here
2017-03-20 18:46:07 +01:00
Alexander Udalov
449d1f6ad2
Fix KotlinVersionsTest, use SAX parser instead of DOM
2017-03-20 18:46:06 +01:00
Alexander Udalov
33e9e660c4
Fix JvmRuntimeDescriptorLoaderTestGenerated
...
- Use FULL_JDK instead of mock JDK in some tests because mock JDK is
created from JDK 6 and full JDK is now JDK 8, so there are differences
in the behavior in the compiler and at runtime
- Remove some '*.runtime.txt' files which were workarounds to JDK 6
reflection issues regarding generic inner classes; code in these tests
is now loaded exactly the same in the compiler and at runtime
- Change supertype in SupertypesAndBounds.kt: the class in the supertype
is not relevant to that test, it checks that annotations can be loaded
on types
2017-03-20 18:46:05 +01:00
Alexander Udalov
3c96099f7c
Fix compileJavaAgainstKotlin tests
...
- Use another API to get file name out of a javac diagnostic
(.getSource().getName()'s behavior changed in JDK 8)
- Delete .txt files for those tests which check that javac reported a
compilation error; the order and content of declarations in those
files is undefined
2017-03-20 18:46:05 +01:00
Nikolay Krasko
4edfd0d960
Move getting source position to manager thread in tests
...
Real usages are performed in this thread too. Using AWT now fails
under runInReadActionWithWriteActionPriorityWithRetries added in
https://github.com/JetBrains/intellij-community/commit/b0e995b41e9f4c0d7a64b912d3708da179cf413c
2017-03-20 18:46:04 +01:00
Alexey Sedunov
ecd56c6a40
Safe Delete: Fix tests in IDEA 2017.1
...
Now Java refactoring checks for side effects when deleting
arguments, so instantiation of Kotlin FunctionN is treated as
"unsafe"
2017-03-20 18:46:03 +01:00
Alexey Sedunov
b65460c12f
Move: Fix tests in IDEA 2017.1
...
Do not prevent usages search if target directory is not known yet.
Force content root configuration for multi-module tests
2017-03-20 18:46:02 +01:00
Mikhael Bogdanov
496a21254b
Black box update
2017-03-20 18:46:01 +01:00
Alexey Tsvetkov
40574d31ac
JPS tests: avoid using deprecated API
2017-03-20 18:46:00 +01:00