R-nvim / R.nvim

Neovim plugin to edit R files
GNU General Public License v3.0
128 stars 15 forks source link

Failure to build nvimcom #150

Closed akthe-at closed 2 weeks ago

akthe-at commented 2 weeks ago

Good morning!

I noticed after the latest update that nvimcom fails to build, I am including the debug information, I am wondering if this is an artifact of new changes or if I need to dig deeper into my system and see if something changed ( I don't think this is the case but perhaps!)

before_rns.R stderr: .build_packages() exit status 0* installing to library 'C:/Users/ARK010/AppData/Local/Programs/R/R-4.3.3/library'* installing *source* package 'nvimcom' ...** using staged installation
** libs
using C compiler: 'gcc.exe (GCC) 12.3.0'
nvimcom.c: In function 'nvimcom_parse_received_msg':
nvimcom.c:1100:9: error: 'flag_glbenv' undeclared (first use in this function) 1100 |         flag_glbenv = 1;      |         ^~~~~~~~~~~
nvimcom.c:1100:9: note: each undeclared identifier is reported only once for each function it appears in
nvimcom.c:1101:9: warning: implicit declaration of function 'nvimcom_fire'; did you mean 'nvimcom_task'? [-Wimplicit-function-declaration] 1101 |         nvimcom_fire();      |         ^~~~~~~~~~~~      |
      nvimcom_task
make: *** [C:/Users/ARK010/AppData/Local/Programs/R/R-4.3.3/etc/x64/Makeconf:265: nvimcom.o] Error 1
ERROR: compilation failed for package 'nvimcom'
* removing 'C:/Users/ARK010/AppData/Local/Programs/R/R-4.3.3/library/nvimcom'
Error in do_exit(status = status) : .install_packages() exit status 1
Error in do_exit(status = status) : .install_packages() exit status 1Execution halted

Why build nvimcom: Nvimcom not installed
before_rns.R stdout: * checking for LF line-endings in source and make files and shell scripts* checking for empty or unneeded directories* building 'nvimcom_0.9.42.tar.gz'ECHO: Installing nvimcom...^T
gcc  -I"C:/Users/ARK010/AppData/Local/Programs/R/R-4.3.3/include" -DNDEBUG     -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -D`C:/Users/ARK010/AppData/Local/Programs/R/R-4.3.3/bin/R --slave -e 'cat(Sys.info()[[1]])'` -DLWS_NO_FORK  -DWIN32   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c common.c -o common.o
gcc  -I"C:/Users/ARK010/AppData/Local/Programs/R/R-4.3.3/include" -DNDEBUG     -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -D`C:/Users/ARK010/AppData/Local/Programs/R/R-4.3.3/bin/R --slave -e 'cat(Sys.info()[[1]])'` -DLWS_NO_FORK  -DWIN32   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c nvimcom.c -o nvimcom.o

Time:
  windows setup: 0.0001341
  global setup: 0.0134369
  check health (async): 0.0047087
  before_rns.R (async): 8.5248789
Press ENTER or type command to continue
oli666 commented 2 weeks ago

Same problem on my end.

NVIM v0.11.0-dev-267+g20a7eebec Build type: RelWithDebInfo LuaJIT 2.1.1716656478

PSVersion 5.1.22621.3672 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.22621.3672 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

R 4.3.1

jalvesaq commented 2 weeks ago

Could you try again? I don't have access to a Windows machine, but I believe that it will work now.

akthe-at commented 2 weeks ago

@jalvesaq All fixed now, obrigado!

oli666 commented 2 weeks ago

Installs like a breeze - cheers!