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

Fix goto definition after change #2911

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b604ba9
Cleanup code (#2905)
HelioGuilherme66 Oct 25, 2024
2a28c6b
Cleanup code (#154)
HelioGuilherme66 Oct 26, 2024
778ef34
Improve unit test
HelioGuilherme66 Oct 26, 2024
e80acfc
Change update from develop branch
HelioGuilherme66 Oct 26, 2024
a458f47
Cleanup code (#156)
HelioGuilherme66 Oct 27, 2024
dc72b49
Add configobj as a submodule
HelioGuilherme66 Oct 27, 2024
468ca4f
Add submodule init
HelioGuilherme66 Oct 27, 2024
ca355bb
Change submodule init and remove sudo
HelioGuilherme66 Oct 27, 2024
e5d6392
Reorganize steps
HelioGuilherme66 Oct 27, 2024
2882fc1
Update docs for development version
HelioGuilherme66 Oct 27, 2024
cc15268
Update unit tests
HelioGuilherme66 Oct 27, 2024
5735097
Add configobj as a submodule (#157)
HelioGuilherme66 Oct 27, 2024
9d22ffa
Fix steps in Sona workflow
HelioGuilherme66 Oct 27, 2024
8f1b7fe
Merge pull request #2906 from HelioGuilherme66/develop
HelioGuilherme66 Oct 27, 2024
1e517c1
Merge branch 'develop' into configobj
HelioGuilherme66 Oct 27, 2024
a58814d
Add unit test for configobj
HelioGuilherme66 Oct 27, 2024
cb85506
Merge pull request #2907 from HelioGuilherme66/configobj
HelioGuilherme66 Oct 27, 2024
57f1260
Add 20 cols to the default 18 when row is setting
HelioGuilherme66 Oct 29, 2024
e72b81b
Fix long arguments calls in fixtures, appearing in Grid Editor
HelioGuilherme66 Nov 1, 2024
ce812a9
Merge pull request #2908 from HelioGuilherme66/split_long_cols
HelioGuilherme66 Nov 1, 2024
338b005
Fix two unit tests. Reduce showing windows in unit tests
HelioGuilherme66 Nov 1, 2024
3542126
Update workflow in Fedora 41
HelioGuilherme66 Nov 5, 2024
42e32a9
Update docs
HelioGuilherme66 Nov 5, 2024
a0a0fd9
Fix unit tests and adjust fo Python 3.13
HelioGuilherme66 Nov 7, 2024
b192638
Make progress error reporting more resistant in unit tests
HelioGuilherme66 Nov 11, 2024
14b327d
Remove debug print
HelioGuilherme66 Nov 12, 2024
7e5a888
Fix broken go to definition after editing resource file. Closes #2291
HelioGuilherme66 Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,30 @@ jobs:
image: fedora:latest
options: --privileged
steps:
- uses: actions/[email protected]
with:
submodules: false
- name: Configure container environment
run: |
sudo dnf update -y
sudo dnf install -y git
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- uses: actions/[email protected]
with:
submodules: false
- name: Setup environment
run: |
sudo dnf install -y sdl12-compat python3-wxpython4 xorg-x11-server-Xvfb python3-pip psmisc
sudo dnf downgrade -y mesa* --refresh
sudo -H pip install -r requirements-dev.txt
# sudo dnf downgrade -y mesa* --refresh
git submodule update --init --recursive
pip install -r requirements-dev.txt
- name: Run tests
run: |
Xvfb &
export DISPLAY=:0
export GITHUB_ACTIONS=True
git submodule update --init --recursive
invoke test-ci
- name: Install and run
run: |
git submodule update --init --recursive
pip install .
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride.py &
sleep 10
Expand All @@ -103,20 +106,24 @@ jobs:
submodules: false
- name: Fetch tags
run: |
git fetch --prune --depth=1 --no-recurse-submodules
git fetch --prune --depth=1 --recurse-submodules
git submodule update --init --recursive
- name: Setup environment
run: |
sudo apt update -y
sudo apt install -y libsdl1.2debian libsdl2-2.0-0 libnotify4
sudo pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.1-cp310-cp310-linux_x86_64.whl
sudo pip install -r requirements-dev.txt
git submodule update --init --recursive
pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.1-cp310-cp310-linux_x86_64.whl
pip install -r requirements-dev.txt
- name: Run tests
run: |
Xvfb &
export DISPLAY=:0
git submodule update --init --recursive
invoke test-ci
- name: Install and run
run: |
git submodule update --init --recursive
pip install .
xvfb-run --server-args="-screen 0, 1280x720x24" -a ride.py &
sleep 10
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- master
- develop
- cleanup_code
jobs:
sonarcloud:
name: SonarCloud
Expand All @@ -26,16 +28,21 @@ jobs:
- name: Install invoke and any other packages
run: pip install coverage invoke pytest
- name: Install wxPython
run: pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.0-cp310-cp310-linux_x86_64.whl
run: pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.1-cp310-cp310-linux_x86_64.whl
- name: Install RIDE dependencies
run: pip install -r requirements-dev.txt
run: |
git submodule update --init --recursive
pip install -r requirements-dev.txt
- name: Run Xvfb
run: Xvfb :1 -noreset &
- name: Test Install RIDE
run: pip install .
run: |
git submodule update --init --recursive
pip install .
- name: Run RIDE unit-tests
run: |
export DISPLAY=:1
git submodule update --init --recursive
invoke test-ci
- name: Analyze with SonarCloud
uses: sonarsource/sonarcloud-github-action@master
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/robotide/preferences/configobj"]
path = src/robotide/preferences/configobj
url = https://github.com/DiffSK/configobj.git
13 changes: 12 additions & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ The format is based on http://keepachangelog.com/en/1.0.0/[Keep a Changelog]
and this project adheres to http://semver.org/spec/v2.0.0.html[Semantic Versioning].


// == https://github.com/robotframework/RIDE[Unreleased]
== https://github.com/robotframework/RIDE[Unreleased]

=== Changed

- Changed the workflow for the development versions of RIDE. Now, development versions are taken from the ``develop`` branch, and the ``master`` will stay with released version.
- Changed the way ``configobj`` code is imported. Now is a submodule obtained from https://github.com/DiffSK/configobj.

=== Fixed

- Fixed broken go to definition after editing content in resource files.

- Fixed long arguments in fixtures appearing splitted in Grid Editor. Still, arguments info will not be correct at calling step.

== https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride-2.1.rst[2.1] - 2024-10-13

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ recursive-include src *.css *.js *.py *.robot *.txt *.png *.gif *.ico *.cfg *.ht
recursive-include doc *.rst
recursive-include rtest *.py *.txt
recursive-include src/robotide/postinstall/RIDE.app *.*
recursive-include src/robotide/preferences/configobj/src/configobj *.*
recursive-include src/robotide/localization *.py *.adoc *.pot *.po *.mo

16 changes: 8 additions & 8 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ You can use the tag *robotframework-ide* to search and ask on https://stackoverf

== **Welcome to the development version of RIDE - next major release will be version 2.2**

// If you are looking for the latest released version, you can get the source code from **https://github.com/robotframework/RIDE/releases[releases]** or from branch **https://github.com/robotframework/RIDE/tree/release/2.0.8.1[release/2.0.8.1]**
If you are looking for the latest released version, you can get the source code from **https://github.com/robotframework/RIDE/releases[releases]** or from branch **https://github.com/robotframework/RIDE/tree/release/2.1[release/2.1]**

// See the https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride-2.0.8.1.rst[release notes] for latest release version 2.0.8.1
See the https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride-2.1.rst[release notes] for latest release version 2.1

**Version https://github.com/robotframework/RIDE/tree/release/2.0.8.1[2.0.8.1] was the last release supporting Python 3.6 and 3.7**

**Version https://github.com/robotframework/RIDE/tree/release/1.7.4.2[1.7.4.2] was the last release supporting Python 2.7**


**The current development version is based on 2.1, supports Python from 3.8 up to 3.12 (13th October 2024).**
**The current development version is based on 2.1, supports Python from 3.8 up to 3.13 (5th November 2024).**

Currently, the unit tests are tested on Python 3.10, and 3.12 (which is the recommended version).
Currently, the unit tests are tested on Python 3.10, 3.11 and 3.13 (but 3.12 is the recommended version).
Likewise, the current version of wxPython, is 4.2.2, but RIDE is known to work with 4.0.7 and 4.1.1 versions.

(3.6 <= python <= 3.11) Install current released version (*2.1*) with:
(3.8 <= python <= 3.12) Install current released version (*2.1*) with:

`pip install -U robotframework-ride`

(3.8 <= python <= 3.12) Install current development version (**2.1**) with:
(3.8 <= python <= 3.13) Install current development version (**2.1.1**) with:

`pip install -U https://github.com/robotframework/RIDE/archive/master.zip`
`pip install -U https://github.com/robotframework/RIDE/archive/develop.zip`

//(3.8 <= python <= 3.12) Install current Beta version (2.1b1) with:

Expand All @@ -55,7 +55,7 @@ Likewise, the current version of wxPython, is 4.2.2, but RIDE is known to work w
== Unit testing statuses:

// Linux (py36, py37, py38, py39): image:https://app.travis-ci.com/HelioGuilherme66/RIDE.svg?branch=master[Unit Tests, link=https://app.travis-ci.com/github/HelioGuilherme66/RIDE]
Linux (Fedora 40: py3.12, Ubuntu 22.04: py3.10): image:https://img.shields.io/github/actions/workflow/status/HelioGuilherme66/RIDE/linux.yml[Unit Tests, link=https://github.com/HelioGuilherme66/RIDE/actions/workflows/linux.yml]
Linux (Fedora 41: py3.13, Ubuntu 22.04: py3.10): image:https://img.shields.io/github/actions/workflow/status/HelioGuilherme66/RIDE/linux.yml[Unit Tests, link=https://github.com/HelioGuilherme66/RIDE/actions/workflows/linux.yml]

Windows (Python 3.11): image:https://ci.appveyor.com/api/projects/status/github/HelioGuilherme66/RIDE?branch=master&svg=true[Unit Tests, link=https://ci.appveyor.com/project/HelioGuilherme66/ride]

Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pytest]
addopts = -p no:warnings --order-group-scope=module

pythonpath = src src/robotide/preferences/configobj/src
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ count = False
max_line_length = 90
statistics = True

[options]
packages = find:
include_package_data = true

[options.entry_points]
gui_scripts =
ride = robotide.__main__:main
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
'psutil',
'Pywin32; sys_platform=="win32"',
'wxPython',
'packaging']
'packaging',
'requests>=2.32.2']

PACKAGE_DATA = {
'robotide.preferences': ['settings.cfg'],
Expand All @@ -48,6 +49,14 @@

PACKAGE_DATA['robotide.localization'] = my_list[:]

my_list = []
for curr_dir, _, files in os.walk('src/robotide/preferences/configobj/src/configobj'):
for item in files:
if '.' in item:
my_list.append(os.path.join(curr_dir, item).replace('\\', '/').replace('src/robotide/preferences/configobj/src/configobj/', ''))

PACKAGE_DATA['robotide.preferences.configobj.src.configobj'] = my_list[:]

LONG_DESCRIPTION = """
Robot Framework is a generic test automation framework for acceptance
level testing. RIDE is a lightweight and intuitive editor for Robot
Expand Down Expand Up @@ -101,6 +110,7 @@ def run(self):
url='https://github.com/robotframework/RIDE/',
download_url='https://pypi.python.org/pypi/robotframework-ride',
install_requires=REQUIREMENTS,
include_package_data=True,
package_dir={'': SOURCE_DIR},
packages=find_packages(SOURCE_DIR),
package_data=PACKAGE_DATA,
Expand Down
1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ sonar.projectKey=HelioGuilherme66_RIDE
sonar.organization=helioguilherme66
sonar.host.url=https://sonarcloud.io
sonar.python.version=3.10
sonar.projectVersion=v2.1
sonar.sources=src/
sonar.tests=utest/
sonar.exclusions=**/lib/robot/**/*
Expand Down
Loading
Loading