v icon indicating copy to clipboard operation
v copied to clipboard

cannot register struct `sync.WaitGroup`

Open ghosttk opened this issue 3 years ago • 1 comments

V version: OS: OS: windows, Microsoft Windows 7 Professional v7601 64-bit Processor: 4 cpus, 64bit, little endian, Intel(R) Xeon(R) CPU E5-26xx series

CC version: Error: exec failed (CreateProcess) with code 2: 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆? cmd: cc --version

getwd: D:\bin\v\examples\vweb vmodules: C:\Users\Administrator.vmodules vroot: D:\bin\v vexe: D:\bin\v\v.exe vexe mtime: 2022-04-18 03:28:44 is vroot writable: true is vmodules writable: true V full version: V 0.2.4 fe37184.379b638

What did you do? Running examples/vweb by v run .

What did you expect to see? building success.

What did you see instead? D:/bin/v/vlib/sync/waitgroup.v:28:8: error: cannot register struct sync.WaitGroup, another type with this name exists 26 | // [init_with=new_waitgroup] // TODO: implement support for init_with struct attribute, and disallow WaitGroup{} from outside the sync.new_waitgroup() function. 27 | [heap] 28 | struct WaitGroup { | ~~~~~~~~~ 29 | mut: 30 | task_count u32 // current task count - reading/writing should be atomic

ghosttk avatar May 20 '22 02:05 ghosttk

Can you try this again by using the latest release/git clone?

Delta456 avatar Aug 25 '22 17:08 Delta456