Giter Site home page Giter Site logo

Comments (9)

ration avatar ration commented on June 9, 2024

Thanks for the PR! I did this just for myself, I didn't even think about packaging it. I haven't touched kusto in a while, are you using it? Does it work ok?

from kusto-mode.el.

hindol avatar hindol commented on June 9, 2024

It works great as a syntax highlighter, which is what I need anyways. Thanks for making it. Nowadays the documentation is much much better, so I can send a PR with the complete list of functions and operators.

https://docs.microsoft.com/en-us/azure/data-explorer/

from kusto-mode.el.

ration avatar ration commented on June 9, 2024

If you do I'll definitely merge them. If use Kusto for App Insights, I ran the queries directly from emacs re http://lahtela.me/2019/10/29/running-azure-insights-log-queries-locally.html I fed that ps script as the conpilet command.

from kusto-mode.el.

hindol avatar hindol commented on June 9, 2024

Hi, I sent you another PR. This time with a lot of content, :)

Regarding running queries from command line, I took a different approach. I adapted the Python code here: https://github.com/Azure/azure-kusto-python/blob/master/azure-kusto-data/tests/sample.py and made a simple script run-query.py that takes a query from STDIN and writes result to STDOUT. I am looking for ways to integrate this with Emacs.

from kusto-mode.el.

ration avatar ration commented on June 9, 2024

Looking good!

For extra goodness I checked whether there's a kusto lsp server and sure enough there is. So I made a lsp client for it. https://github.com/ration/lsp-kusto
That will allow you to have all that code completion goodness as well.

Not that have any use for it currently 😄

from kusto-mode.el.

hindol avatar hindol commented on June 9, 2024

Fantastic!

I was actually looking at how to package Kusto LSP as an NPM package so that installation can be made seamless.

There must also be a way to install straight from Git but my Google-fu failed me. Any idea?

from kusto-mode.el.

ration avatar ration commented on June 9, 2024

The kusto server? I dropped it from git

git clone https://github.com/rosshamish/kuskus
cd kuskus/kusto-language-server
npm install
npm run compile
readlink -f server/out/server.js

Put that path into kuskus-server-location in lsp-kusto.el

from kusto-mode.el.

hindol avatar hindol commented on June 9, 2024

No, I meant something else. Sorry I wasn't clear enough.

Emacs's lsp-mode allows auto-downloading of packages. I was wondering if it allows downloading straight from a Git repo. After some searching around, seems this is not allowed.

However, I am more interested in evaluating Kusto queries directly from an Emacs buffer, because that will streamline my workflow. I am trying to hack something like this using comint mode.

from kusto-mode.el.

ration avatar ration commented on June 9, 2024

I think there's no direct support for but I can't see why it wouldn't be possible, albeit a bit more effort. lsp-java for example does all kinds of crazy stuff. It could just point to the compiled js file for the simplest solution.

I have no experience with comint but does look like a good approach!

from kusto-mode.el.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.