robocorp / robotframework-lsp

Robocorp extensions for VS Code: Robocorp Code and RFW LSP
https://robocorp.com/docs/developer-tools/visual-studio-code
Apache License 2.0
200 stars 87 forks source link

"Mandatory argument missing: default" warning when using "Get from dictionary" #1027

Open nicolasbillamboz-flowbird opened 5 months ago

nicolasbillamboz-flowbird commented 5 months ago

Describe the bug After upgrading to roboframework 7.0, when I run the lint feature against a file containing Get from dictionary, I get the warning Mandatory argument missing: default

To Reproduce Run lint against the following file:

*** Settings ***
Library     Collections.py

*** Test Cases ***
Sandbox
    &{my_dict}=    Create dictionary    key=value
    ${my_value}=    Get from dictionary    ${my_dict}
    Log    ${my_value}

Expected behavior No warning should be reported

Versions:

nicolasbillamboz-flowbird commented 4 months ago

@fabioz is there any chance to get a new release with this fix, because it prevents us to migrate to RF7 peacefully?

fabioz commented 4 months ago

@nicolasbillamboz-flowbird unfortunately there are no plans to tackle this...

Robocorp is transitioning to be Python 1st (https://robocorp.com/blog/python-for-automation-as-code), so, while it'll still support Robot Framework in its platform (because it's a framework that runs on Python), it's no longer pushing forward to develop projects which target Robot Framework specifically (and that includes Robot Framework Language Server).

So, if you need this and are willing to make a PR then yes, it'll appear in a release, but otherwise that won't be supported unless someone else from the community steps up to implement that (note that PRs are still accepted and security issues will still be tackled at least until Jan/2025).

nicolasbillamboz-flowbird commented 4 months ago

This is a sad news for RF community. RFLS and related extension are the best tools in the RF ecosystem... Thanks for the reply.