You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugMalfunctions that should be fixed to comply with the expected behavioros: windowsIssues detected and reproducible only on Windowsprio-lowNice to haves, if we have time and aren't working on something else
Once we had that issue, but it was fixed. I suspect that you don't have defined the environment variables TEMP or TMP.
Other things you can experiment, is to change the launching command to: "C:\Program Files\Python38\python.exe" -c "from robotide import main; main()"
(This will open also a command window.)
***Once we had that issue, but it was fixed. I suspect that you don't have defined the environment variables TEMP or TMP. ***
My system has:
TEMP=C:\Users\jpeterson\AppData\Local\Temp
TMP= C:\Users\jpeterson\AppData\Local\Temp
First two entries in PATH are C:\Program Files\Python38 and C:\Program Files\Python38\Scripts
*** Other things you can experiment, is to change the launching command to:
"C:\Program Files\Python38\python.exe" -c "from robotide import main; main()" (This will open also a command window.) or "C:\Program Files\Python38\pythonw.exe" -m robotide.init ***`
The first command is what we have. Yes. It (annoyingly) opens a command prompt. (The command prompt does not always shut down when exiting RIDE)
I tried the 2nd and RIDE does not open.
After doing the 2nd and switching back, the prompt does not occur.
If I reinstall (the entire system) the error is back. (Some setting somewhere gets set after running #2!)
The problem occurs on all of our developer systems which are a mix of Win7 and Win10 (1803, 1809, and 1909) as well as our VM’s which are a mix of the same. 4 developer systems and 3 VM’s. The VM’s are “clean” Windows systems with only RFW/RIDE/AutoIt installed.
NOTE: Neither of these are stopping us from using RIDE. We simply set number of files to 0 and ignore the prompt.
Maybe I should note that this is all US Windows (en-US) with the default US localizations and such. Just in case by some odd coincidence that has an effect…
@CMM-Guru Please see if this change does fix the Issue, by installing from master.
I managed to force the error in Linux, by changing owner of *-ride.log in temp directory. Please double-check if there are no *-ride.log files owned by Administrator, or opened by some other applications or remote users (or, even possibly an anti-virus).
If not fixed, a possible workaround is to disable RIDE Log on %APPDATA%\RobotFramework\RIDE\settings.cfg, set _enabled = False:
@CMM-Guru I have found a way to reproduce the error message appearing, with:
cd %TMP%
ride 2>log-ride.log
This makes RIDE not being able to delete log-ride.log and the plugin is disabled. The normal error message is shown when a plugin failed to load (this is what I'll avoid to show in this case)
My environment is Windows 10, 1909, python 3.8.1, and:
robotframework 3.2.1
robotframework-ride 2.0b1.dev1
wxPython 4.1.0
Based on my comments on 2198, I'm concerned that after I exit RIDE (after saving files in RIDE) that the python task remains open even though RIDE closes.
Is it possible that there is either a missing "close file" after writing files and python is still hanging on to that file handle and won't let the process end? And because of this, it obviously doesn't release the log file either.
I'm thrilled that we won't have to deal with the error message. I'm concerned that there is an underlying problem causing the problem in the first place and that the message is simply a side-effect.
The error is only happening when RIDE starts, it tries to delete previous *-ride.log files. There are only three log files that RIDE produce, in %TMP% the *-ride.log and *-ride_parser.log (different plugins), and the Run log file, in a directory created for it.
Now I got this experiment for you to try, since you mentioned restricting the number of opened files (in the system?), I'd like you to try to start RIDE from the command window, passing a directory with tests and html files (like log.html or report.html), this will cause RIDE to log parsing errors in Parser Log tab. We will see if the same error happens.
Your previous comment. Could that also be why, when exiting RIDE (after saving a .robot file) that python itself would still be running in the background (and therefore holding control of the log file causing the error)? So, you fix when writing to stderr, in theory, may also fix the problem that the python process itself is not ending after exiting RIDE?
I'm also curious... per my observation of 2199, it appears that virtually all verification of issues is in linux. Does that imply that most people are not using RFW / RIDE in a Windows environment (which is required if you are using it to test Windows developments)?
I can see that issues like this could be treated tremendously differently between linux and Windows. And that verification in linux does not necessarily mean that it is valid in Windows due to O/S interaction differences...??? (If that is the case, I would be willing to do some basic testing of at least beta releases for you)
@CMM-Guru (First I'd like to know that you confirm the fix. Thanks.)
I think that most people uses RIDE on Windows, I prefer to use Linux.
As why the python process get's stuck, I don't know. This is not the first time it is reported, but more information should be found on the Internet.
Could you use the Slack #ride channel for us to talk on these things? We also now have the forum.robotframework.org, as alternative for people with Slack blocked.
bugMalfunctions that should be fixed to comply with the expected behavioros: windowsIssues detected and reproducible only on Windowsprio-lowNice to haves, if we have time and aren't working on something else
Activity
HelioGuilherme66 commentedon May 11, 2020
Once we had that issue, but it was fixed. I suspect that you don't have defined the environment variables
TEMPorTMP.Other things you can experiment, is to change the launching command to:
"C:\Program Files\Python38\python.exe" -c "from robotide import main; main()"(This will open also a command window.)
or
"C:\Program Files\Python38\pythonw.exe" -m robotide.__init__CMM-Guru commentedon May 11, 2020
HelioGuilherme66 commentedon May 11, 2020
So, please clarify if there is no problem when running RIDE from the command window (
cmd):pythonw -m robotide.__init__or
python -m robotide.__init__HelioGuilherme66 commentedon May 12, 2020
@CMM-Guru Please see if this change does fix the Issue, by installing from
master.I managed to force the error in Linux, by changing owner of *-ride.log in temp directory. Please double-check if there are no *-ride.log files owned by Administrator, or opened by some other applications or remote users (or, even possibly an anti-virus).
If not fixed, a possible workaround is to disable RIDE Log on %APPDATA%\RobotFramework\RIDE\settings.cfg, set
_enabled = False:HelioGuilherme66 commentedon May 12, 2020
This is going to be reopened because it is not fully fixed. Refer to comment.
I will try another strategy, for the pop-up of failed to delete log files, does not show.
HelioGuilherme66 commentedon May 12, 2020
@CMM-Guru I have found a way to reproduce the error message appearing, with:
This makes RIDE not being able to delete log-ride.log and the plugin is disabled. The normal error message is shown when a plugin failed to load (this is what I'll avoid to show in this case)
My environment is Windows 10, 1909, python 3.8.1, and:
robotframework 3.2.1
robotframework-ride 2.0b1.dev1
wxPython 4.1.0
Code page in command window (
chcp) is 65001.CMM-Guru commentedon May 12, 2020
Based on my comments on 2198, I'm concerned that after I exit RIDE (after saving files in RIDE) that the python task remains open even though RIDE closes.
Is it possible that there is either a missing "close file" after writing files and python is still hanging on to that file handle and won't let the process end? And because of this, it obviously doesn't release the log file either.
I'm thrilled that we won't have to deal with the error message. I'm concerned that there is an underlying problem causing the problem in the first place and that the message is simply a side-effect.
HelioGuilherme66 commentedon May 12, 2020
The error is only happening when RIDE starts, it tries to delete previous *-ride.log files. There are only three log files that RIDE produce, in %TMP% the *-ride.log and *-ride_parser.log (different plugins), and the Run log file, in a directory created for it.
Now I got this experiment for you to try, since you mentioned restricting the number of opened files (in the system?), I'd like you to try to start RIDE from the command window, passing a directory with tests and html files (like log.html or report.html), this will cause RIDE to log parsing errors in Parser Log tab. We will see if the same error happens.
HelioGuilherme66 commentedon May 13, 2020
Finally I think I have fixed it. Seems that Python 3.8 was too picky when writing to stderr. Now the log plugin should remain OK.
CMM-Guru commentedon May 13, 2020
Your previous comment. Could that also be why, when exiting RIDE (after saving a .robot file) that python itself would still be running in the background (and therefore holding control of the log file causing the error)? So, you fix when writing to stderr, in theory, may also fix the problem that the python process itself is not ending after exiting RIDE?
CMM-Guru commentedon May 13, 2020
I'm also curious... per my observation of 2199, it appears that virtually all verification of issues is in linux. Does that imply that most people are not using RFW / RIDE in a Windows environment (which is required if you are using it to test Windows developments)?
I can see that issues like this could be treated tremendously differently between linux and Windows. And that verification in linux does not necessarily mean that it is valid in Windows due to O/S interaction differences...??? (If that is the case, I would be willing to do some basic testing of at least beta releases for you)
HelioGuilherme66 commentedon May 13, 2020
@CMM-Guru (First I'd like to know that you confirm the fix. Thanks.)
I think that most people uses RIDE on Windows, I prefer to use Linux.
As why the python process get's stuck, I don't know. This is not the first time it is reported, but more information should be found on the Internet.
Could you use the Slack #ride channel for us to talk on these things? We also now have the forum.robotframework.org, as alternative for people with Slack blocked.