Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening page designer fails #23

Open
SimonOfHH opened this issue Mar 3, 2021 · 5 comments
Open

Opening page designer fails #23

SimonOfHH opened this issue Mar 3, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@SimonOfHH
Copy link

Hi @martonsagi

Used version: v0.9.868

I'm having troubles using the page designer (both on existing objects and on newly created ones). If I click on any page in the "object designer" it fails with below error message.

image

The same happens when I'm using the "New" --> "Page" action from the main window:

image

I tested it in an existing workspace and on a newly created one (just used "AL: Go" for a blank app).

Are there any debug-information I can share to help you find the problem?

Cheers
Simon

@martonsagi martonsagi self-assigned this Mar 3, 2021
@martonsagi martonsagi added the bug Something isn't working label Mar 3, 2021
@martonsagi
Copy link
Contributor

Can you send me the output from the Output Window / AL Studio section?
Mostly the recent translation manager updates caused some regressions on Page designer. Do you have the generated xlf file in the workspace or it's the state before the first compilation?

@SimonOfHH
Copy link
Author

Sorry for not being quicker - I didn't expect such a fast response 😅

Here is the output

[AL Studio][2021-03-03T13:56:40.376Z][Debug]: dbug: Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher[1]
      Received hub invocation: InvocationMessage { InvocationId: "11", Target: "HasValidLicense", Arguments: [  ], StreamIds: [  ] }.

[AL Studio][2021-03-03T13:56:41.185Z][Debug]: dbug: Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher[1]
      Received hub invocation: InvocationMessage { InvocationId: "12", Target: "GetSettings", Arguments: [  ], StreamIds: [  ] }.

[AL Studio][2021-03-03T13:56:41.253Z][Debug]: dbug: Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher[1]
      Received hub invocation: InvocationMessage { InvocationId: "13", Target: "QueryProperties", Arguments: [ ALObjectDesigner.Library.SymbolData ], StreamIds: [  ] }.

[AL Studio][2021-03-03T13:56:41.261Z][Debug]: dbug: Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher[1]
      Received hub invocation: InvocationMessage { InvocationId: "14", Target: "QueryPageDesign", Arguments: [ ALObjectDesigner.Library.SymbolData ], StreamIds: [  ] }.

[AL Studio][2021-03-03T13:56:41.436Z][Debug]: fail: Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher[8]
      Failed to invoke hub method 'QueryPageDesign'.
      System.ArgumentNullException: Value cannot be null. (Parameter 'source')
         at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
         at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
         at ALObjectParser.Pro.Converters.DesignConverterService.GetTranslationEntries(IEnumerable`1 filter)
         at ALObjectParser.Pro.Converters.DesignConverterService.UpdatePageDesign(ALPage page)
         at ALStudio.Server.Services.ALObjectService.GetPageDesign(SymbolData info, Boolean skipSourceTable, ALTable parentTable)
         at ALStudio.Server.ALStudioHub.QueryPageDesign(SymbolData info)
         at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.ExecuteMethod(ObjectMethodExecutor methodExecutor, Hub hub, Object[] arguments)
         at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.<>c__DisplayClass16_0.<<Invoke>g__ExecuteInvocation|0>d.MoveNext()

@SimonOfHH
Copy link
Author

Oh, and I don't have a translation file in that workspace. It's really just a Table.al-file and the app.json basically. Also I didn't build the project before I tested, but the result is the same even if I did build it before trying to access the designer.

@SimonOfHH
Copy link
Author

And the next answer: it was a good hint with the translation file 😅 As soon as I activate the feature and generate the Xliff the Designer works 👍

So the problem only comes up, when translations are not active.

@martonsagi
Copy link
Contributor

Thanks for the update. OK, so this is the same bug I'm working on. It'll be fixed this week (before BCBeerinar 😀)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants