Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Vscode plugin issue (OutPutStream issue)(Vscode plugin issue (OutPutStream issue))
Vscode plugin issue (OutPutStream issue) [message #1860119] Tue, 18 July 2023 17:22 Go to next message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 56
Registered: May 2020
Member
Hi there,

In UI VScode extension is not showing any validation issue.((OutPutStream issue))

Server is IO:

When i debug StreamMessageConsumer :consume() we convert to bytes and write to output stream.I can see data

I put a breakpoint in MessageReader.js to check Vscode client is getting data or not(Image attached).

I don't see data while debugging MessageReader.js seems in between data is lost or got cleared.

All this is happening in first request(initialize). Server is executing validations and etc. But in UI(Vscode Extension no output).


Any input will be appreciated.


Thanks
Nagaraj

[Updated on: Tue, 18 July 2023 17:22]

Report message to a moderator

Re: Vscode plugin issue (OutPutStream issue) [message #1860120 is a reply to message #1860119] Tue, 18 July 2023 17:30 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14683
Registered: July 2009
Senior Member
Which Xtext version do you use.
How does your package json look like ?
How the extension

do you use custom Launcher?
Do you se the messages sent Server side
e.g. call org.eclipse.xtext.ide.server.ServerLauncher with args
-log debug -trace


the When i debug StreamMessageConsumer :consume() we convert to bytes and write to output stream.I can see data
part of your message i did not understand


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 18 July 2023 18:48]

Report message to a moderator

Re: Vscode plugin issue (OutPutStream issue) [message #1860126 is a reply to message #1860120] Tue, 18 July 2023 22:21 Go to previous messageGo to next message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 56
Registered: May 2020
Member
@Christian Thank you for your quick reply.

Found root cause messageBuffer.js code was throwing error if header not contains :

I have corrected validation message.

Thanks
Nagaraj
Re: Vscode plugin issue (OutPutStream issue) [message #1860129 is a reply to message #1860126] Wed, 19 July 2023 06:06 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14683
Registered: July 2009
Senior Member
hmmmm am not sure should this all be done correct automantically. where do you do custom stuff?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Vscode plugin issue (OutPutStream issue) [message #1860147 is a reply to message #1860129] Wed, 19 July 2023 14:37 Go to previous messageGo to next message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 56
Registered: May 2020
Member
@Christian Dietrich

validation message was having CRLF and it was more than 3 lines. So messageBuffer.js was considering message as header.
I made changes to validation message.

Thanks
Nagaraj
Re: Vscode plugin issue (OutPutStream issue) [message #1860162 is a reply to message #1860147] Thu, 20 July 2023 09:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14683
Registered: July 2009
Senior Member
wonder if they should be escaped?
arent they?

or did you do custom code?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Vscode plugin issue (OutPutStream issue) [message #1860227 is a reply to message #1860162] Mon, 24 July 2023 14:23 Go to previous messageGo to next message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 56
Registered: May 2020
Member
@Christian Dietrich

I thought of Overriding messageBuffer.js but subsequently I have to override other code to fix issue. So I have created a issue in VSC https://github.com/microsoft/vscode-languageserver-node/issues/1276

As a work around I have fixed my validation message which was having 3+ lines and CRLF.

It just a misinterpretation of validation message as header.

Thanks
Nagaraj
Re: Vscode plugin issue (OutPutStream issue) [message #1860228 is a reply to message #1860227] Mon, 24 July 2023 14:36 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14683
Registered: July 2009
Senior Member
i wonder if this is an issue in lsp4j
=> what do you do server side?
how does the json look like?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Mon, 24 July 2023 14:40]

Report message to a moderator

Re: Vscode plugin issue (OutPutStream issue) [message #1860229 is a reply to message #1860228] Mon, 24 July 2023 14:57 Go to previous messageGo to next message
Nagaraj Kandoor is currently offline Nagaraj KandoorFriend
Messages: 56
Registered: May 2020
Member
@Christian Dietrich

I just fixed my xtext validation message.(made it 2 lines)

It just a misinterpretation of validation message as header in messageBuffer.js.

Thanks
Nagaraj
Re: Vscode plugin issue (OutPutStream issue) [message #1860234 is a reply to message #1860229] Mon, 24 July 2023 17:49 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14683
Registered: July 2009
Senior Member
I still don't know if this is a problem in lsp4j


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Restricting scope to files that are currently open
Next Topic:Accessing Enum from imported ECore model
Goto Forum:
  


Current Time: Thu May 30 08:44:09 GMT 2024

Powered by FUDForum. Page generated in 0.03893 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top