Open maikol-solis opened 4 years ago
Hello! This sounds like activating in Rtex files would be a nice addition. I'm afraid that due to me moving to another editor I'm no longer maintaining this extension :slightly_frowning_face: (sorry to disappoint), but don't let that from stop you from making this happen :slightly_smiling_face:.
I strongly encourage you to take a peek at this extension's code, then give implementing it a shot! If your experience is anything like mine, this will be way easier than you expect :smiley:
I'd happily answer questions on the internals of this extension, and I'd be thrilled to accept a PR on this.
Bug Report
Live snippets don't work with Rnw files
Disable all the other extensions except for LaTeX Workshop and LaTeX Utilities, and check that you still see this issue.
You still see this issue?: Yes
Describe the bug
Try to type with the live snippets in a Rnw (Rtex) files.
Expected behaviour
The live snippets worked without problems.
Logs
Please paste the whole log messages here, not parts of ones. It is very important to identify problems. If you think the logs are unrelated, please say so.
LaTeX Workshop Output
``` [14:21:50] Initializing LaTeX Workshop. [14:21:50] Creating file watcher for .pdf files. [14:21:50] Creating LaTeX Workshop http and websocket server. [14:21:50] LaTeX Workshop initialized. [14:21:50] Using "\" to surround selected text with a LaTeX command is deprecated, use ctrl+l,ctrl+w instead. See https://github.com/James-Yu/LaTeX-Workshop/wiki/Snippets#with-a-command. [14:21:50] Server created on 127.0.0.1:42031 [14:21:50] Snippet data loaded. [14:21:50] LaTeX Workshop version: 8.7.2 [14:21:51] Found files that might be root, choose the first one: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.tex [14:21:51] Root file changed from: undefined to /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.tex. Find all dependencies. [14:21:51] Instantiating a new file watcher for /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.tex [14:21:51] Creating file watcher for .bib files. [14:21:51] Parsing /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.tex [14:21:51] Adding /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.tex to file watcher. [14:21:57] Found root file from active editor: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:21:57] Root file changed from: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.tex to /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex. Find all dependencies. [14:21:57] Root file changed -> cleaning up old file watcher. [14:21:57] Instantiating a new file watcher for /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:21:57] Parsing /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:21:57] Adding /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex to file watcher. [14:21:57] Cannot parse /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex: Fall back to regex-based completion. [14:22:17] File watcher: responding to change in /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:22:17] Parsing /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:22:17] /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex changed. Auto build project. [14:22:17] BUILD command invoked. [14:22:17] Building root file: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:22:17] Build root file /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:22:18] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403),/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:22:18] LaTeX build process spawned. PID: 6564. [14:22:18] Cannot parse /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex: Fall back to regex-based completion. [14:22:18] LaTeX log parsed with 36 messages. [14:22:18] Recipe returns with error: 12/null. PID: 6564. message: Latexmk: This is Latexmk, John Collins, 19 Jan. 2017, version: 4.52c. Rule 'pdflatex': File changes, etc: Changed files, or newly in use since previous run(s): '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex' '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.aux' 'CA-403_notas.Rtex' ------------ Run number 1 of rule 'pdflatex' ------------ ------------ Running 'pdflatex -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)" "/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex"' ------------ 'CA-403_notas.fls' and '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.fls' are identical (not copied) at /usr/bin/latexmk line 6973. Latexmk: Log file says output to 'CA-403_notas.pdf' Latexmk: ===For rule 'pdflatex', actual output 'CA-403_notas.pdf' ======appears not to match expected output '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.pdf' Collected error summary (may duplicate other messages): pdflatex: Command for 'pdflatex' gave return code 1 Refer to '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.log' for details Latexmk: Use the -f option to force complete processing, unless error was exceeding maximum runs of latex/pdflatex. . [14:22:18] Cleaning auxillary files and retrying build after toolchain error. [14:22:18] File cleaned: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.aux [14:22:18] File cleaned: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.fls [14:22:18] File cleaned: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.log [14:22:18] File cleaned: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.fdb_latexmk [14:22:18] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403),/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:22:18] LaTeX build process spawned. PID: 6567. [14:22:18] LaTeX log parsed with 36 messages. [14:22:18] Recipe returns with error: 12/null. PID: 6567. message: Latexmk: This is Latexmk, John Collins, 19 Jan. 2017, version: 4.52c. Rule 'pdflatex': Rules & subrules not known to be previously run: pdflatex Rule 'pdflatex': The following rules & subrules became out-of-date: 'pdflatex' ------------ Run number 1 of rule 'pdflatex' ------------ ------------ Running 'pdflatex -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)" "/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex"' ------------ 'CA-403_notas.fls' and '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.fls' are identical (not copied) at /usr/bin/latexmk line 6973. Latexmk: Log file says output to 'CA-403_notas.pdf' Latexmk: ===For rule 'pdflatex', actual output 'CA-403_notas.pdf' ======appears not to match expected output '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.pdf' Collected error summary (may duplicate other messages): pdflatex: Command for 'pdflatex' gave return code 1 Refer to '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.log' for details Latexmk: Use the -f option to force complete processing, unless error was exceeding maximum runs of latex/pdflatex. . [14:27:49] Linter for active file started. [14:27:49] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-I0,-f%f:%l:%c:%d:%k:%n:%m [14:27:49] Found root file from active editor: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:27:49] Root file remains unchanged from: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex. [14:27:49] Linter for active file successfully finished in 0s 87ms [14:27:49] Linter log parsed with 114 messages. [14:27:57] Linter for active file started. [14:27:57] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-I0,-f%f:%l:%c:%d:%k:%n:%m [14:27:57] Linter for active file successfully finished in 0s 46ms [14:27:57] Linter log parsed with 113 messages. [14:27:59] Linter for active file started. [14:27:59] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-I0,-f%f:%l:%c:%d:%k:%n:%m [14:27:59] Linter for active file successfully finished in 0s 49ms [14:27:59] Linter log parsed with 113 messages. [14:28:00] Linter for active file started. [14:28:00] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-I0,-f%f:%l:%c:%d:%k:%n:%m [14:28:00] Linter for active file successfully finished in 0s 51ms [14:28:00] Linter log parsed with 114 messages. [14:28:02] Linter for root file started. [14:28:02] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-f%f:%l:%c:%d:%k:%n:%m ,/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:28:02] Linter for root file successfully finished in 0s 54ms [14:28:02] Linter log parsed with 114 messages. [14:28:02] Linter for active file started. [14:28:02] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-I0,-f%f:%l:%c:%d:%k:%n:%m [14:28:02] Linter for active file successfully finished in 0s 52ms [14:28:02] Linter log parsed with 114 messages. [14:28:04] File watcher: responding to change in /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:28:04] Parsing /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:28:04] /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex changed. Auto build project. [14:28:04] BUILD command invoked. [14:28:04] Building root file: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:28:04] Build root file /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:28:04] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403),/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:28:04] LaTeX build process spawned. PID: 7119. [14:28:04] Cannot parse /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex: Fall back to regex-based completion. [14:28:04] LaTeX log parsed with 36 messages. [14:28:04] Recipe returns with error: 12/null. PID: 7119. message: Latexmk: This is Latexmk, John Collins, 19 Jan. 2017, version: 4.52c. Rule 'pdflatex': File changes, etc: Changed files, or newly in use since previous run(s): '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.aux' ------------ Run number 1 of rule 'pdflatex' ------------ ------------ Running 'pdflatex -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)" "/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex"' ------------ 'CA-403_notas.fls' and '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.fls' are identical (not copied) at /usr/bin/latexmk line 6973. Latexmk: Log file says output to 'CA-403_notas.pdf' Latexmk: ===For rule 'pdflatex', actual output 'CA-403_notas.pdf' ======appears not to match expected output '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.pdf' Collected error summary (may duplicate other messages): pdflatex: Command for 'pdflatex' gave return code 1 Refer to '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.log' for details Latexmk: Use the -f option to force complete processing, unless error was exceeding maximum runs of latex/pdflatex. . [14:28:04] Cleaning auxillary files and retrying build after toolchain error. [14:28:04] File cleaned: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.aux [14:28:04] File cleaned: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.log [14:28:04] File cleaned: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.fls [14:28:04] File cleaned: /home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.fdb_latexmk [14:28:04] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403),/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex [14:28:04] LaTeX build process spawned. PID: 7122. [14:28:05] LaTeX log parsed with 36 messages. [14:28:05] Recipe returns with error: 12/null. PID: 7122. message: Latexmk: This is Latexmk, John Collins, 19 Jan. 2017, version: 4.52c. Rule 'pdflatex': Rules & subrules not known to be previously run: pdflatex Rule 'pdflatex': The following rules & subrules became out-of-date: 'pdflatex' ------------ Run number 1 of rule 'pdflatex' ------------ ------------ Running 'pdflatex -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)" "/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.Rtex"' ------------ 'CA-403_notas.fls' and '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.fls' are identical (not copied) at /usr/bin/latexmk line 6973. Latexmk: Log file says output to 'CA-403_notas.pdf' Latexmk: ===For rule 'pdflatex', actual output 'CA-403_notas.pdf' ======appears not to match expected output '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.pdf' Collected error summary (may duplicate other messages): pdflatex: Command for 'pdflatex' gave return code 1 Refer to '/home/maikol/Dropbox/Apps/Overleaf/Estadística II (CA-403)/CA-403_notas.log' for details Latexmk: Use the -f option to force complete processing, unless error was exceeding maximum runs of latex/pdflatex. . ```LaTeX Utilities Output
``` logs here ```Developer Tools Console
``` logs here ```Screenshots
If applicable, add screenshots to help explain your problem.
Desktop
Additional context
Add any other context about the problem here.