emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
613 stars 160 forks source link

`Invalid function: with-ess-process-buffer` errors in tracebug #1203

Closed svraka closed 2 years ago

svraka commented 2 years ago

With ESS installed form master, I get errors debugging an R function. The debugger works but it doesn't show the source while stepping through a function, and before every step Emacs hangs for around a second. Here are the relevant messages:

error in process filter: ess--command-delimited-output-info: Missing newline in command output
error in process filter: Missing newline in command output
error in process filter: ess--dbg-find-buffer: Invalid function: with-ess-process-buffer
error in process filter: Invalid function: with-ess-process-buffer
error in process filter: ess--dbg-find-buffer: Invalid function: with-ess-process-buffer
error in process filter: Invalid function: with-ess-process-buffer
(M-C)cont (C-M-S-c)cont-multi (M-N)next (C-M-S-n)next-multi (M-U)up (M-Q)quit
error in process filter: ess--dbg-find-buffer: Invalid function: with-ess-process-buffer
error in process filter: Invalid function: with-ess-process-buffer

With e83ac622fe7e3cbfc848481a9257e5ed5c7b5afb, right before the latest changes to tracebug everything works as expected. Although I still get some error messages:

error in process filter: ess--command-delimited-output-info: Missing newline in command output
error in process filter: Missing newline in command output
(M-C)cont (C-M-S-c)cont-multi (M-N)next (C-M-S-n)next-multi (M-U)up (M-Q)quit [2 times]

System info:

In GNU Emacs 28.1 (build 2, x86_64-w64-mingw32)
 of 2022-04-09 built on fv-az449-585
Repository revision: 04afff7cc015bc553c5f7abe57d6b6b23448bbea
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.18363
System Description: Microsoft Windows 10 Enterprise (v10.0.1909.18363.1801)

Configured using:
 'configure --prefix=/mingw64 --build=x86_64-w64-mingw32 --with-modules
 --without-dbus --without-compress-install --with-native-compilation
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe'
 CPPFLAGS=-D__USE_MINGW_ANSI_STDIO=1 LDFLAGS=-pipe'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LIBXML2 MODULES NATIVE_COMP NOTIFY
W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM
ZLIB
vspinu commented 2 years ago

Thanks!

svraka commented 2 years ago

Thanks for the quick fix!