continue icon indicating copy to clipboard operation
continue copied to clipboard

Can't open backstage template files, i.e. skeleton\packages\${{ values.name }}.ts

Open fyyyyy opened this issue 2 years ago • 4 comments

Before submitting your bug report

Relevant environment info

- OS: WSL
- Continue: latest

Description

This naming convention is for backstage templates. https://backstage.io/docs/features/software-templates/ When editing a file named skeleton\packages\${{ values.name }}\index.ts following error message is in the logs.

IDE Protocol _receive_json timed out after 20 seconds. The message sent was: {'filepath': '....\skeleton\\packages\\${{ values.name }}\\src\\router\\index.ts'}

To reproduce

  1. create a file called ${{ values.name }}\index.ts
  2. try to /edit the file with continue
  3. error is thrown

Log output

IDE Protocol _receive_json timed out after 20 seconds. The message sent was: {'filepath': '....\skeleton\\packages\\${{ values.name }}\\src\\router\\index.ts'}

No response

fyyyyy avatar Oct 04 '23 20:10 fyyyyy

Thanks for sharing this, looking into it now

sestinj avatar Oct 04 '23 21:10 sestinj

I'm wondering if there's any part of the setup I'm missing. Here's what I'm trying so far, but unfortunately haven't reproduced:

  • Using VS Code on Windows WSL
  • In WSL, use touch \${{\ values.name\ }}\\index.ts to create the file with everything escaped properly
  • Type something in the file in VS Code
  • Save the file
  • Highlight the code, ctrl+shift+m, the request an edit

I also tried a folder "${{ values.name }}" with a file called "index.ts" instead of a file literally named "${{ values.name }}\index.ts"

sestinj avatar Oct 04 '23 22:10 sestinj

image

Hmm, to be more precise here is the exact folder structure for the index.ts

skeleton/packages/${{ values.name }}/src/index.ts

fyyyyy avatar Oct 04 '23 23:10 fyyyyy

I tried in native windows, it works fine there with the same folder structure. Did you install VScode inside WSL or are you connecting to a windows/vscode via the WSL extension like i do ? image

fyyyyy avatar Oct 04 '23 23:10 fyyyyy