Re: [Vala] multithreading -> weird behaviour on win(msys)[SOLVED] and macOS



I solved part of my problem...

I am now very cautious and claim that part of my problem is partly due to valac (imho a valac bug)

ALL the path coming from File.get_path(), on windows should be C:\bla\bla but the valac don't like it (proof glib-compile-resources works with C:\bla\bla)

The only way to get this work is to .get_path().replace("\\", "/")(put the path in quotation markswill not work also).

So the commandline to valac MUST look like this and then it works...
valac -g --output=C:/msys64/home/Wolfgang/Projekte/vDevelop/valaDevelop/bin/valaDevelop --define=WINDOWS -X -DGETTEXT_PACKAGE="valaDevelop" -X -DVERSION="0..42" --pkg=gdk-3.0 --pkg=gee-0.8 --pkg=gio-2.0 --pkg=gio-windows-2.0 --pkg=glib-2.0 --pkg=gmodule-2.0 --pkg=gtk+-3.0 --pkg=gtksourceview-3.0 --pkg=json-glib-1.0 --pkg=libvala-0.42 --pkg=libxml-2.0 --pkg=webkit2gtk-4.0 C:/msys64/home/Wolfgang/Projekte/vDevelop/valaDevelop/OptionDialogs/package_options_dialog.vala C:/msys64/home/Wolfgang/Projekte/vDevelop/valaDevelop/OptionDialogs/project_options_dialog.vala C:/msys64/home/Wolfgang/Projekte/vDevelop/valaDevelop/OptionDialogs/rename...............

Greetings
Wolfgang


Am 14.03.19 um 21:47 schrieb Wolfgang Mauer:
Hi Al,
rest assured that this should not be sarcasm! Do not think that I'm joking here! And of course the source is correct, and yes i know this sounds impossible!!!

Hundreds of lines looks this weird, alsowith vala-compiled .c files.
To check how my command looks like I do string.joinv(" ", spawn_args)+"\n"
The first command still running with Process.spawn_sync and working !!!!
glib-compile-resources C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\resources.xml --target=C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\resources.c --sourcedir=C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\resources --generate-source

The "Subprocess" with errors looks like this:( Tried also-X -DGETTEXT_PACKAGE=\"valaDevelop\" -X -DVERSION=\"0.42\" ) valac -g --output=C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\bin\valaDevelop --define=WINDOWS -X -DGETTEXT_PACKAGE="valaDevelop" -X -DVERSION="0..42" --pkg=gdk-3.0 --pkg=gee-0.8 --pkg=gio-2.0 --pkg=gio-windows-2.0 --pkg=glib-2.0 --pkg=gmodule-2.0 --pkg=gtk+-3.0 --pkg=gtksourceview-3.0 --pkg=json-glib-1.0 --pkg=libvala-0.42 --pkg=libxml-2.0 --pkg=webkit2gtk-4.0 C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionDialogs\package_options_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionDialogs\project_options_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionDialogs\rename_folder_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionDialogs\resource_create_file_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionDialogs\solution_create_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionDialogs\source_create_file_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionWidgets\IOptionWidget.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionWidgets\item_options.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionWidgets\project_options.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\OptionWidgets\solution_options.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\SearchAndReplace\replace_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\SearchAndReplace\search_and_replace.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\SearchAndReplace\search_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\SearchAndReplace\search_replace_dialog.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\SymbolFinder\reporter.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\SymbolFinder\symbol_finder.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\application_window.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\breakpoint_bookmarks.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\breakpoint_hit.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\completion_provider..vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\config.vapi C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\context_menu.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\debugger.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\debugger_symbols.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\globals.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\import_options.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\item_buildtype.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\item_type.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\main.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\main_paned.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\new_folder.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\new_solution_file..vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\overview_tree_columns.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\overview_tree_store..vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\source_gutter_renderer_breakpoint.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\stats.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\status_list.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\switch_open_files..vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\tab_header.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\wrong_location.vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\xml_configuration..vala C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\resources.c --gresources=C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\resources.xml --gresourcesdir=C:\msys64\home\Wolfgang\Projekte\vDevelop\valaDevelop\resources


Am 14.03.19 um 19:56 schrieb Al Thomas via vala-list:
    > On Wednesday, 13 March 2019, 00:10:30 GMT, Wolfgang Mauer <wolfgang mauer kabelmail de> wrote:  > Tried this, run perfect on linux, runs "better" on win

Are you being sarcastic here? I've read through the rest of your mail and you aregetting a cc exited error. You're not running the program, the program fails to compile:
C:msys64homeWolfgangProjekte
                              Develop
alaDevelopml_configuration.vala:40:10: error: \x used with no following
hex digits
<command-line>: warning: missing terminating " character
<command-line>: warning: missing terminating " character
error: cc exited with status 1
This probably has something to do with the Windows file path separatorbeing a backslash.

   _______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]