microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
748 stars 245 forks source link

AL extension cannot be used with the specified server #4387

Closed TheDenSter closed 5 years ago

TheDenSter commented 5 years ago

I refreshed my sandbox yesterday. When I hit Ctrl+F5 I get the following error message: image

VSCode says that the AL extension is the current version, but it seems that the sandbox container is on a newer runtime that the one that the extension supports. When will the AL extension be updated?

OldNavDog commented 5 years ago

I am having the exact same error all of a sudden. And have tried the same "solutions" as the DenSter, also to no avail...

judecot commented 5 years ago

If you don't have the lastest docker image, I think the solution is to pull it to be able to have access to the newer AL Language extension version, or to wait for vscode to download it automaticaly when the extension is released in the market

I had the same problem, solved by: Open a command prompt docker inspect yourContainer

Look for the VSIX key, copy the link of the vsix file and paste it in your browser.

You will download the newer version of the vsix you will to install in vscode. After reloading, you'll be able to give 2.2 in the runTime of your app.json

image

EDIT: According to the AL Language (installed from market place) > Settings > Install another version it is not currently available in the market place

image

qutreson commented 5 years ago

We are currently in the process of releasing a new version of the AL extension to the marketplace that will fix this issue. The one currently available does not work with servers that have been upgraded to CU2. The new AL version should be out soon, but in the meanwhile as @JulienDecottignies mentioned, you can use the AL extension from our docker images.

OldNavDog commented 5 years ago

So, we currently have an Extension with a Dependency (a Library) published on AppSource.

Does this mean that every time the Runtime changes, we have to Update our Extension(s) and Library(ies) to follow?

TheDenSter commented 5 years ago

I discovered later that when you use New-NavContainer, it shows you a link to the vsix as well image If you don't have the output of the command at hand, you can always point your browser to your container at port 8080 and it shows the file there as well image By the way, after I installed the extension from the vsix and disabled the marketplace version, the marketplace version actually disappeared altogether, and now there is no option to revert back to that one. Previously when I had to use the vsix, the marketplace was still available for me to enable. Anyway, not a big deal, and I am back working with the container :)