Commit Graph

351 Commits

Author SHA1 Message Date
BoykoAlex
3e20e7e8d4 Caching JDT types. Invalidate on project change 2019-03-25 19:23:59 -04:00
Kris De Volder
436909a344 Boot property to enable disk-based cache
Also switch the default so disk-based cache is enabled
by default.
2019-03-25 14:31:38 -07:00
Kris De Volder
3d08365fce Make SymbolCache into a bean
The main application bean is defined 2ith @ConditionalOn
in such a way that it is not enabled during testing.
That way, tests can supply their own implementation.
2019-03-25 13:23:55 -07:00
Kris De Volder
47935c96bf Fix for https://www.pivotaltracker.com/n/projects/1346850/stories/164862665
Do not use 'https' for local request mappings.
2019-03-25 12:11:37 -07:00
BoykoAlex
d45ee5c33d PT #164842647: Boot properties proposals in parallel 2019-03-23 00:37:40 -04:00
Spring Operator
af8b7f975d URL Cleanup. RMs not on localhost https URL.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* [ ] http://gophercloud.io/docs/ (200) with 1 occurrences could not be migrated:
   ([https](https://gophercloud.io/docs/) result SSLHandshakeException).
* [ ] http://man7.org/linux/man-pages/man7/glob.7.html (200) with 1 occurrences could not be migrated:
   ([https](https://man7.org/linux/man-pages/man7/glob.7.html) result AnnotatedConnectException).
* [ ] http://services.typefox.io/open-source/jenkins/job/lsp4j/job/master/lastStableBuild/artifact/build/p2-repository/ (200) with 1 occurrences could not be migrated:
   ([https](https://services.typefox.io/open-source/jenkins/job/lsp4j/job/master/lastStableBuild/artifact/build/p2-repository/) result SSLHandshakeException).

These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* [ ] http://cfapps.io:1000/hello (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1000/hello ([https](https://cfapps.io:1000/hello) result ConnectTimeoutException).
* [ ] http://cfapps.io:1001/hello (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1001/hello ([https](https://cfapps.io:1001/hello) result ConnectTimeoutException).
* [ ] http://cfapps.io:1002/hello (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1002/hello ([https](https://cfapps.io:1002/hello) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/ (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/ ([https](https://cfapps.io:1111/) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/fromEnv/hello-world (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/fromEnv/hello-world ([https](https://cfapps.io:1111/fromEnv/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/fromenvironment/hello-world (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/fromenvironment/hello-world ([https](https://cfapps.io:1111/fromenvironment/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/fromlaunchconfig/hello-world (ConnectTimeoutException) with 10 occurrences migrated to:
  https://cfapps.io:1111/fromlaunchconfig/hello-world ([https](https://cfapps.io:1111/fromlaunchconfig/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/frompropsfile/hello-world (ConnectTimeoutException) with 8 occurrences migrated to:
  https://cfapps.io:1111/frompropsfile/hello-world ([https](https://cfapps.io:1111/frompropsfile/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/hello-world (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/hello-world ([https](https://cfapps.io:1111/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/inner-class (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/inner-class ([https](https://cfapps.io:1111/inner-class) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/inner-inner-class (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/inner-inner-class ([https](https://cfapps.io:1111/inner-inner-class) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/mockedpath/hello-world (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/mockedpath/hello-world ([https](https://cfapps.io:1111/mockedpath/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/find (ConnectTimeoutException) with 14 occurrences migrated to:
  https://cfapps.io:999/find ([https](https://cfapps.io:999/find) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/goodbye (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:999/goodbye ([https](https://cfapps.io:999/goodbye) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/greetings (ConnectTimeoutException) with 4 occurrences migrated to:
  https://cfapps.io:999/greetings ([https](https://cfapps.io:999/greetings) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/hello (ConnectTimeoutException) with 4 occurrences migrated to:
  https://cfapps.io:999/hello ([https](https://cfapps.io:999/hello) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/mockedpath/greetings (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:999/mockedpath/greetings ([https](https://cfapps.io:999/mockedpath/greetings) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/mockedpath/hello (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:999/mockedpath/hello ([https](https://cfapps.io:999/mockedpath/hello) result ConnectTimeoutException).
* [ ] http://cloud-controller-ng.service.cf.internal:9022 (UnknownHostException) with 1 occurrences migrated to:
  https://cloud-controller-ng.service.cf.internal:9022 ([https](https://cloud-controller-ng.service.cf.internal:9022) result UnknownHostException).
* [ ] http://org.eclipse.ui.intro/execute?command= (UnknownHostException) with 2 occurrences migrated to:
  https://org.eclipse.ui.intro/execute?command= ([https](https://org.eclipse.ui.intro/execute?command=) result UnknownHostException).
* [ ] http://dist.springsource.com/snapshot/TOOLS/sts4-language-server-integrations/nightly (403) with 1 occurrences migrated to:
  https://dist.springsource.com/snapshot/TOOLS/sts4-language-server-integrations/nightly ([https](https://dist.springsource.com/snapshot/TOOLS/sts4-language-server-integrations/nightly) result 403).
* [ ] http://foobar.com/munhings.tar.gz (404) with 1 occurrences migrated to:
  https://foobar.com/munhings.tar.gz ([https](https://foobar.com/munhings.tar.gz) result 404).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://dist.springsource.com/snapshot/STS4/nightly-distributions.html with 5 occurrences migrated to:
  https://dist.springsource.com/snapshot/STS4/nightly-distributions.html ([https](https://dist.springsource.com/snapshot/STS4/nightly-distributions.html) result 200).
* [ ] http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html with 1 occurrences migrated to:
  https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html ([https](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) result 200).
* [ ] http://maven.apache.org/xsd/maven-4.0.0.xsd with 2 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* [ ] http://stackoverflow.com with 1 occurrences migrated to:
  https://stackoverflow.com ([https](https://stackoverflow.com) result 200).
* [ ] http://stackoverflow.com/questions/6132529/antlr-parsing-java-properties with 1 occurrences migrated to:
  https://stackoverflow.com/questions/6132529/antlr-parsing-java-properties ([https](https://stackoverflow.com/questions/6132529/antlr-parsing-java-properties) result 200).
* [ ] http://stackoverflow.com/tags/spring-tools-4 with 1 occurrences migrated to:
  https://stackoverflow.com/tags/spring-tools-4 ([https](https://stackoverflow.com/tags/spring-tools-4) result 200).
* [ ] http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* [ ] http://www.apple.com/DTDs/PropertyList-1.0.dtd with 7 occurrences migrated to:
  https://www.apple.com/DTDs/PropertyList-1.0.dtd ([https](https://www.apple.com/DTDs/PropertyList-1.0.dtd) result 200).
* [ ] http://www.eclipse.org/legal/epl-v10.html with 64 occurrences migrated to:
  https://www.eclipse.org/legal/epl-v10.html ([https](https://www.eclipse.org/legal/epl-v10.html) result 200).
* [ ] http://www.java.com/en/download/help/error_hotspot.xml with 1 occurrences migrated to:
  https://www.java.com/en/download/help/error_hotspot.xml ([https](https://www.java.com/en/download/help/error_hotspot.xml) result 200).
* [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* [ ] http://www.springframework.org/schema/context/spring-context.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/context/spring-context.xsd ([https](https://www.springframework.org/schema/context/spring-context.xsd) result 200).
* [ ] http://www.springframework.org/schema/data/jpa/spring-jpa.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/data/jpa/spring-jpa.xsd ([https](https://www.springframework.org/schema/data/jpa/spring-jpa.xsd) result 200).
* [ ] http://www.springframework.org/schema/tx/spring-tx.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/tx/spring-tx.xsd ([https](https://www.springframework.org/schema/tx/spring-tx.xsd) result 200).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).

These URLs were intentionally ignored.

* http://localhost:3000 with 8 occurrences
* http://localhost:8080/greeting with 1 occurrences
* http://localhost:9000 with 6 occurrences
* http://maven.apache.org/POM/4.0.0 with 4 occurrences
* http://www.springframework.org/schema/beans with 4 occurrences
* http://www.springframework.org/schema/context with 2 occurrences
* http://www.springframework.org/schema/data/jpa with 2 occurrences
* http://www.springframework.org/schema/p with 1 occurrences
* http://www.springframework.org/schema/tx with 2 occurrences
* http://www.w3.org/1999/XSL/Transform with 4 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 3 occurrences

Create https URLs for RMs not on local host
2019-03-21 12:02:19 -04:00
Martin Lippert
3a2b77b8d1 update internal jdt versio to 3.17.0, same as eclipse 2019-03 release, but not yet java12 compatible 2019-03-21 16:23:18 +01:00
Martin Lippert
7cfbfd3ad7 fix flacky webflux tests caused by two symbol indexers being created and used in different places 2019-03-21 15:56:55 +01:00
Spring Operator
e2d604f023 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://my.repository.com/repo/path (200) with 1 occurrences could not be migrated:
   ([https](https://my.repository.com/repo/path) result SSLHandshakeException).

These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://sha256timestamp.ws.symantec.com/sha256/timestamp (InvalidMediaTypeException) with 3 occurrences migrated to:
  https://sha256timestamp.ws.symantec.com/sha256/timestamp ([https](https://sha256timestamp.ws.symantec.com/sha256/timestamp) result ConnectTimeoutException).
* http://www.myhost.com/maven/jdk14 (500) with 1 occurrences migrated to:
  https://www.myhost.com/maven/jdk14 ([https](https://www.myhost.com/maven/jdk14) result 500).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://dist.springsource.com/release/TOOLS/third-party/misc-p2-repo/ with 1 occurrences migrated to:
  https://dist.springsource.com/release/TOOLS/third-party/misc-p2-repo/ ([https](https://dist.springsource.com/release/TOOLS/third-party/misc-p2-repo/) result 200).
* http://maven.apache.org/xsd/settings-1.0.0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/settings-1.0.0.xsd ([https](https://maven.apache.org/xsd/settings-1.0.0.xsd) result 200).
* http://spring.io/tools with 3 occurrences migrated to:
  https://spring.io/tools ([https](https://spring.io/tools) result 200).
* http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html with 1 occurrences migrated to:
  https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html ([https](https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html) result 200).
* http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html with 1 occurrences migrated to:
  https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html ([https](https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.pivotal.io with 1 occurrences migrated to:
  https://www.pivotal.io ([https](https://www.pivotal.io) result 301).

These URLs were intentionally ignored.

* http://maven.apache.org/SETTINGS/1.0.0 with 2 occurrences
* http://www.springframework.org/schema/beans with 2 occurrences
* http://www.springframework.org/schema/p with 1 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 2 occurrences

Revert timestamp switch
2019-03-20 13:45:27 -04:00
Martin Lippert
48129762c8 ignore flacky webflux tests for now until we solved the underlying issue 2019-03-20 18:31:32 +01:00
BoykoAlex
25fef503e0 Ignore failing unit tests 2019-03-14 11:04:15 -04:00
Martin Lippert
b222802eef added symbol caching for symbols from xml files 2019-03-12 10:12:24 +01:00
Martin Lippert
f4ca5c4dd3 added option to ignore method bodies while parsing java 2019-03-11 11:02:24 +01:00
Martin Lippert
708f998916 unified system property options 2019-03-11 11:02:00 +01:00
Martin Lippert
65aa2ef69f test symbol infrastructure without caching enabled 2019-03-11 09:48:59 +01:00
Martin Lippert
35c110e18c missed to add symbols in case of non-cached symbols 2019-03-11 09:47:34 +01:00
Martin Lippert
caa0839d74 cache for symbol index 2019-03-10 17:57:38 +01:00
Martin Lippert
4692d1ed18 added additional performance logging for initial project symbol scanning 2019-03-09 13:31:49 +01:00
Kris De Volder
d86becebe7 http -> https 2019-03-08 15:48:38 -08:00
BoykoAlex
91d9838fff PT #164474609: Light TypeDescriptorData and caching super, sub-types 2019-03-08 12:09:50 -05:00
BoykoAlex
dc1e2708f9 PT #164216122: JDT LS search performance improvement 2 2019-03-06 19:57:47 -05:00
Martin Lippert
a2e370086d housekeeping 2019-03-06 16:08:28 +01:00
Spring Operator
4d43e68820 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://sha256timestamp.ws.symantec.com/sha256/timestamp (400) migrated to:
  http://sha256timestamp.ws.symantec.com/sha256/timestamp ([https](https://sha256timestamp.ws.symantec.com/sha256/timestamp) result ConnectTimeoutException).
* http://s3-test.spring.io/sts4/vscode-extensions/ (403) migrated to:
  http://s3-test.spring.io/sts4/vscode-extensions/ ([https](https://s3-test.spring.io/sts4/vscode-extensions/) result SSLHandshakeException).

# Fixed URLs

## Fixed Success
These URLs were fixed successfully.

* http://www.apache.org/licenses/LICENSE-2.0 migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-06 00:05:19 -06:00
BoykoAlex
d994d2abcd PT #164216122: JDT LS search performance improvement 1 2019-03-05 20:31:03 -05:00
Martin Lippert
664691a11a polish for third-party license file generation 2019-03-01 15:25:18 +01:00
Martin Lippert
a261770210 housekeeping 2019-02-27 11:38:40 +01:00
Kris De Volder
b65b521c67 Try to fix vscode-spring-boot ci build 2019-02-25 12:14:31 -08:00
Kris De Volder
29228edc93 Some improvements to jdt-ls-extensions building 2019-02-25 12:04:31 -08:00
Kris De Volder
a7d8fa3996 Eclipse metadata 2019-02-25 10:23:40 -08:00
Kris De Volder
dc3bc88458 Merge branch 'master' of github.com:spring-projects/sts4 2019-02-25 09:16:56 -08:00
Kris De Volder
5216fb054c Use managed version of maven surfire and resources plugins 2019-02-25 09:15:49 -08:00
BoykoAlex
529e91e82c Missing changes from JDT Index adoption 2019-02-23 00:52:35 -05:00
BoykoAlex
a3aabe534a Boot property for Jandex Index switch. Basic caching for JDTLS index 2019-02-22 19:27:44 -05:00
BoykoAlex
2b2413ee60 JDT LS based index for searches and refactorings to replace Jandex 2019-02-22 17:23:22 -05:00
Kris De Volder
37e68907c6 Bump version to 1.5.0 2019-02-22 17:23:45 +00:00
BoykoAlex
96958c3363 PT #164071043: Calculate different ids for nested and static inner types 2019-02-20 12:31:35 -05:00
nsingh@pivotal.io
1af3a142db PT 163470104 - Remove separators for Request Mapping live hovers
This makes it consistent with other live hovers for multiple apps.
2019-02-19 20:16:47 -08:00
Martin Lippert
09356c10f2 remove old debug log output 2019-02-19 16:19:11 +01:00
Martin Lippert
32c1df63d6 update java parsing level to Java11 2019-02-19 16:18:41 +01:00
nsingh@pivotal.io
6cdb257294 Support live hover hints for multiple properties in @Value 2019-02-14 20:09:13 -08:00
nsingh@pivotal.io
f779a9cc1b Add mock support for live properties 2019-02-14 20:09:13 -08:00
BoykoAlex
a0f3019590 PT #163860252: Fix broken hover links for CF apps 2019-02-14 18:56:48 -05:00
BoykoAlex
935458a1ec PT #163970039: Handle WEB-INF/classes case and unit test 2019-02-14 17:31:02 -05:00
Martin Lippert
de5576d96c added automatic license file generation for boot-ls as a first step 2019-02-14 15:44:55 +01:00
Martin Lippert
fdeb1dd55c fix threading issue with project listener registration by introducing a delegate in between the involved parties 2019-02-14 00:55:10 -05:00
nsingh@pivotal.io
d9905c40ce PT 163178235 - Highlight hints for basic @Value cases
Properties in @Value now have highlight hints if they have  live hover
information. Only basic cases are supported. Complex SpEL expressions
are not yet supported if multiple properties appear in the expression.
2019-02-13 14:20:07 -08:00
nsingh@pivotal.io
9ac173feb6 Refactor getting exact node to reuse for Value hover highlights 2019-02-12 12:39:56 -08:00
nsingh@pivotal.io
45b634e467 User logger to log errors in Value hover provider 2019-02-11 13:51:56 -08:00
nsingh@pivotal.io
cd276ddbc4 PT 163178235 - Add live properties parsing for Boot 2.x
Live properties parsing for Boot 2.x was missing and was not appearing
when hovering over @Value properties
2019-02-11 13:35:20 -08:00
Martin Lippert
fd445778b3 changed live hover checks from various classpath and property checks towards JMX bean lookup, and turned the check into parallel checks 2019-02-11 11:32:18 +01:00