AL icon indicating copy to clipboard operation
AL copied to clipboard

Errors during publishing / installing an extension in VS Code: "A task was canceled"

Open MaKnauer opened this issue 9 years ago • 5 comments

In some cases, although the compiler in VS Code shows no error, an extension can not be published or installed. Currently there is only a generic error message "A Task was canceled". When you take a look in the event log, or use the publish / install powershell methods, a more precise error is shown. E.g license issues, or callstacks...

It would be nice if you could show these errors in VS Code as well.

MaKnauer avatar Nov 27 '17 13:11 MaKnauer

@StanislawStempin any update on this?

pmohanakrishna avatar Jan 11 '18 12:01 pmohanakrishna

We believe that this should have been fixed on the latest version of AL Language (0.15) and recent VS Code versions (1.21+). Please comment on this issue if you are still running into a problem

You will still not see call stacks in VS Code but errors about duplicate IDs, duplicate extension, license problems etc. will all be shown in VS Code.

StanislawStempin avatar Apr 09 '18 09:04 StanislawStempin

I am receiving the same error message but there are no events in the application event log related to it AL. I start a my extension in VS Code (F5 or Ctrl+F5, doesn't matter) and after an extended period of time (several minutes), the Error: A task was canceled. message appears.

The default AL Project (Hello World) works so that implies that it is a problem my extension but I have no where to start looking without some feedback from the system.

This is on premise using AL version 0.12.17720 (NAV 2018 CU04 build 21441).

Thoughts?

GreatScott000 avatar Apr 17 '18 08:04 GreatScott000

For NAV 2018 issues please contact our Support team.

StanislawStempin avatar Apr 17 '18 09:04 StanislawStempin

So how do I do this without using up my support incidents or having to pay for one?

GreatScott000 avatar Apr 17 '18 09:04 GreatScott000