Skip to content

Conversation

@elsesiy
Copy link
Contributor

@elsesiy elsesiy commented Nov 16, 2025

This appears to be a regression introduced 2 days ago via d6721a7 which added the broken import

Error executing vim.schedule lua callback: ...im/lazy/opencode.nvim/lua/opencode/ui/session_picker.lua:5: module 'lua.opencode.
api' not found:
        no field package.preload['lua.opencode.api']
        cache_loader: module 'lua.opencode.api' not found
        cache_loader_lib: module 'lua.opencode.api' not found
        no file '/nix/store/5nxkn4vpgfdyzwqp1l5s7wqczcsppkwa-luajit-2.1.1741730670-env/share/lua/5.1/lua/opencode/api.lua'
        no file '/nix/store/5nxkn4vpgfdyzwqp1l5s7wqczcsppkwa-luajit-2.1.1741730670-env/share/lua/5.1/lua/opencode/api/init.lua'

        no file '/nix/store/5nxkn4vpgfdyzwqp1l5s7wqczcsppkwa-luajit-2.1.1741730670-env/lib/lua/5.1/lua/opencode/api.so'
        no file '/Users/elsesiy/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/liblua/
opencode/api.dylib'
        no file '/Users/elsesiy/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/lua/ope
ncode/api.dylib'
        no file '/nix/store/5nxkn4vpgfdyzwqp1l5s7wqczcsppkwa-luajit-2.1.1741730670-env/lib/lua/5.1/lua.so'
        no file '/Users/elsesiy/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/liblua.
dylib'
        no file '/Users/elsesiy/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/lua.dyl
ib'
stack traceback:
        [C]: in function 'require'
        ...im/lazy/opencode.nvim/lua/opencode/ui/session_picker.lua:5: in main chunk
        [C]: in function 'require'
        ...cal/share/nvim/lazy/opencode.nvim/lua/opencode/ui/ui.lua:195: in function 'select_session'
        ...ocal/share/nvim/lazy/opencode.nvim/lua/opencode/core.lua:21: in function 'select_session'
        ...local/share/nvim/lazy/opencode.nvim/lua/opencode/api.lua:89: in function 'fn'
        ...zy/opencode.nvim/lua/opencode/ui/completion/commands.lua:80: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

This appears to be a regressions in sudo-tee@d6721a7 which added the broken import

```
Error executing vim.schedule lua callback: ...im/lazy/opencode.nvim/lua/opencode/ui/session_picker.lua:5: module 'lua.opencode.
api' not found:
        no field package.preload['lua.opencode.api']
        cache_loader: module 'lua.opencode.api' not found
        cache_loader_lib: module 'lua.opencode.api' not found
        no file '/nix/store/5nxkn4vpgfdyzwqp1l5s7wqczcsppkwa-luajit-2.1.1741730670-env/share/lua/5.1/lua/opencode/api.lua'
        no file '/nix/store/5nxkn4vpgfdyzwqp1l5s7wqczcsppkwa-luajit-2.1.1741730670-env/share/lua/5.1/lua/opencode/api/init.lua'

        no file '/nix/store/5nxkn4vpgfdyzwqp1l5s7wqczcsppkwa-luajit-2.1.1741730670-env/lib/lua/5.1/lua/opencode/api.so'
        no file '/Users/elsesiy/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/liblua/
opencode/api.dylib'
        no file '/Users/elsesiy/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/lua/ope
ncode/api.dylib'
        no file '/nix/store/5nxkn4vpgfdyzwqp1l5s7wqczcsppkwa-luajit-2.1.1741730670-env/lib/lua/5.1/lua.so'
        no file '/Users/elsesiy/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/liblua.
dylib'
        no file '/Users/elsesiy/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/lua.dyl
ib'
stack traceback:
        [C]: in function 'require'
        ...im/lazy/opencode.nvim/lua/opencode/ui/session_picker.lua:5: in main chunk
        [C]: in function 'require'
        ...cal/share/nvim/lazy/opencode.nvim/lua/opencode/ui/ui.lua:195: in function 'select_session'
        ...ocal/share/nvim/lazy/opencode.nvim/lua/opencode/core.lua:21: in function 'select_session'
        ...local/share/nvim/lazy/opencode.nvim/lua/opencode/api.lua:89: in function 'fn'
        ...zy/opencode.nvim/lua/opencode/ui/completion/commands.lua:80: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
```
@elsesiy elsesiy marked this pull request as ready for review November 16, 2025 04:19
@elsesiy
Copy link
Contributor Author

elsesiy commented Nov 16, 2025

@sudo-tee Thanks for the great plugin! I just encountered a small issue in the last version, PTAL 🙇

@cameronr
Copy link
Collaborator

cameronr commented Nov 16, 2025

@elsesiy looks good. thanks!

@sudo-tee does require('lua.opencode.api') resolve for you? do you have a lua symlink in your directory structure maybe (e.g. opencode.nvim/lua/lua -> opencode.nvim/lua)?

@cameronr cameronr merged commit 6c140d7 into sudo-tee:main Nov 16, 2025
5 checks passed
@elsesiy elsesiy deleted the fix-sessions branch November 16, 2025 05:17
@sudo-tee
Copy link
Owner

@cameronr Ill have to check when I'm back home. But it's weird that it didn't cause issues for me.

@sudo-tee
Copy link
Owner

@cameronr
I checked symlinks and my nvim rtp and saw nothing seems suspicious. In anycase, now that I know I'll make sure to review my auto imports in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants