Giter VIP home page Giter VIP logo

blockly4thymio-compilateur's People

Contributors

okimi- avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

blockly4thymio-compilateur's Issues

Execution sous OSX crash avec System.ArgumentNullException: Value cannot be null. Parameter name: path

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

Version Linux

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

Compilation sous Linux

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?

Erreur dans la génération du séquenceur

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&lt;-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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.