Skip to content

Commit

Permalink
Create directory in New Project dialog, if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
HelioGuilherme66 committed Feb 17, 2025
1 parent 46aacd2 commit aa5b88f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to http://semver.org/spec/v2.0.0.html[Semantic Versioni
- Added syntax colorization for the ``GROUP`` marker.

=== Changed
- Create directories when needed in New Project dialog.
- Improved the recognition of BDD/Gherkin prefixes when localized in autocomplete on Grid Editor.
- Improved colorization for multiple Gherkin words, for example in the French language.

Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Likewise, the current version of wxPython, is 4.2.2, but RIDE is known to work w

`pip install -U robotframework-ride`

(3.8 <= python <= 3.13) Install current development version (**2.2dev7**) with:
(3.8 <= python <= 3.13) Install current development version (**2.2dev8**) with:

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

Expand Down
2 changes: 2 additions & 0 deletions src/robotide/application/CHANGELOG.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
and this project adheres to <a class="ulink" href="http://semver.org/spec/v2.0.0.html" target="_top">Semantic Versioning</a>.</p><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_ulink_url_https_github_com_robotframework_ride_unreleased_ulink"></a>1. <a class="ulink" href="https://github.com/robotframework/RIDE" target="_top">Unreleased</a></h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="_added"></a>1.1. Added</h3></div></div></div><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
Added syntax colorization for the ``GROUP`` marker.
</li></ul></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="_changed"></a>1.2. Changed</h3></div></div></div><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
Create directories when needed in New Project dialog.
</li><li class="listitem">
Improved the recognition of BDD/Gherkin prefixes when localized in autocomplete on Grid Editor.
</li><li class="listitem">
Improved colorization for multiple Gherkin words, for example in the French language.
Expand Down
3 changes: 2 additions & 1 deletion src/robotide/application/releasenotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def set_content(self, html_win, content):
</ul>
<p><strong>New Features and Fixes Highlights</strong></p>
<ul class="simple">
<li>Create directories when needed in New Project dialog.</li>
<li>Improved the recognition of BDD/Gherkin prefixes when localized in autocomplete on Grid Editor.</li>
<li>Added syntax colorization for the <em>GROUP</em> marker. Improved colorization for multiple Gherkin words, for
example in the French language.</li>
Expand Down Expand Up @@ -228,7 +229,7 @@ def set_content(self, html_win, content):
<pre class="literal-block">python -m robotide.postinstall -install</pre>
<p>or</p>
<pre class="literal-block">ride_postinstall.py -install</pre>
<p>RIDE {VERSION} was released on 16/February/2025.</p>
<p>RIDE {VERSION} was released on 17/February/2025.</p>
<!-- <br/>
<h3>May The Fourth Be With You!</h3>
<h3>Celebrate the bank holiday, 10th June, Day of Portugal, Portuguese Communities and Camões!!</h3>
Expand Down
5 changes: 4 additions & 1 deletion src/robotide/validators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ def _validate(self, value):
if "__init__" in filename:
parentdir = os.path.dirname(parentdir)
if not os.path.exists(parentdir):
return "Parent directory must exist"
try:
os.makedirs(parentdir)
except OSError:
return f"Failed to create directory: {parentdir}"
return None


Expand Down
2 changes: 1 addition & 1 deletion src/robotide/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#
# Automatically generated by `tasks.py`.

VERSION = 'v2.2dev7'
VERSION = 'v2.2dev8'

0 comments on commit aa5b88f

Please sign in to comment.