Issue with MinTTY/MSYS2/bash and sbt showing control characters / no rich text output - sbt

A recent update (of either MinTTY/MSYS2/bash or sbt) started breaking the output of sbt such that control characters are appearing instead of displaying rich text output in the terminal:
From the image you can see that rich text does still work as can be seen from my prompt line, but sbt started showing control characters like ←[0m[.
I'm on windows 11 and it was working perfectly fine last week, and my TERM terminal setting is set to xterm.
After some searching, I found these two posts:
https://github.com/gradle/gradle/issues/13279
https://youtrack.jetbrains.com/issue/IDEA-247532
both suggesting that I should try setting my TERM to cygwin but this did not solve the issue.
Question
How can I isolate where the issue is happening? I highly suspect it's an internal sbt update because the version it's indicating is 1.6.0 but the version I installed was 1.4.4 last year. I just tried uninstalling it and installing 1.6.2 via the installer but the issue still persists.
Does anyone have a solution to this issue? Is it a general thing that affects certain CLIs? From the links above it looks like it used to impact gradle as well.

Looks like it was MinTTY or MSYS2 because an update of those fixed the issue.
Working version of MSYS2:
$ cat /proc/version
MINGW64_NT-10.0-19044 version 3.3.5-341.x86_64 (#WIN-MG5BEJ9M9JD) (gcc version 11.3.0 (GCC) ) 2022-07-08 09:41 UTC
and MinTTY:

Related

Error message when trying to build website using distill: invalid version specification

I have a distill website. When I try to hit "Build Website" using RStudio I get this error message:
Error: invalid version specification '2021.09.0+351' Execution halted
Exited with status 1.
Both issues are already fixed in development version of distill.
It was previously found by us or reported in Github Issues. Don't hesitate to look there when you have trouble, and also test the development v
This issue
Error: invalid version specification
is caused when you used the last RStudio IDE version.
The blank page issue is caused when using last rmarkdown version.
We'll make a patch release to CRAN very soon, but in the meantime, please install the development version of distill
remotes::install_github("rstudio/distill")
It is not a fully satisfactory answer, but I faced the same issue. Running:
rmarkdown::render_site(encoding = 'UTF-8')
on a terminal/command line window does run the command fully. However, the site is created only with blank pages (even though if you check the html source, the page is there, hidden).
I'm tracing the blank pages to the upgrade of the rmarkdown package, in my case, from 2.8 to 2.11. This brings with it a new dependency of jquerylib which might be a cause of this as well. This has started to happen with the new version of RStudio 2021.09.0 Build 351. This is consistent with the error message you and I got.
I tried to downgrade rmarkdown but every time you knit from RStudio with that version, it forces the upgrade. I think this should be reported as a bug, as it was clearly working before and now there are several issues that all seemed to be linked with all the upgrades (not compiling from inside RStudio, compiling with blank pages).
(I would have added this as a comment rather than a solution, but I do not have enough reputation yet)

Building Tools are missing in RStudio

First of all, I am working on a Mac. I am trying to install Blotter from GitHub. I found several descriptions of how to do that but my RStudio tells me that I am missing Building tools and gives me a link (https://www.cnet.com/how-to/install-command-line-developer-tools-in-os-x/) where it is described to do that. So far so good. I downloaded Xcode and the command line tools for Mac and installed those. Nothing changed even after restarting R. Then I found this https://cran.r-project.org/bin/macosx/tools/. I installed it and during that, it told me that I had to do the following
"This package will install clang 6.0.0 for OS X 10.11 (El Capitan) or higher with OpenMP support in /usr/local/clang6
In order to use this compiler you have to add /usr/local/clang6/bin to the PATH environment variable such as
export PATH=/usr/local/clang6/bin:$PATH"
So I changed the environmental variable path as follows http://blog.tonytsai.name/blog/2018-05-07-setting-path-variable-for-gs-command-in-rstudio/.
How I changed the PATH variable.
Again I restarted R but still, nothing changed. I still get the notice that the building tool is missing.
Somehow it seems to me that I installed everything correctly but R doesn't recognize the Programmes. Does anyone have an idea? I tried to search for settings to tell R that I installed the command line tool but couldn't really find anything helpful.
Ok, a bit of an update.
Best I can see it that Blotter is built and stored on R-Forge packages under a package called RStrategist
In R console type/cut & paste this.
install.packages('RStrategist',repos='http://R-Forge.r-project.org')
See R forR-Forge for more details. Once this has been installed run instead.
library(RStrategist)
Unfortunately, I am not willing to install this package and see if it works mainly because 1) don't need it nor know how to use it, 2) not sure how good packages are from R-forge, though it seems legit, but, this brings me back to point one.
So before i read the updated answer of Conrad Thiele i was trying around bit. Basically i deleted R, R Studio, Xcode and Command Line tools. Then i installed Xcode, Command Line tools, R and RStudio. Then i followed the notice on https://cran.r-project.org about the tools and installed both stated tools. As mentioned in the original question the Clang package tells you to change the Environmental Variable. And there was the mistake i believe. I originally simply pasted "PATH=/usr/local/clang6/bin:$PATH" into the the ".Renviron" file. With reading up online i noticed that "export PATH=/usr/local/clang6/bin:$PATH" is actually a Command for the Mac Terminal. After executing it, it sill didn't work but then i remembered that i still had the Path "PATH=/usr/local/clang6/bin:$PATH" in the the ".Renviron" file. Once i deleted that it worked. So i guess the key was that with changing the Environmental Variable correctly R found the connection with the right tool. Patients paid off.

Why can't I run TexMaker?

Background
Currently workingh on an Arch Linux and I want to modify and edit tex documents. I though texmaker would be the best available tool for this.
Problem
It seems to have installed perfectly, but I get the error below whenever I try to run texmaker from the terminal. If I double click to the shortcut, I don't even get an error.
texmaker: /usr/lib/libQt5Core.so.5: version `Qt_5.8' not found
(required by /usr/lib/libQt5Sensors.so.5)
texmaker:/usr/lib/libQt5Core.so.5: version `Qt_5.8' not found
(required by /usr/lib/libQt5Positioning.so.5)
texmaker: /usr/lib/libQt5Core.so.5: version `Qt_5.8' not found
(required by /usr/lib/libQt5WebChannel.so.5)
Is this related to ROS that I have installed on my system?
Did a simple yaourt -Syu and now it works!

Lyx 2.1 RC1, warning message "the selected document class Article" requires external files

I just installed 2.1 RC1 bundle on windows 7
Each time I try to save a document (also when I first open Lyx), I get this message
LyX-210RC1-Bundle-1.exe
why this happens? Do I need to configure something else? I had Lyx 2.0 before, but I uninstalled that before installing Lyx 2.1
I also got this message. For me, this is what I think was going on:
The first execution of Lyx very quietly (i.e., in the background) performs package updates for MiKTeX. Afterwards, it actually launches Lyx.
However, if you launch a second invocation of Lyx immediately after the first (since nothing has yet displayed), it will launch w/o the packages it requires and result in the message that you see.
I suppose if MiKTeX was not / improperly installed, you could also encounter this issue.
#scottkosty is right--this should not happen and having downloaded the latest version of LyX 2.1.1. I had the same problem (NOTE: I am, however, working on a Mac). These are the steps I took to finally get things working in my case:
If you have the above issues working on a Mac with OS X try the following:
1. reinstall latest version MacTeX at: [https://tug.org/mactex/][1]
2. install latest version of LyX: 2.1.1. (see: [http://www.lyx.org/Download][2])
3. Tools --> Reconfigure.
4. Restart, check: Document --> Settings --> Document Classes: these should now be available.
i had a similar problem but I believe I sorted it. If you can get someone to send you their 'templates' folder (i just put my one from my old laptop on googledrive), then go to lyx, go preferences, go paths, and then set the path to go to the location of your new templates folder. I then restarted it and it worked! Hope it helps :)

'Malformed' Error on R package check with --as-cran. Package built with Rstudio

A few months ago I launched the 'table1xls' package, built using Rstudio. Since then some revisions have naturally accumulated. I wanted to share the revisions on CRAN in time for the R 3.1.0 rollout.
The problem is, for a couple of months now the --as-cran check option is giving me this annoying error:
* checking CRAN incoming feasibility ...Error: Line starting '<HTML><HEAD><TITLE>C ...' is malformed!
Now, I have no HTML in my package, nor any files that compile into HTML format. My work desktop (where this error occurs) is behind a firewall that requires the --internet2 flag when launching R, but Rstudio seems generally unfazed by that.
I saw this question pop up here and there, including on Rstudio's support pages where it remains unanswered. Any insight will be gratefully accepted.
Btw, my package is available on GitHub, user name "AssafOron". I wonder whether users can install it directly via devtools::install_github.
Oh, forgot to add: I'm using Windows (it's still XP over here) and this error is on the 3.1.0 alpha. But the same error was present with 3.0.2 as well. My top 2 suspects are something with Rstudio, or the firewall.
That looks very much like a proxy issue.
A simple fix: upload the package to win-builder where you can test against the released version of R as well as the development version. If they do not flag anything ... then you know you;re good.
Else, go to a local Starbucks or public library and use different connectivity.

Resources