Cannot use provided schemas
See original GitHub issuewhen trying to use a specific schemas provided in preferences, when openign the file and asking for completion, there is this error:
eclipse.buildId=4.15.0.I20200305-0155
java.version=1.8.0_252
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.committers.product
Command-line arguments: -data /home/apupier/ws/camel-ls -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.committers.product
This is a continuation of log file /home/apupier/ws/camel-ls/.metadata/.bak_5.log
Created Time: 2020-07-02 16:50:27.000
org.eclipse.lsp4e
Error
Thu Jul 02 16:56:59 CEST 2020
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request textDocument/completion failed with message: entry.getSchemas(...) is not a function or its return value is not iterable
java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request textDocument/completion failed with message: entry.getSchemas(...) is not a function or its return value is not iterable
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)
at org.eclipse.lsp4e.operations.completion.LSContentAssistProcessor.computeCompletionProposals(LSContentAssistProcessor.java:105)
at org.eclipse.jface.text.contentassist.AsyncCompletionProposalPopup.lambda$10(AsyncCompletionProposalPopup.java:351)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jface.text.contentassist.AsyncCompletionProposalPopup.lambda$9(AsyncCompletionProposalPopup.java:350)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request textDocument/completion failed with message: entry.getSchemas(...) is not a function or its return value is not iterable
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
at org.eclipse.lsp4e.LanguageServerWrapper.lambda$1(LanguageServerWrapper.java:243)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
tried with an URL and with a local file:
- https://gist.githubusercontent.com/lburgazzoli/5b860fdad50d372a27fc51306f1ae378/raw/addea32147720a41ff58aa82e1ec845dae6ab77c/camel-yaml-dsl.json
- format of the local file
/home/apupier/ws/camelk-test/my-schema.json
Issue Analytics
- State:
- Created 3 years ago
- Comments:41 (34 by maintainers)
Top Results From Across the Web
Schema export directory is not provided to the annotation ...
Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide room.schemaLocation ...
Read more >Specifying a schema | BigQuery - Google Cloud
You can't use a schema file with the Google Cloud console or the API. Manually supply the schema file: If you're loading data,...
Read more >63407 - A "Cannot find any tables with the schema provided ...
Problem Note 63407: A "Cannot find any tables with the schema provided" error message occurs when you attempt to create an entity in...
Read more >Create and register a schema | Cloud Search API
A Google Cloud Search schema is a JSON structure that defines the objects, properties, and options to be used in indexing and querying...
Read more >Documentation: 15: 5.9. Schemas - PostgreSQL
By default, users cannot access any objects in schemas they do not own. To allow that, the owner of the schema must grant...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for those details @vrubezheny! It would be great if you could add such hints directly into some CONTRIBUTING.md file.
In general, you need:
cd ~/projects/(or whereever you save your projects)git clone https://github.com/eclipse/wildwebdeveloper.git(if needed)git clone git://git.eclipse.org/gitroot/lsp4e/lsp4e.gitcd ~/projects/wildwebdeveloper/target-platform/; mvn clean install;) and set it as your Eclipse’s target platform (open in Eclipsewildwebdeveloper/target-platform/target-platform.targetfile and check it’s installed inWindow - Preferences -> Plug-in Development -> Target Platformpreference page.cd ~/projects/wildwebdeveloper//; mvn clean install;)Window -> Preferences -> Language Servers -> Logs, enable the required eitherLog to FileorLog to Consoleor both. There will be a new project created in your workspace named afterlanguageServers-log- you may find a link on the same preference page. Also, you can import it into you workspace and always have the logs handy. Quite simple 😃