Giter Site home page Giter Site logo

Comments (6)

dannoe avatar dannoe commented on June 18, 2024 1

Just out of curiosity: When is the warning AL1080 generated?

This diagnostic is raised when you use the resourceExposurePolicies property in your app.json file and have allowDebugging set to true while having includeSourceInSymbolFile set to false. This can be reproduced with the example app.json from the original issue description.

See also: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/diagnostics/diagnostic-al1080

And "applyToDevExtension" must be set to true. I've never seen this warning and we use the same settings (except applyToDevExtension).

Can you try to put "suppressWarnings": ["AL1080"] in your app.json?

I can, but that is not what the issue is about and I would rather not apply such a change to tens or hundred of repositories/apps [...]

I was just trying to give the Microsoft guys more information on what might be causing this. I just tested it and suppressWarnings doesn't help either.

from al.

rvanbekkum avatar rvanbekkum commented on June 18, 2024

It looks like there has been a recent change somewhere and now compiler diagnostics that used to be only visible in the OUTPUT tab of VS Code are now also visible in the Problems tab.
This would not be a problem for this diagnostic if we had a proper way to suppress it.

from al.

dannoe avatar dannoe commented on June 18, 2024

Just out of curiosity: When is the warning AL1080 generated?

Can you try to put "suppressWarnings": ["AL1080"] in your app.json?

from al.

rvanbekkum avatar rvanbekkum commented on June 18, 2024

Just out of curiosity: When is the warning AL1080 generated?

This diagnostic is raised when you use the resourceExposurePolicies property in your app.json file and have allowDebugging set to true while having includeSourceInSymbolFile set to false.
This can be reproduced with the example app.json from the original issue description.

See also: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/diagnostics/diagnostic-al1080

Can you try to put "suppressWarnings": ["AL1080"] in your app.json?

I can, but that is not what the issue is about and I would rather not apply such a change to tens or hundred of repositories/apps to avoid it from showing up. With this issue I would like to point out a regression in how/where this diagnostic is raised.
By further investigation I found that with previous versions of ALC this diagnostic would only be shown in the OUTPUT tab in Visual Studio Code, but with the latest versions of ALC this behaviour has changed and diagnostics that would previously only be shown in the OUTPUT tab now also seem to be shown as diagnostics on the app.json file.
(Sidenote: This also happens for diagnostics that are unrelated to the app.json file though.)

from al.

BazookaMusic avatar BazookaMusic commented on June 18, 2024

There was a bug where these diagnostics were not being emitted to the problems window and it was fixed. Unfortunately, what seems to not have been fixed is that they are not suppressed properly. Thanks for reporting this

from al.

rvanbekkum avatar rvanbekkum commented on June 18, 2024

Thanks for the feedback. ๐Ÿ˜Š

from al.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.