Open meeuw opened 6 years ago
@meeuw - you are a mad scientist! I mean that in a good way :)
If you're using UTF8 encoding for stdin and stdout, I really have no idea why the tools service wouldn't understand the connect message. You're in uncharted territory.
I'm trying to run sqltoolsservice at a remote desktop session and tunnel the json data over the same connection over a virtual serial port. This will decouple sqltoolsservice from mssql-cli and allows one to use integrated authentication without setting up kerberos etc.
I'm running the following command on linux to set up a virtual serial port:
socat -v -d -d pty,raw,echo=0 pty,raw,echo=0
(on my system this yields/dev/pts/9
and/dev/pts/10
) Connect to a Windows 10 system using:rdesktop windows10 -k en-us -g 1280x800 -r comport:COM1=/dev/pts/9
Connect sqltoolservice on Windows 10 (using Cygwin socat)
socat /dev/ttyS0 SYSTEM:"./MicrosoftSqlToolsServiceLayer.exe --enable-logging"
I've patched mssql-cli to start socat instead of sqltoolsservice using:
socat stdio /dev/pts/10
But this gives me the following errors from sqltoolsservice (infine loop):
socat
tells me the following data was forwarded:Any idea why sqltoolsservice doesn't understand this?