Comments (4)
I had similar issue and I can reproduce the error.
My error log:
Error detected while processing function ctrlspace#keys#Keypressed[14]..ctrlspace#keys#common#ToggleFileModeAndSearch[1]..<SNR>90_toggleListViewAndSearch[2]..ctrlspace#k
eys#common#ToggleFileMode[5]..<SNR>90_toggleListView[18]..ctrlspace#window#Toggle[57]..ctrlspace#engine#Content[2]..<SNR>128_contentFromFileEngine:
line 9:
E684: list index out of range: 0
E116: Invalid arguments for function eval
E15: Invalid expression: eval(results[0])
Error detected while processing function ctrlspace#keys#Keypressed[14]..ctrlspace#keys#common#ToggleFileModeAndSearch[1]..<SNR>90_toggleListViewAndSearch[2]..ctrlspace#k
eys#common#ToggleFileMode[5]..<SNR>90_toggleListView[18]..ctrlspace#window#Toggle:
line 57:
E714: List required
1 line less; before #1 5 seconds ago
Press ENTER or type command to continue
I'm using M1, CtrlSpace 5.0.7 (engine: VIM)
Few things to note
- This error does not occur if I set
g:CtrlSpaceFileEngine
to anything other thanVIM
- Setting
let g:CtrlSpaceEnableFilesCache = 0
also prevents this error - I tried this on linux desktop and I can reproduce it
So, to reproduce the error,
- Use the default file engine
- Use file caching (
let g:CtrlSpaceEnableFilesCache = 1
) - Just
cd
to any directory and hitCtrl-P
(list all files in CtrlSpace buffer) and you get the error - On directories that are not git repository, it may prompts to set root directory, hitting enter produces the error anyway
from vim-ctrlspace.
@crowdigit nice work on both reproducing the issue and figuring out the cause and fix. I compiled and added the binary for darwin_arm in the latest commit
from vim-ctrlspace.
I could fix this issue by compiling file engine by myself. To do that,
- clone this repository
- build file engine
- copy binary file
- edit
init.nvim
# clone
git clone [email protected]:vim-ctrlspace/vim-ctrlspace.git
# build
cd vim-ctrlspace/go
go build ./file_engine.go
# copy
cp ./file_engine ~/.config/nvim/pack/minpac/start/vim-ctrlspace/bin/file_engine_darwin_arm
# I named new binary 'file_engine_darwin_arm'
# copy where your vim-ctrlspace is installed, I'm using minpac
Open vim config file and set g:CtrlSpaceFileEngine
to binary name set above, in this example file_engine_darwin_arm
let g:CtrlSpaceFileEngine = 'file_engine_darwin_arm'
I think this issue occurs because binary for M1 does not included and vim implementation is not working well for M1.
Including binary for M1 and detecting environment feature may fix this issue I guess.
from vim-ctrlspace.
@erikc96 sorry for the late follow up, I finally got some free time to look into this now.
Can you elaborate a bit more on the problem you're running into, because I can't say I understand what you meant. The bookmark mode is activated with b
, which I tested just now and was able to create fine. But you're saying that o
, which is files list mode isn't working for you? Those 2 modes shouldn't be related.
from vim-ctrlspace.
Related Issues (20)
- Workspace load/save only works for 1st TabList HOT 7
- Bug The workspace is not saved correctly HOT 9
- Search algorithm ranking failure HOT 3
- [Question] Are "bookmarks" and "projects" equivalent? HOT 2
- [Question] How do you manage workspaces with terminal buffers? HOT 2
- .cs_file in read only directories HOT 2
- Kudos!
- Open Ctrlspace window from command line buffer will lock the cursor in the window. HOT 2
- session-local viminfo file
- Error loading workspace HOT 3
- Add file_engine_darwin_arm support HOT 3
- Ctrl-[ is not working on CtrlSpace buffer with Kitty terminal. HOT 2
- CWD not switching upon tab switch HOT 1
- Filetype not set for additional buffers when multiple files opened HOT 17
- Linux on Apple Silicon HOT 2
- use fzf instead of custom Go compiled binaries for searching
- Telescope-like picker instead of command-line window HOT 4
- Move selection bar multiple lines at once HOT 7
- Move the selected workspace to the previous/next bookmark HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-ctrlspace.