AL icon indicating copy to clipboard operation
AL copied to clipboard

appSyntax.json Warning message?

Open GreatScott000 opened this issue 7 years ago • 11 comments

All of a sudden today I have this warning message when I start VS Code. Where is this coming from?

It seems to only come up if I have app.json (1 or more as I have 6 extensions in my workspace), close VS Code with app.json open (unmodified) in the editor and then re-open VS Code. It also has appeared when I do a build (Ctrl+Shift+B) with an app.json open.

FYI, VS Code 1.33 was installed today.

String is not a URI: URI with a scheme is expected.

{ "resource": "/c:/Users/todd.scott/.vscode/extensions/ms-dynamics-smb.al-3.0.115791/syntaxes/appSyntax.json", "owner": "generated_diagnostic_collection_name#0", "severity": 4, "message": "String is not a URI: URI with a scheme is expected.", "startLineNumber": 2, "startColumn": 11, "endLineNumber": 2, "endColumn": 44 }

VS Code Information

Version: 1.33.0 (user setup) Commit: 0dd516dd412d42323fc3464531b1c715d51c4c1a Date: 2019-04-04T15:14:28.026Z Electron: 3.1.6 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.17763

AL Language Information

Name: AL Language Id: ms-dynamics-smb.al Description: AL development tools for Dynamics 365 Business Central Version: 3.0.115791 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al

GreatScott000 avatar Apr 05 '19 13:04 GreatScott000

Hi @GreatScott000, thanks for filing this issue. This seems to be a VS Code issue, but we will further investigate and determine how to proceed.

ghost avatar Apr 05 '19 15:04 ghost

I had the same problem when I had 2 launch specifications. When I removed one of them it works. Just tried.

konysh avatar Apr 08 '19 05:04 konysh

Same issue here image Freshly updated Docker image, freshly updated navcontainerhelper, and installed the vsix from the container.

F5 or Ctrl+F5 are not responding. It builds the app file, but it seems to just ignore the publish command. The 'compilation started' flashes across the output window and then it blacks out, and then nothing further happens.

VSCode info: Version: 1.33.1 (system setup) Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8 Date: 2019-04-11T08:27:14.102Z Electron: 3.1.6 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.14393

AL version (from the vsix in the container) image

BC info: 14.0.29530.29573 + Application 31259 (GB Dynamics NAV 14.0)

TheDenSter avatar Apr 12 '19 09:04 TheDenSter

Same here guys. Try to publish my 'old' ;-) BC130 apps to a brand new BC140 instance. AL version: 3.0.106655 BC version: platform 14.0.29530.0 + application 29537 (NL Dynamics NAV 14.0)

michielhageman avatar Apr 13 '19 07:04 michielhageman

I am getting the same error with a new never published extension for NAV 2018 CU10 - AL 0.12.17720. The id is a GUID, but the error implies it is expecting a web address.

davmac1 avatar Apr 15 '19 22:04 davmac1

Getting this error with an existing extension that was previously OK before VS Code 1.33.0 was installed. I'm publishing to a local database using Windows authentication. The error only appears if you open the app.json file so you can workaround by saving app.json, then restart VS Code and make your AL changes without touching app.json again.

Found that will still publish the extension despite this message but will not open the client (launch.json error) - which means that you can't use the debugger!!!

MajorBarf avatar Apr 16 '19 13:04 MajorBarf

Issue continues to occur on the lastest public versions of VS Code (1.34) and AL Extension 3.0.1.126610

GreatScott000 avatar May 21 '19 07:05 GreatScott000

I am using VS code 1.35 and the issue still seems to be happening.

bbrown5962 avatar Jun 06 '19 11:06 bbrown5962

Same here. Any info when will this be fixed?

tinfister avatar Jun 07 '19 06:06 tinfister

You can get around the issue by putting any valid URI in the "id" field in the appsyntax.json file. I simply copied the value from the "$schema" field into the "id" field and saved the file. The extension then builds without error, publishes and launches the browser.

DEDhead avatar Jun 21 '19 22:06 DEDhead

This will be fixed for the Fall 2019 release.

atoader avatar Aug 09 '19 11:08 atoader