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

Unable to load custom config files #536

Open
manoelpqueiroz opened this issue Jun 8, 2024 · 3 comments
Open

Unable to load custom config files #536

manoelpqueiroz opened this issue Jun 8, 2024 · 3 comments

Comments

@manoelpqueiroz
Copy link

Describe the bug

I am trying to load a custom layout, but always get the message: "couldn't load layout file / extra layers can only have [first, second, third, fourth, fifth]".

I understand the feature is experimental, but I have tried with one of the default layouts (in this case, pt.yaml under a different filename) and the message is still shown.

I have tested on two different models (a Galaxy Note8 and a Google Pixel 5a), with the same error.

Is there a way I can debug the error so I can provide better logs?

Smartphon
e (please complete the following information):

  • Device: Samsung Galaxy Note8

  • OS: Android 9, One UI 1.0

  • Version: 0.16.3

  • Device: Google Pixel 5a

  • OS: Android 14, GrapheneOS 2024060500

  • Version: 0.16.3

Additional context

For reference, below is the config for the modified version I attempted to load:

version: "2"
layers:
  default:
    sectors:
      right:
        parts:
          bottom:
            - lower_case: n
            - lower_case: m
            - lower_case: f
            - lower_case: "!"
              upper_case: "!!!"
          top:
            - lower_case: a
            - lower_case: v
            - lower_case: x
            - lower_case: "?"
              upper_case: "*"
      top:
        parts:
          right:
            - lower_case: r
            - lower_case: p
            - lower_case: q
            - lower_case: y
          left:
            - lower_case: s
            - lower_case: c
            - lower_case: g
            - lower_case: "'"
              upper_case: '"'
      left:
        parts:
          top:
            - lower_case: d
            - lower_case: t
            - lower_case: z
            - lower_case: .
              upper_case: "-"
          bottom:
            - lower_case: i
            - lower_case: h
            - lower_case: j
            - lower_case: ","
              upper_case: _
      bottom:
        parts:
          left:
            - lower_case: e
            - lower_case: l
            - lower_case: k
            - lower_case: "@"
              upper_case: "@gmail.com"
          right:
            - lower_case: o
            - lower_case: u
            - lower_case: b
            - lower_case: w
  extra_layers:
    first:
      sectors:
        right:
          parts:
            top:
              - lower_case: á
        left:
          parts:
            top:
              - null
              - lower_case: ç
            bottom:
              - lower_case: í
        bottom:
          parts:
            left:
              - lower_case: é
            right:
              - lower_case: ó
              - lower_case: ú
    second:
      sectors:
        right:
          parts:
            top:
              - lower_case: ã
        left:
          parts:
            bottom:
              - lower_case: ì
        bottom:
          parts:
            left:
              - lower_case: è
            right:
              - lower_case: õ
              - lower_case: ù
    third:
      sectors:
        right:
          parts:
            top:
              - lower_case: à
        bottom:
          parts:
            left:
              - lower_case: ê
            right:
              - lower_case: ò
    fourth:
      sectors:
        right:
          parts:
            top:
              - lower_case: â
        bottom:
          parts:
            left:
              - lower_case: 
                upper_case: ¢
            right:
              - lower_case: ô
@MaethorNaur
Copy link
Contributor

MaethorNaur commented Jun 10, 2024

Hi @manoelpqueiroz
You have the JSON schema available here: https://github.com/8VIM/8VIM.github.io/blob/main/schemas/versions/2.json or https://8vim.github.io/schemas/versions/2.json. Just be careful to use a tool compatible with the version 2012-12 of the JSON schema.

The error is coming from version: "2". Just remove that line and it should work.
Also with the new release, you can keep version: "2", you won't have an issue.

The JSON schema from version 0.16.3 does not allow the version property.
Since the new release, you can specify it (if omitted the version will be set to 2 automatically).
That version also introduces a new version: 2.1 (adding a new "hidden" layer).

Hopping I could help you :)

@manoelpqueiroz
Copy link
Author

@MaethorNaur, thank you for your clarification! I didn't know I was using an older version.

Before closing the issue, I would just like to know: the latest version published to F-Droid was 0.16.3, has something changed that made you stop publishing the newer versions over there?

@MaethorNaur
Copy link
Contributor

MaethorNaur commented Jun 26, 2024

Nope just long-release phases, sorry.
We now have a private F-droid for RCs/Pr versions (F-droid does not test/nightly system) if you want to try it out.
Here is the link.
All versions installed from that repo are independent (I.E. they won't interfere each other and are unique)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants