Skip to content

Commit d59852b

Browse files
Version 2.1.1
1 parent 87c2539 commit d59852b

File tree

4 files changed

+158
-14
lines changed

4 files changed

+158
-14
lines changed

CONTRIBUTING.adoc

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ the generic https://opensource.guide/[Open Source Guides] first.
2222
Bugs and enhancements are tracked in the
2323
https://github.com/robotframework/RIDE/issues[issue tracker].
2424
If you are unsure if something is a bug or is a feature worth
25-
implementing, you can first ask on link:https://forum.robotframework.org/c/tools/ride/21/[RIDE-users]
26-
(#RIDE on irc.freenode.net), or on
25+
implementing, you can first ask on link:https://forum.robotframework.org/c/tools/ride/21/[RIDE]
26+
(RIDE at Forum), or on
2727
https://robotframework-slack-invite.herokuapp.com[Slack]. These and
2828
other similar forums, not the issue tracker, are also places where to
2929
ask general questions.
@@ -105,6 +105,33 @@ to create dedicated topic branches for pull requests instead of creating
105105
them based on the master branch. This is especially important if you
106106
plan to work on multiple pull requests at the same time.
107107

108+
=== RIDE Code Setup
109+
110+
The basic code setup of RIDE, needs a additional steps since v2.1.1 (November 2024):
111+
112+
. Forking the project (Web interface)
113+
. Clone (for example) ``git clone [email protected]:robotframework/RIDE.git``
114+
. ``cd RIDE``
115+
. `pip install -U -r requirements-dev.txt`
116+
. ``git submodule init``
117+
. ``git submodule update``
118+
119+
Then you may change to the ``develop`` branch, which should be the base for features or fixes branches, and the target for pull requests. Example:
120+
121+
. ``git checkout develop``
122+
. ``git submodule init``
123+
. ``git submodule update``
124+
. ``git pull origin develop``
125+
. ``git checkout -b a_new_branch_based_on_develop``
126+
. After changes, you add new files, ``git add a_new_file``
127+
. You add and commit the modified files, ``git -a -m "The short message with info about the change``
128+
. You push the commit to your fork, ``git push origin a_new_branch_based_on_develop``
129+
. You may repeat the commit/push and when ready create a Pull Request to your ``develop`` branch, or
130+
. You checkout your ``develop``branch, and merge with ``git merge a_new_branch_based_on_develop``
131+
. Later you should keep the ``develop`` branch updated by pulling from your remote, ``git pull origin develop``, or
132+
. By pushing ``git push origin develop``
133+
. Finaly, you can create a Pull Request from your fork to the target ``develop`` branch of the original RIDE project.
134+
108135
=== Coding conventions
109136

110137
NOTE: RIDE graphical user interface, can only exist due the use of wxPython (from wxWidgets). Users wanting to write Python code for RIDE, should be acquainted with https://wxpython.org[wxPython] in particular by exploring its demo.
@@ -122,7 +149,7 @@ should be clear enough that comments are generally not needed.
122149

123150
All code, including test code, must be compatible with all supported
124151
Python interpreters and versions. Most importantly this means that the
125-
code must support Python 3 (actually, greater than 3.6). RIDE's code still have some Python 2 conditioning, due to its dual compatibility on version 1.7.4.2, and also in the included Robot Framework library from version 3.1.2.
152+
code must support Python 3 (actually, greater than 3.7, currently 3.13). RIDE's code may still have some Python 2 conditioning, due to its dual compatibility on version 1.7.4.2, and also in the included Robot Framework library from version 3.1.2.
126153

127154
==== Line length
128155

@@ -225,7 +252,7 @@ Please contact us via Slack, if you would like to join this testing group.
225252
Once you have code, documentation and tests ready, it is time to
226253
finalize the pull request.
227254

228-
=== Acknowledgments
255+
=== Acknowledgements
229256

230257
If you have done any non-trivial change and would like to be credited,
231258
remind us to add `acknowledge` tag to the issue. This way we will add

doc/releasenotes/ride-2.1.1.rst

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
.. container:: document
2+
3+
`RIDE (Robot Framework
4+
IDE) <https://github.com/robotframework/RIDE/>`__ v2.1.1 is a new
5+
release with some enhancements and bug fixes. The reference for valid
6+
arguments is `Robot Framework <https://robotframework.org/>`__
7+
installed version, which is at this moment 7.1.1. However, internal
8+
library code is originally based on version 3.1.2, but adapted for
9+
new versions.
10+
11+
- This version supports Python 3.8 up to 3.13.
12+
- There are some changes, or known issues:
13+
14+
- 🐞 - When upgrading RIDE and activate Restart, some errors are
15+
visible about missing /language file, and behaviour is not
16+
normal. Better to close RIDE and start a new instance.
17+
- 🐞 - Problems with COPY/PASTE in Text Editor have been reported
18+
when using wxPython 4.2.0, but not with version 4.2.1 and
19+
4.2.2, which we now *recommend*.
20+
- 🐞 - Some argument types detection (and colorization) is not
21+
correct in Grid Editor.
22+
- 🐞 - RIDE **DOES NOT KEEP** Test Suites formatting or
23+
structure, causing differences in files when used on other IDE
24+
or Editors. The option to not reformat the file is not working.
25+
26+
**New Features and Fixes Highlights**
27+
28+
- Fixed long arguments in fixtures appearing splitted in Grid
29+
Editor. Still, arguments info will not be correct at calling
30+
step.
31+
- Fixed double action on Linux when pressing the DEL key
32+
33+
**The minimal wxPython version is, 4.0.7, and RIDE supports the
34+
current version, 4.2.2, which we recommend.**
35+
36+
*Linux users are advised to install first wxPython from .whl package
37+
at*
38+
`wxPython.org <https://extras.wxpython.org/wxPython4/extras/linux/gtk3/>`__,
39+
or by using the system package manager.
40+
41+
The
42+
`CHANGELOG.adoc <https://github.com/robotframework/RIDE/blob/master/CHANGELOG.adoc>`__
43+
lists the changes done on the different versions.
44+
45+
All issues targeted for RIDE v2.2 can be found from the `issue
46+
tracker
47+
milestone <https://github.com/robotframework/RIDE/issues?q=milestone%3Av2.2>`__.
48+
49+
Questions and comments related to the release can be sent to the
50+
`robotframework-users <https://groups.google.com/group/robotframework-users>`__
51+
mailing list or to the channel #ride on `Robot Framework
52+
Slack <https://robotframework-slack-invite.herokuapp.com>`__, and
53+
possible bugs submitted to the `issue
54+
tracker <https://github.com/robotframework/RIDE/issues>`__. You
55+
should see `Robot Framework
56+
Forum <https://forum.robotframework.org/c/tools/ride/>`__ if your
57+
problem is already known.
58+
59+
To install the latest release with
60+
`pip <https://pypi.org/project/pip/>`__ installed, just run
61+
62+
.. code:: literal-block
63+
64+
pip install --upgrade robotframework-ride==2.1.1
65+
66+
to install exactly the specified release, which is the same as using
67+
68+
.. code:: literal-block
69+
70+
pip install --upgrade robotframework-ride
71+
72+
Alternatively you can download the source distribution from
73+
`PyPI <https://pypi.python.org/pypi/robotframework-ride>`__ and
74+
install it manually. For more details and other installation
75+
approaches, see the `installation
76+
instructions <https://github.com/robotframework/RIDE/wiki/Installation-Instructions>`__.
77+
If you want to help in the development of RIDE, by reporting issues
78+
in current development version, you can install with:
79+
80+
.. code:: literal-block
81+
82+
pip install -U https://github.com/robotframework/RIDE/archive/develop.zip
83+
84+
Important document for helping with development is the
85+
`CONTRIBUTING.adoc <https://github.com/robotframework/RIDE/blob/develop/CONTRIBUTING.adoc>`__.
86+
87+
To start RIDE from a command window, shell or terminal, just enter:
88+
89+
::
90+
91+
ride
92+
93+
You can also pass some arguments, like a path for a test suite file
94+
or directory.
95+
96+
::
97+
98+
ride example.robot
99+
100+
Another possible way to start RIDE is:
101+
102+
.. code:: literal-block
103+
104+
python -m robotide
105+
106+
You can then go to Tools>Create RIDE Desktop Shortcut, or run the
107+
shortcut creation script with:
108+
109+
.. code:: literal-block
110+
111+
python -m robotide.postinstall -install
112+
113+
or
114+
115+
.. code:: literal-block
116+
117+
ride_postinstall.py -install
118+
119+
RIDE v2.1.1 was released on 14/November/2024.

src/robotide/application/releasenotes.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def set_content(self, html_win, content):
125125
milestone = re.split('[ab-]', VERSION)[0]
126126

127127
WELCOME_TEXT = f"""
128-
<h2>Welcome to use RIDE <b>DEVELOPMENT</b> version {version}</h2>
128+
<h2>Welcome to use RIDE version {version}</h2>
129129
130130
<p>Thank you for using the <a href="https://robotframework.org/">Robot Framework</a> IDE (RIDE).</p>
131131
@@ -171,8 +171,7 @@ def set_content(self, html_win, content):
171171
<ul class="simple">
172172
<li>Fixed broken go to definition after editing content in resource files.</li>
173173
<li>Fixed long arguments in fixtures appearing splitted in Grid Editor. Still, arguments info will not be correct at
174-
calling step. Fixed long arguments in fixtures appearing splitted in Grid Editor.
175-
Still, arguments info will not be correct at calling step.</li>
174+
calling step.</li>
176175
<li>Fixed double action on Linux when pressing the DEL key</li>
177176
</ul>
178177
<!-- <p>We hope to implement or complete features and make fixes on next major version 2.1 (in mid Autumm of 2024).</p>
@@ -184,8 +183,8 @@ def set_content(self, html_win, content):
184183
manager.</p>
185184
<p>The <a class="reference external" href="https://github.com/robotframework/RIDE/blob/master/CHANGELOG.adoc">
186185
CHANGELOG.adoc</a> lists the changes done on the different versions.</p>
187-
<p>All issues targeted for RIDE v2.1 can be found
188-
from the <a class="reference external" href="https://github.com/robotframework/RIDE/issues?q=milestone%3Av2.1">issue
186+
<p>All issues targeted for RIDE v2.2 can be found
187+
from the <a class="reference external" href="https://github.com/robotframework/RIDE/issues?q=milestone%3Av2.2">issue
189188
tracker milestone</a>.</p>
190189
<p>Questions and comments related to the release can be sent to the
191190
<a class="reference external" href="https://groups.google.com/group/robotframework-users">robotframework-users</a>
@@ -197,7 +196,7 @@ def set_content(self, html_win, content):
197196
Forum</a> if your problem is already known.</p>
198197
<p>To install the latest release with <a class="reference external" href="https://pypi.org/project/pip/">pip</a> installed, just run</p>
199198
<pre class="literal-block">
200-
pip install --upgrade robotframework-ride==2.1
199+
pip install --upgrade robotframework-ride==2.1.1
201200
</pre>
202201
<p>to install exactly the specified release, which is the same as using</p>
203202
<pre class="literal-block">

src/robotide/postinstall/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
from .desktopshortcut import ShortcutPlugin
1717

18-
1918
import sys
2019
try:
2120
import wx
@@ -30,7 +29,7 @@
3029
"or pip install wxPython")
3130
exit(-1)
3231

33-
from os import environ
32+
from os import environ, getlogin
3433
from os.path import exists, join
3534
from robotide.widgets import RIDEDialog
3635

@@ -180,7 +179,7 @@ def _create_desktop_shortcut_linux(frame=None):
180179
desktop = {"de": "Desktop", "en": "Desktop", "es": "Escritorio",
181180
"fi": r"Työpöytä", "fr": "Bureau", "it": "Scrivania",
182181
"pt": r"Área de Trabalho"}
183-
user = str(subprocess.check_output(['logname']).strip(), encoding='utf-8')
182+
user = getlogin()
184183
try:
185184
ndesktop = desktop[DEFAULT_LANGUAGE[0][:2]]
186185
directory = join("/home", user, ndesktop)
@@ -254,7 +253,7 @@ def _create_desktop_shortcut_mac(frame=None):
254253
if exists(ride_app_pc_path):
255254
shutil.rmtree(ride_app_pc_path, True)
256255
shutil.copytree(ride_app_module_path, ride_app_pc_path)
257-
user = str(subprocess.check_output(['logname']).strip(), encoding='utf-8')
256+
user = getlogin()
258257
user_desktop_link = '/Users/' + user + '/Desktop/' + ride_app_name
259258
if exists(user_desktop_link):
260259
os.remove(user_desktop_link)

0 commit comments

Comments
 (0)