okimi- / blockly4thymio-compilateur Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Bonjour
j'ai compilé le compilateur avec xbuild et mono-mdk sous OSX, et j'ai l'erreur suivante à l'execution:
xbuild /p:Configuration=Release Compilateur\ Blockly4Thymio.csproj /p:OutputPath=/tmp
mono /tmp/Compilateur.1.1.exe ../setup-win/fichiers/tester-le-compilateur.b4t
Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x0000d] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <f712f98eb8e445c8918edaf595bbe465>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string)
at Blockly4Thymio.Compilateur.CréationDuFichierAESL () [0x009ec] in <d9fe1eb9043e436aa57dbaec21024d17>:0
at Blockly4Thymio.Compilateur.Compile (Blockly4Thymio.FEN_Principale _fenêtrePrincipal) [0x00076] in <d9fe1eb9043e436aa57dbaec21024d17>:0
at Blockly4Thymio.FEN_Principale.ThreadDeCompilation (System.Object _sender, System.EventArgs _e) [0x0005b] in <d9fe1eb9043e436aa57dbaec21024d17>:0
at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x0000b] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.Timer.FireTick () [0x00000] in <e37081a3704b4473a59cdf5048ad96bc>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Timer:FireTick ()
at System.Windows.Forms.XplatUICarbon.CheckTimers (System.DateTime now) [0x000a6] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.XplatUICarbon.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00012] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x003e9] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00014] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <e37081a3704b4473a59cdf5048ad96bc>:0
at Blockly4Thymio.ProgrammePrincipal.Main (System.String[] _args) [0x0006b] in <d9fe1eb9043e436aa57dbaec21024d17>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x0000d] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <f712f98eb8e445c8918edaf595bbe465>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string)
at Blockly4Thymio.Compilateur.CréationDuFichierAESL () [0x009ec] in <d9fe1eb9043e436aa57dbaec21024d17>:0
at Blockly4Thymio.Compilateur.Compile (Blockly4Thymio.FEN_Principale _fenêtrePrincipal) [0x00076] in <d9fe1eb9043e436aa57dbaec21024d17>:0
at Blockly4Thymio.FEN_Principale.ThreadDeCompilation (System.Object _sender, System.EventArgs _e) [0x0005b] in <d9fe1eb9043e436aa57dbaec21024d17>:0
at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x0000b] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.Timer.FireTick () [0x00000] in <e37081a3704b4473a59cdf5048ad96bc>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Timer:FireTick ()
at System.Windows.Forms.XplatUICarbon.CheckTimers (System.DateTime now) [0x000a6] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.XplatUICarbon.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00012] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, System.IntPtr hWnd, System.Int32 wFilterMin, System.Int32 wFilterMax) [0x00000] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x003e9] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00014] in <e37081a3704b4473a59cdf5048ad96bc>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <e37081a3704b4473a59cdf5048ad96bc>:0
at Blockly4Thymio.ProgrammePrincipal.Main (System.String[] _args) [0x0006b] in <d9fe1eb9043e436aa57dbaec21024d17>:0
Bonjour,
Y a-t-il aujourd'hui une version utilisable pour linux (Debian / Ubuntu pour moi) ? Je vois des répertoires sur le repo, mais je ne sais pas exploiter ce qu'il y a dedans.
Merci d'avance
J'utilse Ubuntu 16.04.1 LTS et j'essaie de compiler le compilateur avec l'outil mono xbuild
.
Il y a deux fichiers .sln
, lequel faut-il utiliser?
J'ai d'abord tenté un:
xbuild Compilateur\ Blockly4Thymio.sln
Mais j'obtiens l'erreur suivante:
XBuild Engine Version 12.0
Mono, Version 4.2.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 04/02/2017 23:07:39.
__________________________________________________
Project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "WINDOWS-Release|x86".
Target Build:
Project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: WINDOWS-Release Platform: x86
Done building project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.csproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.sln".-- FAILED
Done building project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.sln".-- FAILED
Build FAILED.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.2563100
J'ai ensuite essayé:
xbuild /property:Configuration=LINUX-Release Compilateur\ Blockly4Thymio.sln
Mais j'obtiens l'erreur:
XBuild Engine Version 12.0
Mono, Version 4.2.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 04/02/2017 23:08:48.
__________________________________________________
Project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "LINUX-Release|x86".
Target Build:
Project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: LINUX-Release Platform: x86
Done building project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.csproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.sln".-- FAILED
Done building project "/home/gberaudo/dev/Blockly4Thymio-Compilateur/sources-csharp/Compilateur Blockly4Thymio.sln".-- FAILED
Build FAILED.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.2567950
Est-il possible de compiler l'application sous Linux? Si oui, quelles sont les étapes?
J'ai essayé de compiler un graphe basique dont le fichier xml et le fichier AESL issu de la compilation sont en attaché.
programmeBuggé.aesl.txt
programme (1).b4t.txt
J'observe que le séquenceur a plusieurs fois l'état 7:
# (UID 6) Instruction Blockly : 0_1b_Mouvement_Recule_SELVitesse_SAIDistance
if __sequenceur[0]==6 then
motor.left.target=-250 motor.right.target=-250
__sequenceur[0]=7
end
if __sequenceur[0]==7 then
if __odo.x<-250 then
callsub __ArreteLesMoteurs
__sequenceur[0]=8
end
end
et
# (UID 7) Instruction Blockly : 0_1b_Lumières_AllumeToutesLesLEDs_SELCouleur
if __sequenceur[0]==7 then
__led.rouge=31 __led.vert=0 __led.bleu=0 callsub __AllumeLesLEDs
__sequenceur[0]=8
end
ce qui rend Thymio incohérent avec le programme attendu.
Merci d'avance de votre aide.
Jean-Marc Chiappa
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.