Title: Private static variables cause meaningless exception on mono · Issue #1073 · scriptcs/scriptcs · GitHub
Open Graph Title: Private static variables cause meaningless exception on mono · Issue #1073 · scriptcs/scriptcs
X Title: Private static variables cause meaningless exception on mono · Issue #1073 · scriptcs/scriptcs
Description: The following script: using Octopus.Client; private static string regexString = @"[\d\.]+[^-]+\.(?
Open Graph Description: The following script: using Octopus.Client; private static string regexString = @"[\d\.]+[^-]+\.(?
X Description: The following script: using Octopus.Client; private static string regexString = @"[\d\.]+[^-]+\.(?<number>\d+)-{0}"; private static string regexStringWithoutBranch = @"[\d\.]+[...
Opengraph URL: https://github.com/scriptcs/scriptcs/issues/1073
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Private static variables cause meaningless exception on mono","articleBody":"The following script: \n\n``` csharp\nusing Octopus.Client;\n\nprivate static string regexString = @\"[\\d\\.]+[^-]+\\.(?\u003cnumber>\\d+)-{0}\";\nprivate static string regexStringWithoutBranch = @\"[\\d\\.]+[^-]+\\.(?\u003cnumber>\\d+)$\";\n\nvar octopusUrl = \"https://demo.octopusdeploy.com\";\nvar octopusApi = \"api-key\";\n\nSystem.Net.ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, error) => true;\n\nvar endpoint = new OctopusServerEndpoint(octopusUrl, octopusApi);\nvar repository = new OctopusRepository(endpoint);\n\nvar releases = repository.Releases.FindAll().ToList();\n\nforeach (var release in releases)\n{\n Console.WriteLine(release.Version);\n}\n```\n\nThe scripts needs `scriptcs -install Octopus.Client`\nWorks perfectly on windows. On ubuntu with mono, i get the following error:\n\n```\ntobi@tobuntu-v:~/Desktop/scriptcs$ scriptcs issue.csx \nERROR: Script execution failed: Argument is out of range.\nParameter name: index.\n```\n\nHow can i get more info about the error? The -debug flag doesn't give me enough information to fix the issue.\n\nIs it possible that this is a mono issue?\n","author":{"url":"https://github.com/tobiaszuercher","@type":"Person","name":"tobiaszuercher"},"datePublished":"2015-07-31T11:12:57Z","url":"https://github.com/scriptcs/scriptcs/issues/1073"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:f24e2530-821a-8698-f4cf-ef9ef3c37fbd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED64:184B81:2BC3490:39B23F4:6B001A9B |
| html-safe-nonce | 84147c18a8f01f62d2b2503d106e0ea6cf8bdab0120e351302c7de1b7713b1ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDY0OjE4NEI4MToyQkMzNDkwOjM5QjIzRjQ6NkIwMDFBOUIiLCJ2aXNpdG9yX2lkIjoiNDA0MzU1MDMwNjEwODE4NTI0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6e3ecef6516dcd8848388447071dcd502d315c0b5d35e6608a2431bc2cd95c29 |
| hovercard-subject-tag | issue:98370438 |
| 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/scriptcs/scriptcs/1073/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ced208ca6e4dc89e8178b73949b47736a72d5447cbe9942e1a6245a27d5c064/scriptcs/scriptcs/issues/1073 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ced208ca6e4dc89e8178b73949b47736a72d5447cbe9942e1a6245a27d5c064/scriptcs/scriptcs/issues/1073 |
| og:image:alt | The following script: using Octopus.Client; private static string regexString = @"[\d\.]+[^-]+\.(? |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tobiaszuercher |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/scriptcs/scriptcs git https://github.com/scriptcs/scriptcs.git |
| octolytics-dimension-user_id | 3758046 |
| octolytics-dimension-user_login | scriptcs |
| octolytics-dimension-repository_id | 8473240 |
| octolytics-dimension-repository_nwo | scriptcs/scriptcs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8473240 |
| octolytics-dimension-repository_network_root_nwo | scriptcs/scriptcs |
| 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 | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width