Using ApolloX with TCB project (created from template), the item
is available, but it fails with the error
Copy-Item: /home/username/projectname/.conf/projectUpdater.ps1:59:1
Line |
59 | Copy-Item `
| ~~~~~~~~~~~
| Cannot find path '/home/username/.apollox/tcb/.conf/update.json' because it does not exist.
and it’s expected since the file ‘/home/username/.apollox/tcb/.conf/update.json’ doesn’t exist.
we should have it fixed for the next stable release. The May 2023 VS Code release was released today, and we are planning to follow these monthly release pattern also for our extension. So, we will test it based on the VS Code May 2023 before our release, should be ready next week.
Hi @matheus.tx
I’ve just tried the pre-release version 2.0.7 and I can give a feedback.
The original issue
Cannot find path '/home/username/.apollox/tcb/.conf/update.json' because it does not exist.
is fixed.
But now this error comes out
✅ always accept new
Copy-Item: /home/username/projectname/.conf/projectUpdater.ps1:167:1
Line |
167 | Copy-Item $Env:HOME/.apollox/$templateName/Dockerfile .
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path '/home/username/.apollox/tcb/Dockerfile' because it does not exist.
Hello @matheus.tx
I see that the latest release of ApolloX is 2.0.7, released on 16/6/2023.
On the issue tracker release 2.1.0 is referenced. I think that this is the next stable release you mentioned in your post.
Do you know when it will be released?
yeah, we had some internal setbacks for the last two weeks (internal training program), but we are on track to release the new version at the end of the next week. I will let you know.
Hi @matheus.tx
I saw on the marketplace that release 2.0.10 has been released.
I manually updated it in my WSL VS Code.
As I wrote in the past, for some unknown reasons, my VS Code in WSL is not able to see updates of Toradex extensions.
sorry for the delay, we are late with the stable release. This next pre-release should resolve this ticket, and it will already be added to the next stable. I will comment here and will close it as soon we release.
About:
We are following this closely, but we have had no further reports other than yours regarding this specific issue. But thanks to report anyway, we still following and asking our FAEs if someaone else is reporting it.
I recently updated the extension to 2.1.0. but this problem persists with the output:
Get-Content: /home/ha-01/GeopaxApp/.conf/projectUpdater.ps1:43:17
Line |
43 | $templateName = Get-Content $projectFolder/.conf/.template
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path '/home/ha-01/GeopaxApp/.conf/.template' because it does not exist.
* The terminal process "pwsh '/home/ha-01/GeopaxApp/.conf/projectUpdater.ps1', '/home/ha-01/GeopaxApp', 'GeopaxApp'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
could you please create another project from scratch and copy the changes for this new project? Probably the new project .conf/.template file will be created with success.
I created a new project but it still gives the same output:
Get-Content: /home/ha-01/testproj1/.conf/projectUpdater.ps1:43:17
Line |
43 | $templateName = Get-Content $projectFolder/.conf/.template
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path '/home/ha-01/testproj1/.conf/.template' because it does not exist.
* The terminal process "pwsh '/home/ha-01/testproj1/.conf/projectUpdater.ps1', '/home/ha-01/testproj1', 'testproj1'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
I wasn’t able to reproduce on my side .
Could you please do another test?
Please remove the templates repo folder:
rm -rf $HOME/.apollox
So, reload the VS Code Window (if it was already opened) and try to create the project again. Check if there is a .conf/.template file before you run the update task int he workspace created.
we made some changes on the TCB template and updater script. Could you please add the following to the your global settings.json? Press F1 or CTRL+SHIFT+P to open the command pallet and choose:
After saving the modifications, close and reopen VS Code.
Now the extension will get the template repository of the latest changes made in dev. Please try the update with these changes and let me know if they work for you.
[08-08 11:37:54.042] Checkout templates repo to dev OK
[08-08 11:37:54.968] Project templates updated
[08-08 11:37:54.969] Checking connected devices ...
After addition of the settings to the vscode settings.json, I restarted vscode. when I create a new project, the extension give me the above output. but still when I run the update task, it fails with the same error:
Get-Content: /home/ha-01/testproj2/.conf/projectUpdater.ps1:43:17
Line |
43 | $templateName = Get-Content $projectFolder/.conf/.template
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path '/home/ha-01/testproj2/.conf/.template' because it does not exist.
* The terminal process "pwsh '/home/ha-01/testproj2/.conf/projectUpdater.ps1', '/home/ha-01/testproj2', 'testproj2'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
thanks a lot for the tests. This behavior is weird. Can I ask you to make more one test? Please create the file manually, the .conf/.template. The .template must have the following content:
tcb
So, after that try to run the update.
Sorry for ask for so many test, but this is important to us to understand the behavior and fix it.
Thanks a lot!
It works. but stops at the following error (I just kept closing all the changes tabs. perhaps it is due to that?):
⚠️ project updater updated, running it again
✅ always accept new
Renaming file contents ...
/home/ha-01/GeopaxApp/.conf/tmp/.gitignore
/home/ha-01/GeopaxApp/.conf/tmp/.gitlab-ci.yml
/home/ha-01/GeopaxApp/.conf/tmp/build-torizoncore.yaml
/home/ha-01/GeopaxApp/.conf/tmp/tasks-next.json
/home/ha-01/GeopaxApp/.conf/tmp/tasks-next.json
✅ tasks.json
✅ common
Get-FileHash: /home/ha-01/GeopaxApp/.conf/projectUpdater.ps1:21:14
Line |
21 | $file2 = Get-FileHash $_file2
| ~~~~~~~~~~~~~~~~~~~~
| Cannot find path '/home/ha-01/GeopaxApp/.github/workflows/build-torizoncore.yaml' because it does not exist.
* The terminal process "pwsh '/home/ha-01/GeopaxApp/.conf/projectUpdater.ps1', '/home/ha-01/GeopaxApp', 'GeopaxApp'" terminated with exit code: 1.
yeah, so maybe the issue now is that the project is too old. But this is already a better result. I’m going to make some more modifications here to address these other issues. I will let you know.