[bug] #707

Closed
opened 2024-02-25 17:08:40 +00:00 by Cedric · 4 comments

Your setup

From source

Extra details

Ubuntu jammy & lunar

Version

latest stable

PostgreSQL version

14

What were you trying to do?

I'm trying to upgrade my install of akkoma to latest and I'm getting a compile error with latest release. I'm using docker, but I suspectthe same will apply to normal source installs.

What did you expect to happen?

Akkoma compiles.

What actually happened?

==> calendar
Compiling 18 files (.ex)
warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords.

This error happens when you have function calls without parentheses inside keywords. For example:

function(arg, one: nested_call a, b, c)
function(arg, one: if expr, do: :this, else: :that)

In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses:

function(arg, one: if(expr, do: :this, else: :that))
function(arg, one: nested_call(a, b, c))

Ambiguity found at:
lib/calendar/strftime.ex:167

warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords.

This error happens when you have function calls without parentheses inside keywords. For example:

function(arg, one: nested_call a, b, c)
function(arg, one: if expr, do: :this, else: :that)

In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses:

function(arg, one: if(expr, do: :this, else: :that))
function(arg, one: nested_call(a, b, c))

Ambiguity found at:
lib/calendar/strftime.ex:168

warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords.

This error happens when you have function calls without parentheses inside keywords. For example:

function(arg, one: nested_call a, b, c)
function(arg, one: if expr, do: :this, else: :that)

In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses:

function(arg, one: if(expr, do: :this, else: :that))
function(arg, one: nested_call(a, b, c))

Ambiguity found at:
lib/calendar/strftime.ex:169

I'm not able to fix the error. Has anyone got that error too?

I've tried with previous installation of akkoma (now broken), clean installations of ubuntu jammy and lunar. All now have the same error.

Logs

==> calendar
Compiling 18 files (.ex)
warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords.

This error happens when you have function calls without parentheses inside keywords. For example:

    function(arg, one: nested_call a, b, c)
    function(arg, one: if expr, do: :this, else: :that)

In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses:

    function(arg, one: if(expr, do: :this, else: :that))
    function(arg, one: nested_call(a, b, c))

Ambiguity found at:
  lib/calendar/strftime.ex:167

warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords.

This error happens when you have function calls without parentheses inside keywords. For example:

    function(arg, one: nested_call a, b, c)
    function(arg, one: if expr, do: :this, else: :that)

In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses:

    function(arg, one: if(expr, do: :this, else: :that))
    function(arg, one: nested_call(a, b, c))

Ambiguity found at:
  lib/calendar/strftime.ex:168

warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords.

This error happens when you have function calls without parentheses inside keywords. For example:

    function(arg, one: nested_call a, b, c)
    function(arg, one: if expr, do: :this, else: :that)

In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses:

    function(arg, one: if(expr, do: :this, else: :that))
    function(arg, one: nested_call(a, b, c))

Ambiguity found at:
  lib/calendar/strftime.ex:169

I'm not able to fix the error. Has anyone got that error too?

I've tried with previous installation of akkoma (now broken), clean installations of ubuntu jammy and lunar. All now have the same error.

Severity

I cannot use the software

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup From source ### Extra details Ubuntu jammy & lunar ### Version latest stable ### PostgreSQL version 14 ### What were you trying to do? I'm trying to upgrade my install of akkoma to latest and I'm getting a compile error with latest release. I'm using docker, but I suspectthe same will apply to normal source installs. ### What did you expect to happen? Akkoma compiles. ### What actually happened? ==> calendar Compiling 18 files (.ex) warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords. This error happens when you have function calls without parentheses inside keywords. For example: function(arg, one: nested_call a, b, c) function(arg, one: if expr, do: :this, else: :that) In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses: function(arg, one: if(expr, do: :this, else: :that)) function(arg, one: nested_call(a, b, c)) Ambiguity found at: lib/calendar/strftime.ex:167 warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords. This error happens when you have function calls without parentheses inside keywords. For example: function(arg, one: nested_call a, b, c) function(arg, one: if expr, do: :this, else: :that) In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses: function(arg, one: if(expr, do: :this, else: :that)) function(arg, one: nested_call(a, b, c)) Ambiguity found at: lib/calendar/strftime.ex:168 warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords. This error happens when you have function calls without parentheses inside keywords. For example: function(arg, one: nested_call a, b, c) function(arg, one: if expr, do: :this, else: :that) In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses: function(arg, one: if(expr, do: :this, else: :that)) function(arg, one: nested_call(a, b, c)) Ambiguity found at: lib/calendar/strftime.ex:169 I'm not able to fix the error. Has anyone got that error too? I've tried with previous installation of akkoma (now broken), clean installations of ubuntu jammy and lunar. All now have the same error. ### Logs ```shell ==> calendar Compiling 18 files (.ex) warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords. This error happens when you have function calls without parentheses inside keywords. For example: function(arg, one: nested_call a, b, c) function(arg, one: if expr, do: :this, else: :that) In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses: function(arg, one: if(expr, do: :this, else: :that)) function(arg, one: nested_call(a, b, c)) Ambiguity found at: lib/calendar/strftime.ex:167 warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords. This error happens when you have function calls without parentheses inside keywords. For example: function(arg, one: nested_call a, b, c) function(arg, one: if expr, do: :this, else: :that) In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses: function(arg, one: if(expr, do: :this, else: :that)) function(arg, one: nested_call(a, b, c)) Ambiguity found at: lib/calendar/strftime.ex:168 warning: missing parentheses for expression following "do:" keyword. Parentheses are required to solve ambiguity inside keywords. This error happens when you have function calls without parentheses inside keywords. For example: function(arg, one: nested_call a, b, c) function(arg, one: if expr, do: :this, else: :that) In the examples above, we don't know if the arguments "b" and "c" apply to the function "function" or "nested_call". Or if the keywords "do" and "else" apply to the function "function" or "if". You can solve this by explicitly adding parentheses: function(arg, one: if(expr, do: :this, else: :that)) function(arg, one: nested_call(a, b, c)) Ambiguity found at: lib/calendar/strftime.ex:169 I'm not able to fix the error. Has anyone got that error too? I've tried with previous installation of akkoma (now broken), clean installations of ubuntu jammy and lunar. All now have the same error. ``` ### Severity I cannot use the software ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
Cedric added the
bug
label 2024-02-25 17:08:40 +00:00

those are just warnings, I do not believe they will cause the compilation to cancel

given that the I personally compile from source, I know it does compile

those are just warnings, I do not believe they will cause the compilation to cancel given that the I personally compile from source, I know it does compile
Author

Yes you're right, it eventually built. But starting the docker process was generating crash dump. So I had to start again from scratch. It's now running, but admin-fe doesn't show any options, which is a different issue.

Yes you're right, it eventually built. But starting the docker process was generating crash dump. So I had to start again from scratch. It's now running, but admin-fe doesn't show any options, which is a different issue.
Contributor

admin-fe doesn't show any options

This has been fixed with the latest stable on admin-fe. You may want to run mix pleroma.frontend install admin-fe --ref stable

> admin-fe doesn't show any options This has been fixed with the latest `stable` on admin-fe. You may want to run `mix pleroma.frontend install admin-fe --ref stable`
Author

Hi there,

Thanks. I managed to fix that problem yesterday by installing the develop version.

Thanks.

Hi there, Thanks. I managed to fix that problem yesterday by installing the develop version. Thanks.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#707
No description provided.