toradex / vscode-torizon-templates

VS Code Torizon Integrated Development Environment Templates
MIT License
14 stars 20 forks source link

Error with task try-update-template and try-update-template-accepting-all #173

Closed rudhi31 closed 6 months ago

rudhi31 commented 6 months ago

I get this error when I try the try-update-template task and also try-update-template-accepting-all task: Get-Content: /home/rudhi/Toradex/IDE_projects/TestMonoProject/.conf/projectUpdater.ps1:69:17 Line | 69 | $templateName = Get-Content $projectFolder/.conf/.template | ~~~~~~~~~~ | Cannot find path '/home/rudhi/Toradex/IDE_projects/TestMonoProject/.conf/.template' because it does not exist.

I have VSCode version 1.85.2 and Torizon IDE version 2.4.0.

microhobby commented 6 months ago

Hey @rudhi31 thanks to report. You are using an outdated VS Code version. Could you please update it and try again? Let me know.

rudhi31 commented 6 months ago

I just upgraded and I get the same error with version 1.86.0 as well.

microhobby commented 6 months ago

@rudhi31 after the project creation is kind of impossible to know which template was used if the file .template does not exist. So, please go to the .conf create a new text file called .template. The content of the file should be exactly the folder name used to create the project. You can see the folder names here: https://github.com/toradex/vscode-torizon-templates This will solve an already-created project.

What I need to know from you is if, after the VS Code update, you could reproduce with a new project created.

microhobby commented 6 months ago

an R&D member team was able to reproduce this, and end up that the issue is from the VS Code Extension side, not in the templates side.