Giter Site home page Giter Site logo

Where does the config go? about sqls HOT 6 CLOSED

sqls-server avatar sqls-server commented on August 18, 2024
Where does the config go?

from sqls.

Comments (6)

lighttiger2505 avatar lighttiger2505 commented on August 18, 2024

There is an error in the way you are executing the command.

sqls -trace -config ./.sqls/config.json
sqls -trace -config ~/.config/sqls/config.yml
  1. sqls does not interpret ~.
  2. sqls will not read files with relative paths

It may work if you do the following

sqls -config /home/lighttiger2505/.config/sqls/config.yml
sqls -config ${HOME}/.config/sqls/config.yml

from sqls.

lighttiger2505 avatar lighttiger2505 commented on August 18, 2024

There is also a way to output the log to a file using the log option. Posting the results of the log output will help you solve the problem.

sqls -log ${HOME}/sqls.log

from sqls.

commandodev avatar commandodev commented on August 18, 2024

I've tried both of the variants you suggested (and the log file).

There's no extra output:

$ sqls -trace -config /home/ben/.config/sqls/config.yml -log /tmp/sqls.log
2021/01/26 10:13:10 db worker: start
2021/01/26 10:13:10 sqls: reading on stdin, writing on stdout
^C
$ cat /tmp/sqls.log 
2021/01/26 10:13:10 db worker: start
2021/01/26 10:13:10 sqls: reading on stdin, writing on stdout

Do you have an example of a yaml config file I could look at?

from sqls.

lighttiger2505 avatar lighttiger2505 commented on August 18, 2024

Do you have an example of a yaml config file I could look at?

Sample settings are described in the README.
https://github.com/lighttiger2505/sqls#configuration-file-sample

from sqls.

ruanwenjun avatar ruanwenjun commented on August 18, 2024

I've tried both of the variants you suggested (and the log file).

There's no extra output:

$ sqls -trace -config /home/ben/.config/sqls/config.yml -log /tmp/sqls.log
2021/01/26 10:13:10 db worker: start
2021/01/26 10:13:10 sqls: reading on stdin, writing on stdout
^C
$ cat /tmp/sqls.log 
2021/01/26 10:13:10 db worker: start
2021/01/26 10:13:10 sqls: reading on stdin, writing on stdout

Do you have an example of a yaml config file I could look at?

I also meet this problem, I execute sqls at shell, but get no output.

from sqls.

mattn avatar mattn commented on August 18, 2024

sqls is run by client of language server protocol. It should not be run by shell.

from sqls.

Related Issues (20)

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.