camel-tooling / camel-lsp-client-vscode Goto Github PK
View Code? Open in Web Editor NEWThis is a client implementation of the Apache Camel Language Server Protocol for Visual Studio Code
License: Apache License 2.0
This is a client implementation of the Apache Camel Language Server Protocol for Visual Studio Code
License: Apache License 2.0
Ctrl+Shift+O
I am repeatedly gets this exception and it crashes
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: java.lang.NullPointerException
at java.base/java.io.Reader.<init>(Reader.java:167)
at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at org.apache.camel.kafkaconnector.catalog.CamelKafkaConnectorCatalog.initCatalog(CamelKafkaConnectorCatalog.java:65)
at org.apache.camel.kafkaconnector.catalog.CamelKafkaConnectorCatalog.<init>(CamelKafkaConnectorCatalog.java:52)
at com.github.cameltooling.lsp.internal.catalog.util.CamelKafkaConnectorCatalogManager.<init>(CamelKafkaConnectorCatalogManager.java:23)
at com.github.cameltooling.lsp.internal.CamelTextDocumentService.<init>(CamelTextDocumentService.java:94)
at com.github.cameltooling.lsp.internal.CamelLanguageServer.<init>(CamelLanguageServer.java:53)
at com.github.cameltooling.lsp.internal.Runner.main(Runner.java:65)
... 8 more
[Info - 11:24:59 am] Connection to server got closed. Server will restart.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: java.lang.NullPointerException
at java.base/java.io.Reader.<init>(Reader.java:167)
at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at org.apache.camel.kafkaconnector.catalog.CamelKafkaConnectorCatalog.initCatalog(CamelKafkaConnectorCatalog.java:65)
at org.apache.camel.kafkaconnector.catalog.CamelKafkaConnectorCatalog.<init>(CamelKafkaConnectorCatalog.java:52)
at com.github.cameltooling.lsp.internal.catalog.util.CamelKafkaConnectorCatalogManager.<init>(CamelKafkaConnectorCatalogManager.java:23)
at com.github.cameltooling.lsp.internal.CamelTextDocumentService.<init>(CamelTextDocumentService.java:94)
at com.github.cameltooling.lsp.internal.CamelLanguageServer.<init>(CamelLanguageServer.java:53)
at com.github.cameltooling.lsp.internal.Runner.main(Runner.java:65)
... 8 more
[Error - 11:25:01 am] Connection to server got closed. Server will not be restarted.
Define issue title short and most specific to the problem.
Tag each new issue with relevant LABELS (Bug, Improvement, etc.).
These are dependencies in pom.xml
<dependencies>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-kafka-starter</artifactId>
</dependency>
</dependencies>
Camel version is 3.4.4
add "by Red Hat"
currently UI tests re included in Travis build but not the Jenkins one.
when adding, check if the test report is provided (which is something that doesn't exist for Travis)
Environment
Tested code:
<camelContext id="uitest-context" xmlns="http://camel.apache.org/schema/spring">
<route id="uitest-route">
<from id="_fromID" uri="timer:timerName?delay=1000r"/>
</route>
</camelContext>
Result:
no detected errors in Problems view
According to yesterday's article, there is currently a set of pre-requisites for the functionality to be enabled:
.java
.camel
written somewhere.RouteBuilder.from
or RouteBuilder.to
methods (which means no space, no variable).This is understood but it would be useful exposing the user the logic to activate the functionality.
I assume the .java
suffix is an hard constraint, despite I think it should be useful to allow a way to enable the plugin also on disposable temporary new files, that don't have any file name yet.
The most limiting constraint is the camel
keyword requirement. I was about to suggest to switch to route
, but at that point, I've realised that probably the real feature would be to allow the user to specify the regexp/GLOB/keywords they like.
0.00s$ sh -e /etc/init.d/xvfb start
sh: 0: Can't open /etc/init.d/xvfb
The command "sh -e /etc/init.d/xvfb start" failed and exited with 127 during .
should we create the test inside this repository or another one as it goes beyond just Camel LSP but general Camel development?
npm audit
=== npm audit security report ===
# Run npm install --save-dev [email protected] to resolve 2 vulnerabilities
Moderate Prototype Pollution
Package lodash
Dependency of vsce [dev]
Path vsce > cheerio > lodash
More info https://nodesecurity.io/advisories/782
Moderate Prototype Pollution
Package lodash
Dependency of vsce [dev]
Path vsce > lodash
More info https://nodesecurity.io/advisories/782
# Run npm update js-yaml --depth 2 to resolve 1 vulnerability
Moderate Denial of Service
Package js-yaml
Dependency of tslint [dev]
Path tslint > js-yaml
More info https://nodesecurity.io/advisories/788
there is the error mentioned here microsoft/vscode-java-pack#42
java
binary is not found in $PATH
. That is despite $JAVA_HOME
being defined in the environment and java.home
being defined in VScode settings.sdkman
into a location in $HOME
.java.home
setting in VScode to point to where JAva is installed (This is enough to enable the Java language server to load in VScode)$JAVA_HOME
environment variable and the java.home
setting when starting up the language serverjava
binary in $JAVA_HOME
and java.home
.When enabling this plugin the add comment function in vscode adds // instead of an xml comment tag to xml files.
to avoid reported vulnerability (it si affecting only dev so no risk but it will avoid to have a warning in github) and allows to detect more easily potential new vulnerabilities)
which will gather several useful plugins for Camel development, for instance:
automatic pr merged on server side camel-tooling/camel-language-server#295
to 1.1.7+
low security issue reported by Github https://github.com/camel-tooling/camel-lsp-client-vscode/network/alert/package-lock.json/node.extend/open
=== npm audit security report ===
# Run npm update underscore.string --depth 2 to resolve 1 vulnerability
Moderate Regular Expression Denial of Service
Package underscore.string
Dependency of tslint [dev]
Path tslint > underscore.string
More info https://nodesecurity.io/advisories/745
our first test is coming, now it will be nice to be able to see a part of the coverage #33
it will allow to launch in remote debug. (will be useful to debug integration of VS Code plugin inside Theia/Che)
Hi, I have installed vscode plugin but I'm struggling to understand what features the plugin has and where I should see its behavior kicking in.
I would like to read a more explicit list of currently supported features. For example:
A quick video might be good to show case the features, but personally I'd like to see these feature in form of a quick cropped screenshot that can give me, with a glimpse of an eye, all the information that I need.
thank you
for instance "languageClient.onReady().then" doesn't contain handling of error callback
it will be particularly useful for checking what is working/not working with this VSCode plugin inside Theia eclipse-che/che#11705
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.