Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request textDocument/semanticTokens failed (on edge case) #3836

Closed
scchow opened this issue Feb 16, 2023 · 3 comments · Fixed by #3955
Closed

Request textDocument/semanticTokens failed (on edge case) #3836

scchow opened this issue Feb 16, 2023 · 3 comments · Fixed by #3955

Comments

@scchow
Copy link

scchow commented Feb 16, 2023

Problem Description

I am encountering the same issue as #2055, which was reported to be fixed a while ago, but has popped up for me in a particular edge case.

This seems to occur when I first end a RUN command with &\, then add a comment with a markdown link of form [txt](url), and continue the typing below. See the example below for details.

When opening/editing a Dockerfile with this bug, I get repeated notifications that Request textDocument/semanticTokens/full failed. Examining the full output, I see:

[Error - 6:18:50 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed with message: Maximum call stack size exceeded
  Code: -32603 
...
<Omitted for brevity>
...
[Error - 6:18:51 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed with message: Maximum call stack size exceeded
  Code: -32603 

It seems that with every keypress, I get a new message.

Sample Dockerfile

FROM ubuntu 

RUN echo "hi there" &\
# Let's add a comment with a markdown link [here](https://www.google.com) hope nothing breaks...
echo "oops I broke something and I'm getting a lot of popup messages"

This is a very particular edge case as it only appears if the following conditions are met:

  1. End a line with &\ exactly. Note if you end it with & \, this bug does not occur
  2. Add a comment with a standard markdown link of style [txt](url)
  3. Continue the command below the comment

Setup Details

I was able to reproduce this bug on two setups.

  1. Just my primary machine
  2. Using Remote-SSH to ssh into a remote machine and editing a Dockerfile on that machine.

Primary Machine

  • OS: Microsoft Windows 10
  • VS Code Version: 1.75.1
  • Docker Extension Version: v1.23.3
  • Remote-SSH Version: v0.96.0

Remote Machine

  • OS: Ubuntu 22.04
  • Docker Extension Version: v1.23.3
@dbreshears
Copy link
Member

@rcjsuen. Can you take a look at this one?

@dbreshears dbreshears added this to the Future milestone Mar 8, 2023
@rcjsuen
Copy link
Contributor

rcjsuen commented May 28, 2023

Thank you for the bug report. I have opened rcjsuen/dockerfile-language-service#110 to track this.

@bwateratmsft bwateratmsft linked a pull request Jun 1, 2023 that will close this issue
@bwateratmsft bwateratmsft modified the milestones: Future, 1.26.0 Jun 1, 2023
@microsoft microsoft locked and limited conversation to collaborators Jul 17, 2023
@alexyaang
Copy link
Member

The fix has now been released in Docker extension version 1.26.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants