{"action":"created","issue":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3018","repository_url":"https://api.github.com/repos/sagemathinc/cocalc","labels_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3018/labels{/name}","comments_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3018/comments","events_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3018/events","html_url":"https://github.com/sagemathinc/cocalc/issues/3018","id":346164110,"node_id":"MDU6SXNzdWUzNDYxNjQxMTA=","number":3018,"title":"latex force rebuild does not force reload the PDF preview","user":{"login":"haraldschilly","id":207405,"node_id":"MDQ6VXNlcjIwNzQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/207405?v=4","gravatar_id":"","url":"https://api.github.com/users/haraldschilly","html_url":"https://github.com/haraldschilly","followers_url":"https://api.github.com/users/haraldschilly/followers","following_url":"https://api.github.com/users/haraldschilly/following{/other_user}","gists_url":"https://api.github.com/users/haraldschilly/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldschilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldschilly/subscriptions","organizations_url":"https://api.github.com/users/haraldschilly/orgs","repos_url":"https://api.github.com/users/haraldschilly/repos","events_url":"https://api.github.com/users/haraldschilly/events{/privacy}","received_events_url":"https://api.github.com/users/haraldschilly/received_events","type":"User","site_admin":false},"labels":[{"id":223379260,"node_id":"MDU6TGFiZWwyMjMzNzkyNjA=","url":"https://api.github.com/repos/sagemathinc/cocalc/labels/A-LaTeX","name":"A-LaTeX","color":"fbca04","default":false},{"id":189237040,"node_id":"MDU6TGFiZWwxODkyMzcwNDA=","url":"https://api.github.com/repos/sagemathinc/cocalc/labels/I-enhancement","name":"I-enhancement","color":"cc0000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-31T12:24:11Z","updated_at":"2018-07-31T12:56:26Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"this is a bit tricky to explain, but here is an attempt:\r\n\r\n1. build .tex file, which contains a custom .sty file. at the bottom is an example just for testing.\r\n2. building again doesn't change anything.\r\n3. modify the .sty file\r\n4. building again doesn't change (expected, and related to #3017 )\r\n5. clicking \"force rebuild\" in the build dialog does cause a rebuild. the bottom of the output clearly says\r\n   ```\r\n   Rule 'pdflatex': File changes, etc:\r\n   Changed files, or newly in use since previous run(s):\r\n      'myownstyle4.sty'\r\n   ```\r\n6. but the PDF preview doesn't change! switching to PDF native shows the changes, though.\r\n\r\nexpected: after a force rebuild, also the PDF is reloaded without any additional conditions... (I haven't checked the code, though)\r\n\r\n\r\n---\r\n\r\ntex file\r\n\r\n```\r\n[...]\r\n\\usepackage{myownstyle4}\r\n\\begin{document}\r\nhi: \\hi{}\r\n\\end{document}\r\n```\r\n\r\n`myownstyle4.sty` in the same directory\r\n\r\n```\r\n\\NeedsTeXFormat{LaTeX2e}[1994/06/01]\r\n\\ProvidesPackage{mypackage}\r\n  [2011/01/11 v0.01 LaTeX package for testing]\r\n\\def\\hi{FOO BAR}  % change FOO BAR\r\n\\endinput\r\n```"},"comment":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/comments/409210941","html_url":"https://github.com/sagemathinc/cocalc/issues/3018#issuecomment-409210941","issue_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3018","id":409210941,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTIxMDk0MQ==","user":{"login":"haraldschilly","id":207405,"node_id":"MDQ6VXNlcjIwNzQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/207405?v=4","gravatar_id":"","url":"https://api.github.com/users/haraldschilly","html_url":"https://github.com/haraldschilly","followers_url":"https://api.github.com/users/haraldschilly/followers","following_url":"https://api.github.com/users/haraldschilly/following{/other_user}","gists_url":"https://api.github.com/users/haraldschilly/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldschilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldschilly/subscriptions","organizations_url":"https://api.github.com/users/haraldschilly/orgs","repos_url":"https://api.github.com/users/haraldschilly/repos","events_url":"https://api.github.com/users/haraldschilly/events{/privacy}","received_events_url":"https://api.github.com/users/haraldschilly/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T12:56:26Z","updated_at":"2018-07-31T12:56:26Z","author_association":"CONTRIBUTOR","body":"hmm, I experimented a bit around, thought something like adding `this._forget_pdf_document();` to the `force_build` function helps, but it doesn't. I also saw that forget-function is called in `run_latex`. However, maybe it's just an oversight to not forcefully refresh the view, i.e. that `set_reload` method? Can we improve the documentation of  `set_reload`? "}}
{"actor":{"display_login":"haraldschilly"}}