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

No support for arrays with custom types #3

Closed
Aryan807 opened this issue Mar 22, 2024 · 2 comments
Closed

No support for arrays with custom types #3

Aryan807 opened this issue Mar 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Aryan807
Copy link
Contributor

Aryan807 commented Mar 22, 2024

The parser does not seem to support arrays of types

Example: the following code results in error

Type test
    Field testVar%
    Field testString$
    Field Var%[2]
End Type

Dim mytest.test(2)

mytest(2) = new test

mytest(2)\testVar = 2
mytest(2)\testString = "Test String"

Print(mytest(2)\testVar)
Print(mytest(2)\testString)
@denesfilotas denesfilotas added the bug Something isn't working label Mar 22, 2024
@denesfilotas
Copy link
Owner

Hi!

Thanks for the issue. I rarely use arrays with dim, so I didn't really notice the bug. Looks like it was an easy fix.

The update should be available on vscode marketplace. Feel free to let me know if there are any more bugs like this.

ps I also noticed that if mytest was a function that returns a variable with type test, it would not possible to use the same simple expression syntax, e.g. Print(mytest(2)\testString) would result in a syntax error. Interesting!

@Aryan807
Copy link
Contributor Author

Aryan807 commented Mar 23, 2024

Thanks for the quick reponse.

Unfortunately, our project still doesn't work.
It seems I have found another issue: nested Includes don't work.

Say for example I made a file "test.bb" referencing "folder/test1.bb" in a folder "folder" and the latter file referencing "folder/test2.bb" then I get error in "folder/test1.bb" that test2.bb was not found. "test.bb" works fine though.

image

This issue was not present in v0.4.x releases

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