Title: Putting the original code in the scad file can break the parser · Issue #210 · SolidCode/SolidPython · GitHub
Open Graph Title: Putting the original code in the scad file can break the parser · Issue #210 · SolidCode/SolidPython
X Title: Putting the original code in the scad file can break the parser · Issue #210 · SolidCode/SolidPython
Description: Example: import solid glob = "**/*" x = solid.cube() solid.scad_render_to_file(x, "test.scad") y = solid.include("test.scad") Result: py_scadparser: Illegal character: test.scad(11) """ py_scadparser: Syntax error: test.scad(14) ID - sol...
Open Graph Description: Example: import solid glob = "**/*" x = solid.cube() solid.scad_render_to_file(x, "test.scad") y = solid.include("test.scad") Result: py_scadparser: Illegal character: test.scad(11) """ py_scadpars...
X Description: Example: import solid glob = "**/*" x = solid.cube() solid.scad_render_to_file(x, "test.scad") y = solid.include("test.scad") Result: py_scadparser: Illegal character:...
Opengraph URL: https://github.com/SolidCode/SolidPython/issues/210
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Putting the original code in the scad file can break the parser","articleBody":"Example:\r\n\r\n```\r\nimport solid\r\n\r\nglob = \"**/*\"\r\n\r\nx = solid.cube()\r\nsolid.scad_render_to_file(x, \"test.scad\")\r\ny = solid.include(\"test.scad\")\r\n```\r\n\r\nResult:\r\n\r\n```\r\npy_scadparser: Illegal character: test.scad(11) \"\"\"\r\npy_scadparser: Syntax error: test.scad(14) ID - solid\r\npy_scadparser: Syntax error: test.scad(15) INCLUDE - include\r\npy_scadparser: Syntax error: test.scad(18) / - /\r\n```\r\n\r\nThis happens because the default is to save the solidpython code to the output, but in this case the code contains a glob, which looks like a comment terminator, which messes up the parser in solidpython. I haven't tested openscad on these files. Generally the way you fix this is with heredoc, but I think this would require support from openscad side.","author":{"url":"https://github.com/ali1234","@type":"Person","name":"ali1234"},"datePublished":"2024-06-24T00:15:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/210/SolidPython/issues/210"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a2a0392-9c01-7085-6741-82f0c161eb23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9566:3BAB6B:C1D414:FD96C3:696B2657 |
| html-safe-nonce | 1841ac1de82ac46dcd7c54c3c5a84f3cd3ab9262cd00dc4ec9c5b933025893ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTY2OjNCQUI2QjpDMUQ0MTQ6RkQ5NkMzOjY5NkIyNjU3IiwidmlzaXRvcl9pZCI6IjE3MTc2OTMwNTg1MDYyMzc1MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 54dc86cec74d5e8639360d8269e60e8d0fc2184edee42205aac9523318ea07ef |
| hovercard-subject-tag | issue:2368958555 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SolidCode/SolidPython/210/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb2c866dfac20015e807f5a00a9f1396cd4b6e0007a0747aa5cdd3c4c43dab5c/SolidCode/SolidPython/issues/210 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb2c866dfac20015e807f5a00a9f1396cd4b6e0007a0747aa5cdd3c4c43dab5c/SolidCode/SolidPython/issues/210 |
| og:image:alt | Example: import solid glob = "**/*" x = solid.cube() solid.scad_render_to_file(x, "test.scad") y = solid.include("test.scad") Result: py_scadparser: Illegal character: test.scad(11) """ py_scadpars... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ali1234 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/SolidCode/SolidPython git https://github.com/SolidCode/SolidPython.git |
| octolytics-dimension-user_id | 622839 |
| octolytics-dimension-user_login | SolidCode |
| octolytics-dimension-repository_id | 1377446 |
| octolytics-dimension-repository_nwo | SolidCode/SolidPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1377446 |
| octolytics-dimension-repository_network_root_nwo | SolidCode/SolidPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width