Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
26a3262c
Commit
26a3262c
authored
Dec 06, 2020
by
Maxime Perrotin
Browse files
Bugfix with errors returning strings instead of list
parent
e9e9348b
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
26a3262c
...
...
@@ -124,6 +124,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
**3.3.6 (12/2020)**
-
Minor bugfix with predure parsing
**3.3.5 (11/2020)**
-
Improve link between error messages and graphical symbols
...
...
opengeode/ogParser.py
View file @
26a3262c
...
...
@@ -2941,8 +2941,13 @@ def procedure_pre(root, parent=None, context=None):
proc
.
external
=
True
elif
child
.
type
==
lexer
.
FPAR
:
params
,
err
,
warn
=
fpar
(
child
)
errors
.
extend
(
err
)
warnings
.
extend
(
warn
)
# convert error strings to the proper list
for
each
in
err
:
errors
.
append
([
f
'In procedure signature:
{
each
}
'
,
[
0
,
0
],
[]])
for
each
in
warn
:
warnings
.
append
([
f
'In procedure
{
proc
.
inputString
}
:
{
each
}
'
,
[
textarea
.
pos_x
or
0
,
textarea
.
pos_y
or
0
],
[]])
proc
.
fpar
=
params
elif
child
.
type
==
lexer
.
RETURNS
:
# Declaration not in a text area...
...
...
opengeode/opengeode.py
View file @
26a3262c
...
...
@@ -141,7 +141,7 @@ except ImportError:
__all__
=
[
'opengeode'
,
'SDL_Scene'
,
'SDL_View'
,
'parse'
]
__version__
=
'3.3.
5
'
__version__
=
'3.3.
6
'
if
hasattr
(
sys
,
'frozen'
):
# Detect if we are running on Windows (py2exe-generated)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment