-
Notifications
You must be signed in to change notification settings - Fork 34
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
AttributeError: 'PythonNode' object has no attribute 'value' #140
Comments
@max90727 Can you give more details about how are you getting this error. Are you created any project or worked with sample project. Provide complete steps which you follow before running the gauge test. That will helpful to replicate the issue. How did you -
|
In my specs implement, one of the imported files has specs/ |
Sorry. I clicked the wrong button. Not closed |
@max90727 Thanks for reporting the issue. I am able to replicate it at my end. We will be fixing this issue soon. Steps to replicate
class Foo:
def __init__(self,x):
self.x = x
@property
def x(self):
return self.__x
@x.setter
def x(self, x):
self.__x = x
Dev NotesThe issue is happening because the static parser is trying to read all the decorators while parsing the file. |
The fix should be available in nightly >= 28-05-2019 |
The latest nightly build solved the issue. |
Description
Expect behavior, gauge server runs after the command 'gauge run '
Steps to reproduce
Information that will help us debug
Gauge version: 1.0.5
Commit Hash: 562f036
Plugins
html-report (4.0.8)
python (0.3.5)
screenshot (0.0.1)
Python version
Python 3.6.8
getgauge
package version, runpip3 show getgauge
to get itVersion: 0.3.5
Summary: Enables Python support for Gauge
Home-page: https://github.com/getgauge/gauge-python
Author: Gauge Team
OS information
Win10
Error Msg:
File "start.py", line 67, in
main()
File "start.py", line 26, in main
load_implementations()
File "start.py", line 35, in load_implementations
load_files(d)
File "Python\Python36\site-packages\getgauge\static_loader.py", line 26, in load_files
load_steps(pf)
File "Python\Python36\site-packages\getgauge\static_loader.py", line 7, in load_steps
for funcStep in python_file.iter_steps():
File "Python\Python36\site-packages\getgauge\parser_parso.py", line 81, in iter_steps
for func, decorator in self._iter_step_func_decorators():
File "Python\Python36\site-packages\getgauge\parser_parso.py", line 55, in _iter_step_func_decorators
if decorator.children[1].value == 'step':
AttributeError: 'PythonNode' object has no attribute 'value'
The text was updated successfully, but these errors were encountered: