-
Notifications
You must be signed in to change notification settings - Fork 6
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
UnboundLocalError: local variable 'canvas_manifest' referenced before assignment #46
Comments
The error: I already created an issue to implement better error handling and will log some informations to the console. |
Currently it's only working with an unpacked .msapp. But this should be possible to unpack the .msapp file within the pipeline. |
Hello Sebastian, I have implemented your solution into an Azure DevOps pipeline, and the result it's working! It's a cool project. I loved to support it further during the new releases. Keep you posted. Regards, Frederik |
Great to hear. Send me a link to your blog post. Here or on Twitter. |
An issue in the pipeline step in Azure DevOps:
Config:
YAML Config of the above configuration:
#Your build pipeline references an undefined variable named ‘BuildStagingDirectory’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references an undefined variable named ‘SolutionName’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references an undefined variable named ‘BuildStagingDirectory’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references an undefined variable named ‘SolutionName’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
steps:
displayName: 'powerapps-docstring'
inputs:
scriptPath: 'powerapps-docstring/main.py'
arguments: '--source
continueOnError: true
OUTPUT:
2021-11-07T16:05:32.8040424Z ##[section]Starting: powerapps-docstring
2021-11-07T16:05:32.8327632Z ==============================================================================
2021-11-07T16:05:32.8327960Z Task : Python script
2021-11-07T16:05:32.8328195Z Description : Run a Python file or inline script
2021-11-07T16:05:32.8328433Z Version : 0.182.0
2021-11-07T16:05:32.8328748Z Author : Microsoft Corporation
2021-11-07T16:05:32.8329065Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/python-script
2021-11-07T16:05:32.8329462Z ==============================================================================
2021-11-07T16:05:33.1525497Z [command]C:\hostedtoolcache\windows\Python\3.9.7\x64\python.exe D:\a\1\s\powerapps-docstring\main.py --source build\SolutionDemo\managed\ --output build\SolutionDemo\managed\ --config config.yaml
2021-11-07T16:05:33.2411939Z build\SolutionDemo\managed/
2021-11-07T16:05:33.2412839Z Traceback (most recent call last):
2021-11-07T16:05:33.2413325Z File "D:\a\1\s\powerapps-docstring\main.py", line 86, in
2021-11-07T16:05:33.2413942Z main(sys.argv[1:])
2021-11-07T16:05:33.2414362Z File "D:\a\1\s\powerapps-docstring\main.py", line 79, in main
2021-11-07T16:05:33.2414816Z docstring = Docstring(pa_src_path, output_path, config)
2021-11-07T16:05:33.2415299Z File "D:\a\1\s\powerapps-docstring\powerapps_docstring\documentation.py", line 15, in init
2021-11-07T16:05:33.2415796Z self.manifest_file = self.parser.get_canvas_manifest()
2021-11-07T16:05:33.2416293Z File "D:\a\1\s\powerapps-docstring\powerapps_docstring\parser.py", line 44, in get_canvas_manifest
2021-11-07T16:05:33.2416744Z return canvas_manifest
2021-11-07T16:05:33.2417163Z UnboundLocalError: local variable 'canvas_manifest' referenced before assignment
2021-11-07T16:05:33.2524300Z ##[error]The process 'C:\hostedtoolcache\windows\Python\3.9.7\x64\python.exe' failed with exit code 1
2021-11-07T16:05:33.2731262Z ##[section]Finishing: powerapps-docstring
The text was updated successfully, but these errors were encountered: