AL icon indicating copy to clipboard operation
AL copied to clipboard

Extension

Open stanuj opened this issue 9 years ago • 10 comments

Hello,

I'm getting an error while pressing F5 i.e. error AL1022: A package with publisher 'Microsoft', name 'System', and a version compatible with '10.0.0.0' could not be found in the package cache folder 'e:\Nav Extension Example\New Folder.alpackages' Error: The package could not be created.

My app.json file is: { "id": "e2c4c4be-87eb-46ea-af54-55ca01e861e2", "name": "New Extension", "publisher": "stanuj", "brief": "", "description": "", "version": "1.0.0.0", "compatibilityId": "1.0.0.0", "privacyStatement": "", "EULA": "", "help": "", "url": "", "logo": "", "capabilities": [], "dependencies": [], "screenshots": [], "platform": "10.0.0.0", "application": { "version": "10.0.0.0", "locale": "W1" }, "idRange": { "from": 50100, "to": 50149 } }

My launch.json file is: { "version": "0.2.0", "configurations": [

	{
		"type": "al",
		"request": "launch",
		"name": "stanuj",
		"server": "http://localhost:7046/DynamicsNAV100",
		"serverInstance": "DynamicsNAV100",
		"tenant": "default",
		"authentication": "Windows",
		"startupObjectId": 22
	}
]

}

Please help me to sort out this problem. Thanks in advance.

stanuj avatar Oct 11 '17 09:10 stanuj

What happens if you choose "AL: Download symbols" from the Command Palette?

What version of the server are running? The latest version contains symbols with version 11.0.0.0.

esbenk avatar Oct 11 '17 18:10 esbenk

I got no errors while downloading reference symbols.

I'm also using latest version with 11.0.0.0, to remove error I only changed it to 10.0.0.0 Please look below image:

vsc information

stanuj avatar Oct 12 '17 05:10 stanuj

What is the content of

'e:\Nav Extension Example\New Folder.alpackages'

esbenk avatar Oct 12 '17 06:10 esbenk

contents in this folder are:

vsc information2

stanuj avatar Oct 12 '17 06:10 stanuj

It looks like we are constructing a path without the last backslash. Can you retry in a folder structure that doesn't contain spaces?

StanislawStempin avatar Oct 12 '17 07:10 StanislawStempin

Hi StanislawStempin,

It contains last backslash after New Folder like 'e:\Nav Extension Example\New Folder.alpackages', while pasting error, unfortunately , it was deleted.

stanuj avatar Oct 12 '17 09:10 stanuj

How did you create the environment? Did you use aka.ms/navdeveloperpreview?

StanislawStempin avatar Oct 18 '17 09:10 StanislawStempin

Yes, i used aka.ms/navdeveloperpreview. I'm using VS Code to develop it.

stanuj avatar Oct 23 '17 07:10 stanuj

Are you still hitting this issue?

StanislawStempin avatar Jan 03 '18 14:01 StanislawStempin

No, this is solved. Thanks

stanuj avatar Jan 04 '18 06:01 stanuj