Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No autocompletion for SDL2 module #53

Open
jgmdev opened this issue Nov 24, 2023 · 0 comments
Open

No autocompletion for SDL2 module #53

jgmdev opened this issue Nov 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jgmdev
Copy link

jgmdev commented Nov 24, 2023

Describe the bug

When writing statements like sdl. the language server does not find any symbols belonging to the module.

Expected Behavior

Get a list of symbols belonging to the sdl module.

Current Behavior

No autocompletion is provided for the sdl module.

Reproduction Steps

  1. Install sdl module to ~/.vmodules as described on https://github.com/vlang/sdl
  2. Open this example project https://github.com/vlang/sdl/tree/master/examples/basic_window
  3. Try to get auto-completion for the sdl module symbols.

Possible Solution

No response

Additional Information/Context

Wanted to try some V and sdl development and found this project by pure chance on the vosca website. Added v-analyzer to the config list of the lsp plugin for pragtical code editor which lead me to the issue.

Environment details (v doctor output)

V full version: V 0.4.3 c3cf9ee
OS: linux, "Arch Linux"
Processor: 16 cpus, 64bit, little endian, AMD Ryzen 7 4800U with Radeon Graphics

getwd: /home/user/Development/vlang_sdl
vexe: /usr/lib/vlang/v
vexe mtime: 2023-11-17 07:45:18

vroot: NOT writable, value: /usr/lib/vlang
VMODULES: OK, value: /home/jgm/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.43.0
Git vroot status: Error: fatal: not a git repository (or any of the parent directories): .git
.git/config present: false

CC version: cc (GCC) 13.2.1 20230801
thirdparty/tcc status: Error: fatal: detected dubious ownership in repository at '/usr/lib/vlang/thirdparty/tcc'
To add an exception for this directory, call:

git config --global --add safe.directory /usr/lib/vlang/thirdparty/tcc

Error: fatal: detected dubious ownership in repository at '/usr/lib/vlang/thirdparty/tcc'
To add an exception for this directory, call:

git config --global --add safe.directory /usr/lib/vlang/thirdparty/tcc

Editor name

Pragtical

v-analyzer Version

latest from git

VS Code Extension Version

No response

@jgmdev jgmdev added the bug Something isn't working label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant