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

Error during build: Regex' is an ambiguous reference between GLib.Regex' and `Posix.Regex' #60

Open
xisberto opened this issue May 3, 2021 · 2 comments

Comments

@xisberto
Copy link

xisberto commented May 3, 2021

I'm getting the following error when trying to build:

$ ninja
[1/57] Compiling Vala source ../test/mconn-utils-test.vala ../src/mconnect/utils.vala ../src/mconnect/logging.vala
FAILED: test-mconn-utils.p/test/mconn-utils-test.c test-mconn-utils.p/src/mconnect/utils.c test-mconn-utils.p/src/mconnect/logging.c
valac -C --debug --debug --vapidir /media/hdd/humbertofraga/local/mconnect/vapi --pkg libnotify --pkg posix --pkg gio-unix-2.0 --pkg gio-2.0 --pkg gobject-2.0 --pkg glib-2.0 --color=always --directory test-mconn-utils.p --basedir ../ ../test/mconn-utils-test.vala ../src/mconnect/utils.vala ../src/mconnect/logging.vala
../src/mconnect/utils.vala:163.4-163.8: error: `Regex' is an ambiguous reference between `GLib.Regex' and `Posix.Regex'
			Regex r = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+,.~#?&\/=]*)/;
			^^^^^
../src/mconnect/utils.vala:183.18-183.27: error: `RegexError' is an ambiguous reference between `GLib.RegexError' and `Posix.RegexError'
        } catch (RegexError e) {
                 ^^^^^^^^^^
Compilation failed: 2 error(s), 0 warning(s)

Any workaround this error?

@grimpy
Copy link

grimpy commented Jun 7, 2021

This can be fixed like this grimpy@4a232ab

@BachoSeven
Copy link

Relevant: 51b8144

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

No branches or pull requests

3 participants