Skip to content

Commit aa5b88f

Browse files
Create directory in New Project dialog, if needed.
1 parent 46aacd2 commit aa5b88f

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

CHANGELOG.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to http://semver.org/spec/v2.0.0.html[Semantic Versioni
1212
- Added syntax colorization for the ``GROUP`` marker.
1313

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

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Likewise, the current version of wxPython, is 4.2.2, but RIDE is known to work w
4040

4141
`pip install -U robotframework-ride`
4242

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

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

src/robotide/application/CHANGELOG.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
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">
44
Added syntax colorization for the ``GROUP`` marker.
55
</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">
6+
Create directories when needed in New Project dialog.
7+
</li><li class="listitem">
68
Improved the recognition of BDD/Gherkin prefixes when localized in autocomplete on Grid Editor.
79
</li><li class="listitem">
810
Improved colorization for multiple Gherkin words, for example in the French language.

src/robotide/application/releasenotes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def set_content(self, html_win, content):
168168
</ul>
169169
<p><strong>New Features and Fixes Highlights</strong></p>
170170
<ul class="simple">
171+
<li>Create directories when needed in New Project dialog.</li>
171172
<li>Improved the recognition of BDD/Gherkin prefixes when localized in autocomplete on Grid Editor.</li>
172173
<li>Added syntax colorization for the <em>GROUP</em> marker. Improved colorization for multiple Gherkin words, for
173174
example in the French language.</li>
@@ -228,7 +229,7 @@ def set_content(self, html_win, content):
228229
<pre class="literal-block">python -m robotide.postinstall -install</pre>
229230
<p>or</p>
230231
<pre class="literal-block">ride_postinstall.py -install</pre>
231-
<p>RIDE {VERSION} was released on 16/February/2025.</p>
232+
<p>RIDE {VERSION} was released on 17/February/2025.</p>
232233
<!-- <br/>
233234
<h3>May The Fourth Be With You!</h3>
234235
<h3>Celebrate the bank holiday, 10th June, Day of Portugal, Portuguese Communities and Camões!!</h3>

src/robotide/validators/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ def _validate(self, value):
190190
if "__init__" in filename:
191191
parentdir = os.path.dirname(parentdir)
192192
if not os.path.exists(parentdir):
193-
return "Parent directory must exist"
193+
try:
194+
os.makedirs(parentdir)
195+
except OSError:
196+
return f"Failed to create directory: {parentdir}"
194197
return None
195198

196199

src/robotide/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
#
1616
# Automatically generated by `tasks.py`.
1717

18-
VERSION = 'v2.2dev7'
18+
VERSION = 'v2.2dev8'

0 commit comments

Comments
 (0)