AL icon indicating copy to clipboard operation
AL copied to clipboard

No task runner configured when trying to build.

Open DavidRoys opened this issue 9 years ago • 8 comments

Created VM using http://aka.ms/navdeveloperpreview.

Logon to server and run Visual Studio Code from shortcut on desktop.

Open folder C:\Users\vmadmin\Documents\AL\Samples\HelloWorld

Press Ctr+Shift+B to build.

Get Info message: No task runner configured.

I see there is an option to configure a task runner but I have no idea which one I should select.

DavidRoys avatar Dec 27 '16 20:12 DavidRoys

OK I fixed this with some trial and error. In VS Code select the option to show extensions, then click the menu button (...) and choose Install from VSIX. Select: C:\DEMO\New Developer Experience\al-0.1.5449.vsix

No idea why the extension was not automatically added when the VM was initialised, but at least it's working now.

DavidRoys avatar Dec 28 '16 01:12 DavidRoys

David could you send me the installation status (c:\demo\status.txt) from this machine? This can maybe tell me why the .vsix installation wasn't done during initialization. Thanks.

freddydk avatar Dec 28 '16 06:12 freddydk

Here's the file...

status.txt

DavidRoys avatar Dec 28 '16 20:12 DavidRoys

Thanks David Did you run any of the scripts manually? It seems like the initialization was complete at 8:12PM and the installation restarted at 1:16AM - and during the second run, the .vsix installation failed. And it also re-started a 3rd time. Can you check whether there is a scheduled task in the Task Scheduler, which starts initialization every time the machine boots? The Task should be removed upon successful installation of everything - but it seems like it hasn't happened.

freddydk avatar Dec 28 '16 20:12 freddydk

Just created a new instance - and indeed, the Task in the Task Scheduler is not deleted, but the folder c:\demo\install is deleted, so the task doesn't do anything. Somehow that folder has not been deleted on your instance, which means that everytime your machine is rebooted, something goes wrong. I would delete the instance and create a new one.

freddydk avatar Dec 28 '16 20:12 freddydk

I will try that. I notice that the machine will also restart without warning. I tried to turn off auto updates (which is the only change I made on the VM) but that didn't stop it.

DavidRoys avatar Dec 28 '16 20:12 DavidRoys

Yeah - I am afraid that the restart is at the end of the initialization script (which then starts on reboot), you have ended up in a never-ending reboot circle, sorry.

freddydk avatar Dec 28 '16 20:12 freddydk

OK. This time I gave the VM plenty of time to "finish cooking" before trying to connect and everyone seemed to be working fine when I eventually connected. I tend to stop the machine between sessions in order to preserve my Azure credit. I'm wondering if I had previously stopped the VM before it had finished running the setup. I'll post another comment if I get anything weird on this new one. Cheers.

DavidRoys avatar Dec 29 '16 19:12 DavidRoys