You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2022/06/09 12:03:24 UTC

[camel-website] branch main updated (e490654a -> 9edc4fe8)

This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


    from e490654a Add zhfeng to committers table (#855)
     new b8191986 Camel Blog
     new 7edaad8f Get Camel lsp in Emacs blog
     new 9ad242cc Removed Trailing Whitespaces
     new 38d50142 Removed Trailing Whitespaces
     new 9edc4fe8 Updated date

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 content/blog/2022/06/images/Errordetection.gif | Bin 0 -> 88518 bytes
 content/blog/2022/06/images/Spellchecker.gif   | Bin 0 -> 146047 bytes
 content/blog/2022/06/images/camell.gif         | Bin 0 -> 577886 bytes
 content/blog/2022/06/index.md                  | 140 +++++++++++++++++++++++++
 4 files changed, 140 insertions(+)
 create mode 100644 content/blog/2022/06/images/Errordetection.gif
 create mode 100644 content/blog/2022/06/images/Spellchecker.gif
 create mode 100644 content/blog/2022/06/images/camell.gif
 create mode 100644 content/blog/2022/06/index.md


[camel-website] 05/05: Updated date

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 9edc4fe87e3a859f49549ea9ec9a78fe1fdf5c47
Author: Navyashree0923 <na...@gmail.com>
AuthorDate: Thu Jun 9 15:58:13 2022 +0530

    Updated date
---
 content/blog/2022/06/index.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/blog/2022/06/index.md b/content/blog/2022/06/index.md
index 6ae0d626..3791578b 100644
--- a/content/blog/2022/06/index.md
+++ b/content/blog/2022/06/index.md
@@ -1,6 +1,6 @@
 ---
 title: "Client implementation of the Apache Camel Language Server Protocol for Emacs"
-date: 2022-06-08
+date: 2022-06-09
 authors: [Navyashree0923]
 categories: ["Tooling"]
 preview: "Client implementation of the Apache Camel Language Server Protocol for Emacs"


[camel-website] 02/05: Get Camel lsp in Emacs blog

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 7edaad8f9c15081b494f3ff004ed481d615b42e3
Author: Navyashree0923 <na...@gmail.com>
AuthorDate: Wed Jun 8 14:24:16 2022 +0530

    Get Camel lsp in Emacs blog
    
    Fixes #856
---
 content/blog/2022/06/index.md | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/content/blog/2022/06/index.md b/content/blog/2022/06/index.md
index 01f56560..193e192c 100644
--- a/content/blog/2022/06/index.md
+++ b/content/blog/2022/06/index.md
@@ -8,17 +8,19 @@ preview: "Client implementation of the Apache Camel Language Server Protocol for
 
 # Text Editing capabilities of Camel URI with Camel XML DSL
 
-For instance, code completion for Camel XML Dsl. The capabilities are based on the Camel Language Server.
+The capabilities are based on the Camel Language Server.
 
-![Demo](images/camell.gif)
+For instance, code completion of Camel URI with Camel XML Dsl:
 
-Error detection for Camel XML Dsl
+![Demo of completion in Camel URI](images/camell.gif)
 
-![errordetection](images/Errordetection.gif)
+Diagnostic of Camel URI attribute value with Camel XML Dsl:
 
-Spell correction for Camel XML Dsl
+![Diagnostic of Camel URI attribute value, the exchangePattern attribute is an enum. An error is reported when a value which is not part of the enumeration is provided](images/Errordetection.gif)
 
-![spellcorrection](images/Spellchecker.gif)
+Diagnostic of Camel URI attribute name with Camel XML Dsl:
+
+![Diagnostic of Camel URI attribute name](images/Spellchecker.gif)
 
 
 # How to configure Emacs?
@@ -51,7 +53,8 @@ In a `~/.emacs.d/init.el` file:
 (add-hook 'nxml-mode-hook #'lsp)
 ```
 
-* Create `~/.emacs.d/lsp-camel.el` 
+* Create `~/.emacs.d/lsp-camel.el`file with the following content:
+
 
 In a `~/.emacs.d/lsp-camel.el` file:
 
@@ -130,9 +133,8 @@ In a `~/.emacs.d/lsp-camel.el` file:
 
 * Loading Camel LS by calling: `M-x lsp-install-server` and choosing `camells`
 
-
-Follow this link to know more about configuring Emacs - (https://github.com/camel-tooling/camel-lsp-client-emacs)
+Follow [this link](https://github.com/camel-tooling/camel-lsp-client-emacs) to know more about configuring Emacs and have up-to-date information. 
 
 Then you can enjoy editing capabilities of Camel URI.
 
-NOTE - The configuration will be simplified with next release of lsp-mode
+NOTE - The configuration will be simplified with next release of [lsp-mode](https://github.com/emacs-lsp/lsp-mode) thanks to [built-in support of Camel Language Server](https://github.com/emacs-lsp/lsp-mode/issues/3528).


[camel-website] 04/05: Removed Trailing Whitespaces

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 38d501423b814455147834802b8eef72554c78ee
Author: Navyashree0923 <na...@gmail.com>
AuthorDate: Wed Jun 8 18:33:21 2022 +0530

    Removed Trailing Whitespaces
---
 content/blog/2022/06/index.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/blog/2022/06/index.md b/content/blog/2022/06/index.md
index 23202347..6ae0d626 100644
--- a/content/blog/2022/06/index.md
+++ b/content/blog/2022/06/index.md
@@ -8,7 +8,7 @@ preview: "Client implementation of the Apache Camel Language Server Protocol for
 
 # Text Editing capabilities of Camel URI with Camel XML DSL
 
-The capabilities are based on the Camel Language Server.
+The capabilities are based on the [Camel Language Server](https://github.com/camel-tooling/camel-language-server).
 
 For instance, code completion of Camel URI with Camel XML Dsl:
 


[camel-website] 01/05: Camel Blog

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit b81919867d2fb492d7083f73f7f263cd0a37c8a0
Author: Navyashree0923 <na...@gmail.com>
AuthorDate: Wed Jun 8 12:48:24 2022 +0530

    Camel Blog
---
 content/blog/2022/06/images/Errordetection.gif | Bin 0 -> 88518 bytes
 content/blog/2022/06/images/Spellchecker.gif   | Bin 0 -> 146047 bytes
 content/blog/2022/06/images/camell.gif         | Bin 0 -> 577886 bytes
 content/blog/2022/06/index.md                  | 138 +++++++++++++++++++++++++
 4 files changed, 138 insertions(+)

diff --git a/content/blog/2022/06/images/Errordetection.gif b/content/blog/2022/06/images/Errordetection.gif
new file mode 100644
index 00000000..ff9a4c99
Binary files /dev/null and b/content/blog/2022/06/images/Errordetection.gif differ
diff --git a/content/blog/2022/06/images/Spellchecker.gif b/content/blog/2022/06/images/Spellchecker.gif
new file mode 100644
index 00000000..c80aa21e
Binary files /dev/null and b/content/blog/2022/06/images/Spellchecker.gif differ
diff --git a/content/blog/2022/06/images/camell.gif b/content/blog/2022/06/images/camell.gif
new file mode 100644
index 00000000..ce9a0d44
Binary files /dev/null and b/content/blog/2022/06/images/camell.gif differ
diff --git a/content/blog/2022/06/index.md b/content/blog/2022/06/index.md
new file mode 100644
index 00000000..01f56560
--- /dev/null
+++ b/content/blog/2022/06/index.md
@@ -0,0 +1,138 @@
+---
+title: "Client implementation of the Apache Camel Language Server Protocol for Emacs"
+date: 2022-06-08
+authors: [Navyashree0923]
+categories: ["Tooling"]
+preview: "Client implementation of the Apache Camel Language Server Protocol for Emacs"
+---
+
+# Text Editing capabilities of Camel URI with Camel XML DSL
+
+For instance, code completion for Camel XML Dsl. The capabilities are based on the Camel Language Server.
+
+![Demo](images/camell.gif)
+
+Error detection for Camel XML Dsl
+
+![errordetection](images/Errordetection.gif)
+
+Spell correction for Camel XML Dsl
+
+![spellcorrection](images/Spellchecker.gif)
+
+
+# How to configure Emacs?
+
+* For the convenience to have all the Emacs configuration in one directory, should use `~/.emacs.d/init.el`
+
+In a `~/.emacs.d/init.el` file:
+
+```lisp
+(require 'package)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+;; Comment/uncomment this line to enable MELPA Stable if desired.  See `package-archive-priorities`
+;; and `package-pinned-packages`. Most users will not need or want to do this.
+;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
+(package-initialize)
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(package-selected-packages '(lsp-mode)))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )
+ 
+(require 'lsp-mode)
+(add-hook 'nxml-mode-hook #'lsp)
+```
+
+* Create `~/.emacs.d/lsp-camel.el` 
+
+In a `~/.emacs.d/lsp-camel.el` file:
+
+```lisp
+;;; lsp-camel.el --- LSP Camel server integration        -*- lexical-binding: t; -*-
+
+
+;;; Code:
+
+(require 'lsp-mode)
+
+(defgroup lsp-camel nil
+ "LSP support for Camel, using camel-language-server"
+ :group 'lsp-mode
+ :tag "Language Server"
+ :package-version '(lsp-mode . "8.0.0"))
+
+;; Define a variable to store camel language server jar version
+(defconst lsp-camel-jar-version "1.5.0")
+
+;; Define a variable to store camel language server jar name
+(defconst lsp-camel-jar-name (format "camel-lsp-server-%s.jar" lsp-camel-jar-version))
+
+;; Directory in which the servers will be installed. Lsp Server Install Dir: ~/.emacs.d/.cache/camells
+(defcustom lsp-camel-jar-file (f-join lsp-server-install-dir "camells" lsp-camel-jar-name)
+ "Camel Language server jar command."
+ :type 'string
+ :group 'lsp-camel
+ :type 'file
+ :package-version '(lsp-mode . "8.0.0"))
+
+(defcustom lsp-camel-jar-download-url
+ (format "https://repo1.maven.org/maven2/com/github/camel-tooling/camel-lsp-server/%s/%s" lsp-camel-jar-version lsp-camel-jar-name)
+ "Automatic download url for lsp-camel."
+ :type 'string
+ :group 'lsp-camel
+ :package-version '(lsp-mode . "8.0.0"))
+
+(lsp-dependency
+'camells
+'(:system lsp-camel-jar-file)
+`(:download :url lsp-camel-jar-download-url
+			:store-path lsp-camel-jar-file))
+
+(defcustom lsp-camel-server-command `("java" "-jar" , lsp-camel-jar-file)
+ "Camel server command."
+ :type '(repeat string)
+ :group 'lsp-camel
+ :package-version '(lsp-mode . "8.0.0"))
+
+(defun lsp-camel--create-connection ()
+ (lsp-stdio-connection
+  (lambda () lsp-camel-server-command)
+  (lambda () (f-exists? lsp-camel-jar-file))))
+
+(lsp-register-client
+(make-lsp-client :new-connection (lsp-camel--create-connection)
+				 :activation-fn (lsp-activate-on "xml")
+				 :priority 0
+				 :server-id 'camells
+				 :add-on? t
+				 :multi-root t
+				 :initialized-fn (lambda (workspace)
+								   (with-lsp-workspace workspace
+									 (lsp--set-configuration (lsp-configuration-section "camel"))))
+				 :download-server-fn (lambda (_client callback error-callback _update?)
+									   (lsp-package-ensure 'camells callback error-callback))))
+
+(lsp-consistency-check lsp-camel)
+
+(provide 'lsp-camel)
+;;; lsp-camel.el ends here
+```
+
+* Evaluating it by calling `M-x eval-buffer`
+
+* Loading Camel LS by calling: `M-x lsp-install-server` and choosing `camells`
+
+
+Follow this link to know more about configuring Emacs - (https://github.com/camel-tooling/camel-lsp-client-emacs)
+
+Then you can enjoy editing capabilities of Camel URI.
+
+NOTE - The configuration will be simplified with next release of lsp-mode


[camel-website] 03/05: Removed Trailing Whitespaces

Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 9ad242cc8503edd76db947f1be5fc7f1154ba08c
Author: Navyashree0923 <na...@gmail.com>
AuthorDate: Wed Jun 8 18:03:22 2022 +0530

    Removed Trailing Whitespaces
---
 content/blog/2022/06/index.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/blog/2022/06/index.md b/content/blog/2022/06/index.md
index 193e192c..23202347 100644
--- a/content/blog/2022/06/index.md
+++ b/content/blog/2022/06/index.md
@@ -48,7 +48,7 @@ In a `~/.emacs.d/init.el` file:
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  )
- 
+
 (require 'lsp-mode)
 (add-hook 'nxml-mode-hook #'lsp)
 ```
@@ -133,7 +133,7 @@ In a `~/.emacs.d/lsp-camel.el` file:
 
 * Loading Camel LS by calling: `M-x lsp-install-server` and choosing `camells`
 
-Follow [this link](https://github.com/camel-tooling/camel-lsp-client-emacs) to know more about configuring Emacs and have up-to-date information. 
+Follow [this link](https://github.com/camel-tooling/camel-lsp-client-emacs) to know more about configuring Emacs and have up-to-date information.
 
 Then you can enjoy editing capabilities of Camel URI.