Repository navigation
Bugs found while writing the memory bank docs #120
Copy link
Copy link
Closed
Description
These came up while writing the memory-bank/ docs. None are fixed yet. Each is marked confirmed (checked by running or grepping) or from reading code (not run).
R
- rstudio/reactlog#125 (invalid, test only): Backslashes are halved in the rendered page (confirmed).
reactlog_render()(R/renderReactLog.R) puts the JSON into the HTML withsub(fixed = TRUE), but\\in the replacement is still treated as an escape. A labela\bcomes out as"a\b", which JS reads as a backspace. A backslash right before a quote may end the JS string early and break the page. - rstudio/reactlog#126 (keeps passing
...; docs fixed instead):reactlog_show()errors on extra args (confirmed). The docs say...is ignored, but it is passed toreactlog_render(), soreactlog_show(log, foo = 1)gives "unused argument". - rstudio/reactlog#127:
reactlog_render()prints "Loading required namespace: shiny" (confirmed).requireNamespace("shiny")is notquietly = TRUE. - rstudio/reactlog#128:
shiny_version_required()breaks ifSuggestsis reformatted (from reading code). It only findsshiny (with a space. If that fails,assert_shiny_version()calls it again inside its error message and shows a confusing error.
Viewer (srcjs)
- rstudio/reactlog#139:
invalidateLateris not handled (confirmed). Shiny logs it, butGraph.addEntry()(srcjs/graph/Graph.js) has no case, so each one hitsdefaultand callsconsole.error. Shiny also sends the rawctx$idwithout the"ctx"prefix for this action. - rstudio/reactlog#140:
asyncStopshows "Start asynchronous calculations" (confirmed), the same text asasyncStart(srcjs/layout/logEntry.js). - rstudio/reactlog#141: Shift+Right on the last step reads past the end of the log (from reading code).
nextTick(srcjs/updateGraph/tick.js) only checkscurTick >= log.length, sologEntry.updatereadsrlog.log[log.length].time. - rstudio/reactlog#142: Double-click search is not anchored (from reading code). Double-clicking
r3also matchesr30,r31, and labels containing "r3" (srcjs/updateGraph/searchString.js). - rstudio/reactlog#143 (filter part invalid; fixes a nearby skipped-mark bug): User-mark navigation ignores the filter (from reading code).
nextUserMark/prevUserMark(srcjs/updateGraph/userMarks.js) do not checkfilteredStepsVisible, so they can land on a hidden step. The comments there also describe the opposite branch. - rstudio/reactlog#144:
rNoCtxid check never matches (from reading code).Graph.addEntry()skips"rNoCtx", butdependsOnchecks"rNoCtxReactId". One of the two checks is dead. - rstudio/reactlog#145: Wrong
thisindisplayAtStep()(from reading code). Thelayoutstophandler is a plainfunction, sothis.cytoLayout = nulldoes not clear theGraphAtStepfield (srcjs/graph/GraphAtStep.js). - rstudio/reactlog#146 (invalid, doc note only): Layout skipped when edge counts match (from reading code).
displayAtStep()does not rerun the layout when the number of added edges equals the number removed, even if they are different edges. - rstudio/reactlog#147: Timeline click is slightly off (from reading code). In
srcjs/layout/progressBar.jsthe click position is scaled bylengthwhile the fill useslength - 1. The_has(e.originalEvent, "buttons")check is always false and only works by accident.
Build and tooling
- rstudio/reactlog#129 (partly: hook skips Flow; flow-bin upgrade left for later):
npm run flow-reportfails on Apple Silicon without Rosetta (confirmed).flow-bin0.86 has only an x86_64 macOS binary (spawn Unknown system error -86). This also breaks the pre-commit hook forsrcjs/changes. - rstudio/reactlog#130: Commit hook stages
reactlog.jsbut notreactlog.js.map(confirmed). Thegit_add_compiledscript inpackage.jsonleaves the tracked source map stale. - rstudio/reactlog#131: No Flow stubs for jquery/lodash on a fresh clone (confirmed missing; effect from reading code).
flow-typed/is gitignored and postinstall no longer creates it. - rstudio/reactlog#132: License scripts say GPL-3 (confirmed).
bin/update-license.jsandscripts/license_checker.jsstill print "distributed under GPL-3"; the package is MIT. The header comment inscripts/license_checker.jssays to pipe it toLICENSE, which would overwrite the MIT file.
Package build, docs, and release files
- rstudio/reactlog#133:
.Rbuildignoregaps and leftovers (confirmed)..context/and a worktree's.gitfile end up in the tarball.^inst/reactlogAsset/report.html$points at the old path (should beinst/reactlog/reactlogAsset/).^_pkgdown\.yml$,^appveyor\.yml$,^\.travis\.yml$,^src_oldare stale and^\.githubis listed twice. - rstudio/reactlog#134:
inst/log-files/old_log.jsis unreadable (confirmed). It uses the pre-version-1 format (let log,id,ctx/depactions), nothing uses it, and it ships in the package. - rstudio/reactlog#135: User-mark shortcut disagrees between docs (confirmed). The vignette says
Ctrl/Cmd + F4; the README saysCtrl/Cmd + Shift + F3. The vignette also leaves out Space, Shift+arrows,f, and Esc in the search box. - rstudio/reactlog#136 (badge and index.html only;
cran-comments.mdandrevdep/kept on purpose): Stale release files (confirmed). The README badge says Node 12.x;cran-comments.mdandrevdep/still hold the 2022 1.1.1 results; rootindex.htmlredirects to adocs/folder that does not exist. - rstudio/reactlog#137:
scripts/rhub.Ruses the old rhub API (from reading code).rhub::check_for_cran()andrhub:::build_package()are gone in rhub 2.x. - rstudio/reactlog#138 (invalid, doc note only): pkgdown docsearch uses v2 settings (from reading code).
pkgdown/_pkgdown.ymlhasapi_key/index_namewith noapp_id.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
schloerke commentedon Oct 20, 2026
All linked PRs (#125–#147) are merged. The flow-bin part of #129 no longer applies: Flow was replaced by TypeScript in #150.