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

Windows: coroutines should display a message that they don't work on Windows, instead of complaining about photonwrapper.so not found #21840

Open
archyboy opened this issue Jul 10, 2024 · 1 comment
Labels
Bug This tag is applied to issues which reports bugs. Build V build error on any OS/CPU architecture. OS: Windows Bugs/feature requests, that are specific to Windows OS.

Comments

@archyboy
Copy link

archyboy commented Jul 10, 2024

Describe the bug

\v/thirdparty/photon/photonwrapper.so' not found

Reproduction Steps

module worker

import os
import net
import time
import coroutines


pub struct Worker{
pub mut:
	id   int
	hash string
	name string
}

pub fn (m Worker) start() {
	print('Starting working process from ${m.name}')

	for i in 0 .. 10+1 {
		println('${m.name} is running ${i} times')
		coroutines.sleep(2 * time.second)
	}
}

Expected Behavior

looping trough []workers Worker array executing type method run() as coroutines

Current Behavior

tcc: error: file 'C:\Users\Archy\Devel\v/thirdparty/photon/photonwrapper.so' not found
...
==================
(Use `v -cg` to print the entire error message)

builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.6

Environment details (OS name and version, etc.)

Windows 11

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@archyboy archyboy added the Bug This tag is applied to issues which reports bugs. label Jul 10, 2024
@JalonSolov JalonSolov changed the title photonwrapper.so not found Windows: coroutines should display a message that they don't work on Windows, instead of complaining about photonwrapper.so not found Jul 10, 2024
@JalonSolov
Copy link
Contributor

Coroutines are in very early WIP status. They don't work on Windows at all (the photon lib doesn't have a Windows version, though they are supposedly working on it).

Even on Linux/Mac, they are... touchy.

So this isn't actually a bug, just an unimplemented feature for Windows.

That said, the example should probably tell you that if you try to compile it on Windows.

@felipensp felipensp added OS: Windows Bugs/feature requests, that are specific to Windows OS. Build V build error on any OS/CPU architecture. labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs. Build V build error on any OS/CPU architecture. OS: Windows Bugs/feature requests, that are specific to Windows OS.
Projects
None yet
Development

No branches or pull requests

3 participants