Title: Error: undefined method `value' for :call:Symbol · Issue #1434 · prettier/plugin-ruby · GitHub
Open Graph Title: Error: undefined method `value' for :call:Symbol · Issue #1434 · prettier/plugin-ruby
X Title: Error: undefined method `value' for :call:Symbol · Issue #1434 · prettier/plugin-ruby
Description: Bumping into this error: ["INFO" - 11:01:30 AM] Formatting file:///Users/.../project/app/controllers/users_controller.rb ["INFO" - 11:01:30 AM] Using config file at /Users/.../project/.prettierrc ["INFO" - 11:01:30 AM] PrettierInstance: ...
Open Graph Description: Bumping into this error: ["INFO" - 11:01:30 AM] Formatting file:///Users/.../project/app/controllers/users_controller.rb ["INFO" - 11:01:30 AM] Using config file at /Users/.../project/.prettierrc [...
X Description: Bumping into this error: ["INFO" - 11:01:30 AM] Formatting file:///Users/.../project/app/controllers/users_controller.rb ["INFO" - 11:01:30 AM] Using config file at /Users/.../p...
Opengraph URL: https://github.com/prettier/plugin-ruby/issues/1434
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error: undefined method `value' for :call:Symbol","articleBody":"Bumping into this error:\r\n```\r\n[\"INFO\" - 11:01:30 AM] Formatting file:///Users/.../project/app/controllers/users_controller.rb\r\n[\"INFO\" - 11:01:30 AM] Using config file at /Users/.../project/.prettierrc\r\n[\"INFO\" - 11:01:30 AM] PrettierInstance:\r\n{\r\n \"modulePath\": \"/Users/.../project/node_modules/prettier/index.cjs\",\r\n \"importResolver\": {},\r\n \"callMethodResolvers\": {},\r\n \"currentCallMethodId\": 15,\r\n \"version\": \"3.2.5\"\r\n}\r\n[\"INFO\" - 11:01:30 AM] Using ignore file (if present) at /Users/.../project/.prettierignore\r\n[\"INFO\" - 11:01:30 AM] File Info:\r\n{\r\n \"ignored\": false,\r\n \"inferredParser\": \"ruby\"\r\n}\r\n[\"INFO\" - 11:01:30 AM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used\r\n[\"INFO\" - 11:01:30 AM] Prettier Options:\r\n{\r\n \"filepath\": \"/Users/.../project/app/controllers/users_controller.rb\",\r\n \"parser\": \"ruby\",\r\n \"plugins\": [\r\n \"/Users/.../project/node_modules/@prettier/plugin-ruby/src/plugin.js\"\r\n ]\r\n}\r\n[\"ERROR\" - 11:01:30 AM] Error formatting document.\r\n[\"ERROR\" - 11:01:30 AM] undefined method `value' for :call:Symbol\r\nError: undefined method `value' for :call:Symbol\r\n at Socket.\u003canonymous\u003e (file:///Users/.../project/node_modules/@prettier/plugin-ruby/src/plugin.js:174:23)\r\n at Socket.emit (node:events:529:35)\r\n at endReadableNT (node:internal/streams/readable:1368:12)\r\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\r\n[\"INFO\" - 11:01:30 AM] Formatting completed in 67ms.\r\n```\r\nhere are my ruby and node versions:\r\n```\r\nnodejs 16.14.2 /Users/me/.tool-versions\r\nruby 3.2.3 /Users/me/.tool-versions\r\n```\r\nSame versions are used inside the project repository.\r\nHere are my Prettier and prettier-ruby versions inside my package.json file:\r\n```\r\n \"@prettier/plugin-ruby\": \"^3.2.2\",\r\n \"prettier\": \"2.7.1\",\r\n```\r\nMy .prettierrc file :\r\n```\r\n{\r\n \"plugins\": [\"@prettier/plugin-ruby\"]\r\n}\r\n ```\r\n My .prettierrc.json file :\r\n ```\r\n {\r\n \"printWidth\": 80\r\n}\r\n```\r\n","author":{"url":"https://github.com/chimpanstache","@type":"Person","name":"chimpanstache"},"datePublished":"2024-04-23T09:25:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/1434/plugin-ruby/issues/1434"}
| 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:bf0c56fa-874a-2a37-c601-77bbbce22dd1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96EA:41B0D:5C42494:7DF7AC0:698D04CD |
| html-safe-nonce | 80c58e599e1d93ebc930064540d9b0534d2bbaf387efa557e5e0c8bfdc8d924c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkVBOjQxQjBEOjVDNDI0OTQ6N0RGN0FDMDo2OThEMDRDRCIsInZpc2l0b3JfaWQiOiI0OTIzODAwMDg5NzY1NDkwNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8e414c65964da4a8f81dcadb47c6be7f975d224501dac385c2bf744277374878 |
| hovercard-subject-tag | issue:2258384748 |
| 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/prettier/plugin-ruby/1434/issue_layout |
| twitter:image | https://opengraph.githubassets.com/25ef59b46a86bef0103e50effd806038c4089a78e95a22f4071e5f933fe3b451/prettier/plugin-ruby/issues/1434 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/25ef59b46a86bef0103e50effd806038c4089a78e95a22f4071e5f933fe3b451/prettier/plugin-ruby/issues/1434 |
| og:image:alt | Bumping into this error: ["INFO" - 11:01:30 AM] Formatting file:///Users/.../project/app/controllers/users_controller.rb ["INFO" - 11:01:30 AM] Using config file at /Users/.../project/.prettierrc [... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chimpanstache |
| hostname | github.com |
| expected-hostname | github.com |
| None | f2da95634bce8a94cfa4123788169bfabdf845fd1d790fbaaaaab09dcfebdf28 |
| turbo-cache-control | no-preview |
| go-import | github.com/prettier/plugin-ruby git https://github.com/prettier/plugin-ruby.git |
| octolytics-dimension-user_id | 25822731 |
| octolytics-dimension-user_login | prettier |
| octolytics-dimension-repository_id | 134440972 |
| octolytics-dimension-repository_nwo | prettier/plugin-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 134440972 |
| octolytics-dimension-repository_network_root_nwo | prettier/plugin-ruby |
| 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 | c21843b18feba17d11efb1895a7db61e8672f2cf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width