{"action":"closed","issue":{"url":"https://api.github.com/repos/James-Yu/LaTeX-Workshop/issues/564","repository_url":"https://api.github.com/repos/James-Yu/LaTeX-Workshop","labels_url":"https://api.github.com/repos/James-Yu/LaTeX-Workshop/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/James-Yu/LaTeX-Workshop/issues/564/comments","events_url":"https://api.github.com/repos/James-Yu/LaTeX-Workshop/issues/564/events","html_url":"https://github.com/James-Yu/LaTeX-Workshop/issues/564","id":316501887,"number":564,"title":"Formatting Requires perl (?)","user":{"login":"u2berggeist","id":20801821,"avatar_url":"https://avatars1.githubusercontent.com/u/20801821?v=4","gravatar_id":"","url":"https://api.github.com/users/u2berggeist","html_url":"https://github.com/u2berggeist","followers_url":"https://api.github.com/users/u2berggeist/followers","following_url":"https://api.github.com/users/u2berggeist/following{/other_user}","gists_url":"https://api.github.com/users/u2berggeist/gists{/gist_id}","starred_url":"https://api.github.com/users/u2berggeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2berggeist/subscriptions","organizations_url":"https://api.github.com/users/u2berggeist/orgs","repos_url":"https://api.github.com/users/u2berggeist/repos","events_url":"https://api.github.com/users/u2berggeist/events{/privacy}","received_events_url":"https://api.github.com/users/u2berggeist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-21T15:42:37Z","updated_at":"2018-04-21T15:45:17Z","closed_at":"2018-04-21T15:45:17Z","author_association":"NONE","body":"### Description\r\n\r\nI'm trying to have the formatter work and am running into issues. From #118 , I'm assuming the implementation is very similar if not identical to [latex-formatter](https://marketplace.visualstudio.com/items?itemName=nickfode.latex-formatter). I followed the instructions he has for the installation along with the general instructions from [this StackExchange answer](https://tex.stackexchange.com/a/334511/122509) and am getting `failed with exit code 1` message.\r\n\r\nI do _not_ have perl installed on my computer and would like not to. I assumed the use of `latexindent.exe` would circumvent this, but I'm not sure tbh. Scrounging around the repo for latex-formatter (specifically [this folder](https://github.com/cmhughes/latexindent.pl/tree/master/helper-scripts)) makes it seem like it's meant to run without perl (ie. `latexindent.exe` should be a self contained program with no dependencies to perl).\r\n\r\n### Log messages\r\n\r\n\r\n<details>\r\n<summary>LaTeX Workshop Output</summary>\r\n\r\n```\r\n[11:25:09] Formatting failed with exit code 1\r\n[11:25:09] stderr: latexindent: The script engine could not be found.\r\nlatexindent: Data: scriptEngine=\"perl.exe\"\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Developer Tools Console</summary>\r\n<!-- To access the log, click 'help' -> 'Toggle Developer Tools. Paste anything suspicious. -->\r\n</details>\r\n\r\n### How to reproduce\r\n\r\n<!-- Please describe how to reproduce the issue/problem, or suggested actions for new features. -->\r\nFollowing instructions from [this StackExchange answer](https://tex.stackexchange.com/a/334511/122509):\r\n1.  Install latexindent via MiKTeX\r\n2. Download latexindent zip from [CTAN](https://www.ctan.org/pkg/latexindent) (pretty sure this is to get the `latexindent.exe`)\r\n3. Replace contents of folder MiKTeX just created with CTAN zip file into the folder \r\n4. ~Profit~\r\n\r\n\r\n### Expected behavior\r\n\r\nReformat the code.\r\n\r\n### Actual behavior\r\n\r\nNothing, error.\r\n\r\n\r\n"}}
{"actor":{"display_login":"James-Yu"}}