Skip to content

Doesn't recognize static methods #24

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

Open
louis77 opened this issue Jan 16, 2025 · 0 comments
Open

Doesn't recognize static methods #24

louis77 opened this issue Jan 16, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@louis77
Copy link

louis77 commented Jan 16, 2025

Describe the bug

The plugin doesn't recognize the new static method syntax and subsequently knowledge about returned types and function usages.

Expected Behavior

The plugin should recognize static methods.

Current Behavior

I defined a static method like this:

pub fn Client.new(endpoint string, apikey string) Client {
	return Client{
		endpoint: endpoint,
		apikey: apikey,
	}
}

this is the result:

SCR-20250116-jrex

Also is doesn't track usage references:

SCR-20250116-jrjf

Reproduction Steps

See above.

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

V full version V 0.4.9 7af8faf.0a4123c
OS macos, macOS, 15.2, 24C101
Processor 8 cpus, 64bit, little endian, Apple M2
Memory 0.09GB/16GB
V executable /Users/louis/Git/nv/v
V last modified time 2025-01-15 21:26:01
V home dir OK, value: /Users/louis/Git/nv
VMODULES OK, value: /Users/louis/.vmodules
VTMP OK, value: /tmp/v_501
Current working dir OK, value: /Users/louis
Git version git version 2.39.5 (Apple Git-154)
V git status weekly.2025.1-63-g0a4123c3-dirty (1 commit(s) behind V master)
.git/config present true
cc version Apple clang version 16.0.0 (clang-1600.0.26.4)
gcc version Apple clang version 16.0.0 (clang-1600.0.26.4)
clang version Homebrew clang version 18.1.8
tcc version tcc version 0.9.28rc 2024-02-05 HEAD@105d70f7 (AArch64 Darwin)
tcc git status thirdparty-macos-arm64 713692d4
emcc version N/A
glibc version N/A
louis@device-128 ~ % sudo ln -s ~/Git/nv/vlib /usr/local/bin/vlib
louis@device-128 ~ % v doctor
V full version V 0.4.9 7af8faf.0a4123c
:------------------- :-------------------
OS macos, macOS, 15.2, 24C101
Processor 8 cpus, 64bit, little endian, Apple M2
Memory 0.07GB/16GB
V executable /Users/louis/Git/nv/v
V last modified time 2025-01-15 21:26:01
V home dir OK, value: /Users/louis/Git/nv
VMODULES OK, value: /Users/louis/.vmodules
VTMP OK, value: /tmp/v_501
Current working dir OK, value: /Users/louis
Git version git version 2.39.5 (Apple Git-154)
V git status weekly.2025.1-63-g0a4123c3-dirty (1 commit(s) behind V master)
.git/config present true
cc version Apple clang version 16.0.0 (clang-1600.0.26.4)
gcc version Apple clang version 16.0.0 (clang-1600.0.26.4)
clang version Homebrew clang version 18.1.8
tcc version tcc version 0.9.28rc 2024-02-05 HEAD@105d70f7 (AArch64 Darwin)
tcc git status thirdparty-macos-arm64 713692d4
emcc version N/A
glibc version N/A

IDE Type (IDEA Community/Ultimate, GoLand, CLion, etc.)

IntelliJ IDEA 2024.3.1.1 (Community Edition)

Plugin Version

2024.3.1

@Krotki Krotki added the enhancement New feature or request label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants