-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
dot.exe : Error: <stdin>: syntax error in line 1 near 'strict' #96
Comments
Same error. |
Hello, |
I had this same issue when trying to run this on a self-hosted build agent. I was able to fix this by modifying the installed I added a $combined variable to catch the concatenation.. In the end, its just trying to add "strict" to the graph output before passing it to Export. This resolved the issue running from my build machine. |
yaml steps to generate diagrams from an Azure Devops pipeline:
|
it seems a few people get this @gstevens-kyriba would you mind submitting a PR with your fix in it so all could benefit? |
Hi Here, I'm having the same issue! `dot.exe : Error: : syntax error in line 1 near 'strict'
Export-PSGraph : System error.
|
For most of my resource groups it works ok, however for some I get a recurring error eg
█████╗ ███████╗██╗ ██╗██╗███████╗
██╔══██╗╚══███╔╝██║ ██║██║╚══███╔╝ Author : Prateek Singh (Twitter @singhprateik)
███████║ ███╔╝ ██║ ██║██║ ███╔╝ Module : Azure Visualizer v1.2.1
██╔══██║ ███╔╝ ╚██╗ ██╔╝██║ ███╔╝ Github : https://github.com/PrateekKumarSingh/AzViz
██║ ██║███████╗ ╚████╔╝ ██║███████╗ Document : https://azviz.readthedocs.io
╚═╝ ╚═╝╚══════╝ ╚═══╝ ╚═╝╚══════╝
▶ Testing Graphviz installation... 999ms
▶ GraphViz installation path : C:\Program Files (x86)\Graphviz\bin\dot.exe
▶ Comciguring Defaults... 1.10s
▶ Target Type : Azure Resource Group
▶ Output Format : png
▶ Exluded Resource Types :
▶ Output File Path : C:\repo\orgs\mycomp\cloud_imcrastructure\projects\platform\dev\UK_South\2.1.3.sql-managed-instance\imcrastructure_diagram.png
▶ Label Verbosity : 2
▶ Category Depth : 1
▶ Sub-graph Direction : top-to-bottom
▶ Theme : light
▶ Launch Visualization : False
▶ Target Azure Resource Groups... 1.17s
▶ mc-dev-uks-sqlmi-rsg
▶ Starting to generate Azure visualization... 1.18s
VERBOSE: Testing Azure login
▶ Exporting network associations for resource group: 'mc-dev-uks-sqlmi-rsg'
▶ Network watcher found: 'NetworkWatcher_uksouth'
▶ Obtaining network topology using Network Watcher
▶ Exporting ARM template of Azure resource group: 'mc-dev-uks-sqlmi-rsg'
▶ Processing the ARM template to extract resources
▶ Total resources found: 31
▶ Cleaning up temporary ARM template file at: C:\Users\marcus.adams\AppData\Local\Temp\tmp54C0.tmp.json
▶ Plotting sub-graph for Azure Resource Group: "mc-dev-uks-sqlmi-rsg" 10.41s
▶ Creating Nodes
▶ microsoft.sql/managedinstances/mc-dev-uks-sqlmi-sql2
▶ microsoft.sql/managedinstances/mc-dev-uks-sqlmi-sql1
dot.exe : Error: : syntax error in line 1 near 'strict'
At C:\Users\marcus.adams\OneDrive - Novia Financial\Documents\WindowsPowerShell\Modules\PSGraph\2.1.38.27\PSGraph.psm1:904 char:53
Export-PSGraph : System error.
At C:\repo\orgs\mycomp\AzViz\AzViz\src\public\Export-AzViz.ps1:274 char:6
The text was updated successfully, but these errors were encountered: