Comments (12)
@BW-PA thanks for the explanation - will investigate that.
from al-go.
On the original error (@ingebruvik, @BW-PA and @gunnargestsson) in this issue, v1.2 of AL-Go will spawn a new PowerShell window elevated when trying to run from VS Code - instead of using the VS Code runner.
on @BusinessCentralGeek - the localDevEnv now includes a text:
NOTE: You need to have Docker installed, configured and be able to create Business Central containers for this to work.
If this fails, you can setup a cloud based development environment by running cloudDevEnv.ps1
and I am also working on supporting ACIs (Azure Container Instances) and Azure VMs for people having problems running docker on their machine. Unfortunately, we are seeing an increasingly number of problems with defender and Windows 10 (even some Windows 11).
from al-go.
Could you try to run:
Import-Module Microsoft.PowerShell.Archive
on your machine?
Which error is returned?
Thanks
from al-go.
In the end, there is something wrong with the machine - or some module installed, which prevents Expand-Archive to run.
You can also download and install 7zip (from https://www.7-zip.org/download.html), then the code will bypass Expand-Archive (and be faster).
from al-go.
I get no error when i run the Import-Module Microsoft.PowerShell.Archive command.
I will try to download and install 7zip and see what happens then.
from al-go.
I encountered the same error when running localDevEnv.ps1
Expand-7zipArchive : The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module could not be
loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.
When I run Import-Module Microsoft.PowerShell.Archive I get the following error
Import-LocalizedData : Cannot find the Windows PowerShell data file 'ArchiveResources.psd1' in directory
'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\en-GB\', or in any parent culture directories.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:28 char:1
+ Import-LocalizedData LocalizedData -filename ArchiveResources
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\WINDOWS\syst...eResources.psd1:String) [Import-LocalizedData], PSInvalidOperationExcep
tion
+ FullyQualifiedErrorId : ImportLocalizedData,Microsoft.PowerShell.Commands.ImportLocalizedData
I have 7zip installed
from al-go.
Interestingly, when I run localDevEnv.ps1 within a standalone powershell window I don't get the error and it uses 7zip
So it seems the error only occurs when running localDevEnv.ps1 from within VSCode integrated powershell terminal like is shown in the scenario steps screenshots
from al-go.
Same here, works in Powershell but not in the terminal section of VS Code.
from al-go.
Hi, I can´t get pass 'Removing BcContainerHelper' step. Tried from VSCode terminal and from PowerShell with no luck. The image is pulled but the problem is building the container. Tried running 'uninstall-module bccontainerhelper' before the scipt but with no luck.
from al-go.
That seems to be a local problem - a restart of the host will probably solve this.
from al-go.
Thanks for the quick reply. I´ve already restarted the machine several times, also reinstalled docker. When the error occurs docker wouldn´t start and need to uninstall it again every time it fails to create the container.
With this type of scripts I have no problem and the container works fine:
I believe "driver "windowsfilter" failed to remove root
filesystem: failed to detach VHD: failed to detach virtual disk: The device is not ready.: rename" is the problem but have no clue on how to solve it.
Some more info if it helps:
from al-go.
After reading this thread https://github.com/microsoft/navcontainerhelper/issues/2086
I could finally create it by turning off Windows Defender antivirus... At last..., I should have read the thread and try it sooner.
from al-go.
Related Issues (20)
- Duplicate workflow runs HOT 3
- Error with Environment Secrets. HOT 4
- Build and deploy linked Azure Functions - similar idea to the support of PowerPlatform solution
- System.NullReferenceException: Object reference not set to an instance of an object. HOT 2
- DeployToXXXX_QA fails with error: Environment URL '' is not a valid http(s) URL, so it will not be shown as a link in the workflow graph. HOT 3
- Next Major Pipelines Failing Due to Missing 'Newtonsoft.Json.dll HOT 5
- Dependency on third party app HOT 2
- Release action fails due to: Bad Request. HTTP Status Code: 400 - HTTP Error Message: The specified block list is invalid HOT 7
- Action is failing because of dependency to Microsoft Test App "Tests-SCM" / Run Microsoft Test in Pipeline
- Typo in workshop ContinuousDeployment.md HOT 3
- Latest Preview fails with "No apps to publish" HOT 6
- [Feature request] Deploy to environment - next minor/major version HOT 1
- {INSIDERSASTOKEN} HOT 2
- Create Online Dev. Environment for [main / .] HOT 3
- LicenseFileUrl HOT 3
- Signed PTE HOT 13
- Code Sign Certificate no more can be exported HOT 10
- Cannot build / install app after force-abort a debug-session during Test with AutoCommit HOT 2
- Accessing GitHub Environment Variables in DeployToCustom Scenarios for PowerShell Scripts HOT 5
- AppSource App Licensing Control HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from al-go.