robotframework / RIDE

Test data editor for Robot Framework
Apache License 2.0
963 stars 379 forks source link

ValueError: No language with name '' found. #2734

Closed JenikaGo closed 6 months ago

JenikaGo commented 6 months ago

I'm having problems with my RIDE. getting this error when trying to run test cases [ ERROR ] Unexpected error: ValueError: No language with name '' found.

I have attached a screenshot of said error 2024-03-22_15h49_25

here are the current versions I'm using: RIDE -- v2.0.8.1 Python -- 3.9 robot framework -- 7.0

Thank you for your helpπŸ™‡β€β™€οΈ

HelioGuilherme66 commented 6 months ago

@JenikaGo I see the errors are coming from Robot Framework. Those will probably appear if you run the test from a command window/shell/terminal.

You probably have a Language: setting in your test case. You should try to comment that line with a #, and then try to open in RIDE. Note: RIDE 2.0.8.1 is not prepared to parse Language setting.

If you really want to use the Language: setting, then use it with a correct language defined. You can try the current development version, with that feature implemented.

JenikaGo commented 6 months ago

Thank you for your response.

Can you please lead me to where I can change the Language: setting? I wasn't encountering this problem before. This is the 1st time I've heard of the Language: setting

I have not encountered this error before. I only encountered it today after upgrading the RIDE from 2.0.8.1 to v2.1dev21 I changed my RIDE back to 2.0.8.1, but I'm still having this error. I haven't changed anything in my user keywords after upgrading RIDE, and it was working fine before the upgrade.

here is a screenshot of my test case 2024-03-22_19h00_52

HelioGuilherme66 commented 6 months ago

Well, you did wrote:

here are the current versions I'm using: RIDE -- v2.0.8.1

The first screen capture, was from the Run panel, with an error from Robot Framework (that may be caused by RIDE).

Now after using 2.1dev21 version, it may have set a value language in settings.cfg. With RIDE closed, you should edit that file and delete the line, or set to English. In Windows the file is at %APPDATA%\RobotFramework\ride\settings.cfg.

JenikaGo commented 6 months ago

I have deleted the lines with "Language" but I'm still getting the error.

Should I just uninstall everything, then re-install everything from scratch? 2024-03-22_20h47_51

HelioGuilherme66 commented 6 months ago

Well, I am a bit lost on this.

Make sure you don't have any instance of RIDE running. Close all windows (was there a language setting, you show 0 hits?)

Please run your test case in a new command window, with a similar command you would use in RIDE. For example:

cmd.exe
cd  "<path to your project>\OSHD-robot\Lifting Equipment"
robot -t NewExam-HappyPath eService\Examination.robot

If there are no errors similar than those you first shown, then robot is OK.

Try to start RIDE from that directory with only the test case file:

python -m robotide.__init__  eService\Examination.robot

Then Run that test case (by selecting checkbox).


If the problem still exists, then:

If the problem still exists, then Thank you for your persistence in using RIDE

JenikaGo commented 6 months ago

Before deleting "Language" settings.cfg dispayed 2 lines -- doc Language = None and UI Language = 'English'. I deleted both πŸ˜…

I ran my test using cmd, and it looks fine. 2024-03-22_23h55_38

I tried to start RIDE based on your instruction but I got this error instead 2024-03-23_00h03_04

Looks like I'll have to uninstall robot framework and re-install it again πŸ˜… Thank you for your patience in guiding me on this problemπŸ˜†

HelioGuilherme66 commented 6 months ago

Well, you did not cd to the directory of the project:

cd "\OSHD-robot\Lifting Equipment"

You can see the error message is about the wrong path to the file.

You can start RIDE normally and then open just that Examination.robot file. Then Run, and you should have the same failure as in command window. (no more language errors ;) )

JenikaGo commented 6 months ago

Thank you so much! πŸ™‡β€β™€οΈ I was able to finally run my test case in RIDE without language errors! πŸŽ‰

2024-03-23_13h02_51

2024-03-23_13h02_31

Do I need to do these steps every time I run a test case? or I should be able to use RIDE without any problems now? cmd.exe cd "<path to your project>\OSHD-robot\Lifting Equipment" robot -t NewExam-HappyPath eService\Examination.robot python -m robotide.__init__ eService\Examination.robot

HelioGuilherme66 commented 6 months ago

Do I need to do these steps every time I run a test case? or I should be able to use RIDE without any problems now?

No, of course not. The problem was solved by removing the setting language = None . This is something I need to fix, RIDE needs to ignore that setting, if not valid.

If you have the possibility, please use our Slack. We would troubleshoot this faster.

HelioGuilherme66 commented 6 months ago

Using development version 2.1dev21, added setting language = None from a file without the setting. This broke running tests in v2.0.8.1 (wierd).