www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - String Interpolation support in VS Code

reply Arredondo <arm.plus gmail.com> writes:
Coming back to D after a few years of inactivity, and I'm 
pleasantly surprised that we now have string interpolation (sort 
of) in the language.

The issue I'm having is with Visual Studio Code. I'm getting a 
red squiggle under the entire expression with a nonsensical error 
message, when in reality the code is fine and compiling fine.

[screenshot](https://imgur.com/a/Q8dTRFk)

Here are the D related extensions I have installed:

  - D Programming Language (code-d) by WebFreak
  - d by colinkaopu
  - d-code by tonyjewel
  - C/C++ Extension Pack by Microsoft
  - CodeLLDB by Vadim Chugunov

Has anyone encountered this issue? I'm also open to suggestions 
for other tooling options if there's something better than VS 
Code for D programming in Windows.

Cheers!
Arredondo.
Feb 23
next sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
On Sunday, 23 February 2025 at 14:10:09 UTC, Arredondo wrote:
 Has anyone encountered this issue? I'm also open to suggestions 
 for other tooling options if there's something better than VS 
 Code for D programming in Windows.
All you can do is to make a [new issue](https://github.com/Pure-D/code-d/issues) on the code-d project, or, even better, implement it by yourself and submit a PR. :)
Feb 23
prev sibling parent reply Jordan Wilson <wilsonjord gmail.com> writes:
On Sunday, 23 February 2025 at 14:10:09 UTC, Arredondo wrote:
 Coming back to D after a few years of inactivity, and I'm 
 pleasantly surprised that we now have string interpolation 
 (sort of) in the language.

 The issue I'm having is with Visual Studio Code. I'm getting a 
 red squiggle under the entire expression with a nonsensical 
 error message, when in reality the code is fine and compiling 
 fine.

 [screenshot](https://imgur.com/a/Q8dTRFk)

 Here are the D related extensions I have installed:

  - D Programming Language (code-d) by WebFreak
  - d by colinkaopu
  - d-code by tonyjewel
  - C/C++ Extension Pack by Microsoft
  - CodeLLDB by Vadim Chugunov

 Has anyone encountered this issue? I'm also open to suggestions 
 for other tooling options if there's something better than VS 
 Code for D programming in Windows.

 Cheers!
 Arredondo.
I encountered this also, it boils down to this: https://github.com/dlang-community/libdparse/pull/510 I tried to have a go, seemed a bit beyond me, but I'll try again if I have the chance to get something going. Thanks, Jordan
Feb 23
parent Arredondo <arm.plus gmail.com> writes:
On Sunday, 23 February 2025 at 20:16:27 UTC, Jordan Wilson wrote:
 https://github.com/dlang-community/libdparse/pull/510
Thanks for that, I was surprised that I didn't find anything but turns out I was looking at the issues instead of the pull requests. Hopefully it gets merged soon. Cheers! Arredondo.
Feb 23