You can subscribe to this list here.
2009 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
(2) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(3) |
Mar
(3) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2014 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(5) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
From: Eric M. <eri...@ro...> - 2022-10-06 18:18:04
|
Hello Joachim, Attached are the small demo files I created as proof of concept for extracting the colour settings into a standalone file. colorsGet.sh uses colorConfig.init calls colorsImportTest.tcl Very basic. Next, I will try to tackle the assigning of a meaningful context-based name for the colour variables, so the customization can be done sensibly from only looking at the content of colorConfig.init . Eric Marceau P.S. I still haven't been able to identify which colour setting/parameter controls the default foreground for characters in the tkeclipse interface. |
From: Eric M. <eri...@ro...> - 2022-10-06 01:25:38
|
Hello, Joachim, I have been looking at what I said about pulling out colour references into a simplified mechanism for customizing. Attached is the corrected version of the script to locate line references with the -fg, -bg, -foreground and -background keywords. I have started the process by extracting the references to colour values as uniquely defined variables at the start of scripts. Attached is a set of those which I have done so far. IMPORTANT: What I have noticed is that, for the most part, the -foreground colour is not explicitly defined in the definitions statements. While I understand that you expected components/widgets to inheret that value, I believe that initial value (and possibly revisit value) is not initialized, at least not in a manner compatible with the defaults of tkeclipse. If that value were explicitly defined within tkeclipse that could likely resolve the issue which I am encountering. If not, I will have to keep plugging along with what I started, and later extract those as an externally file with shared color parameter definitions. I used a non-functional naming to be consistent with the initial colour assignments. Only later, when I finally understand while code relates to which component of the GUI, will I attempt to assign a set of functionally related variable names. Eric On 2022-10-02 18:29, Joachim Schimpf wrote: > > Hi Eric, > > Sorry you are having so much trouble with this. It's particularly > surprising as I am using Ubuntu Mate 20.04 myself and things are fine > for me. This is what I normally see: > > Even when I change my MATE desktop theme to dark/black (via > Preferences/Appearance), this only affects the borders, not the > content of the tkeclipse windows. > > As you see, I am also using the system's default Tcl/Tk 8.6, so I'm > pretty confident that there was no problem with your ECLiPSe > installation process. Installing without Java is also fine (only > required for VisualisationClient and CP-Viz tools). > > > We have already established that when you simply start wish (the > tcl/tk interpreter) > > $ wish > % tk_chooseDirectory > > you already get an unusable directory chooser, which means the problem > does not come from tkeclipse as such, but is is already inherent in > your underlying Tcl/Tk installation. This should be repaired first, > before attempting to modify tkeclipse. > > Looking at my tcl-related packages, I see only > > tcl packages > > while you have extra things called tcl-awthemes, tcl-ttkthemes etc. I > wonder if these screw things up. > > > Regards, > > Joachim > |
From: Eric M. <eri...@ro...> - 2022-10-02 18:34:28
|
As follow-up to the problem reported at https://stackoverflow.com/questions/73889647/tkeclipse-gui-colors-assignments-edit-which-file-to-fix Here is the additional details that I can provide regarding this issue. Since I am about to migrate to Ubuntu MATE 22.04, I decided to try to do the install from fresh on my alternate disk to see if things would be any better. They are not!!! I still have the same problem, and yes I again tried to set the background colour, and that did no good. The result that I see is as follows: This shows that *Tcl8.6* is installed: This shows that *Tk8.6* is installed: I have attached the log of the session for *RUNME*: *EclipseCLP_7.0.63_CONFIGURE.txt* What I find peculiar in that is that it reports no values adjacent to the following: TCL_LIBRARY: TK_LIBRARY: There is no setting for Java, so I hope that is not required. I didn't see that mentioned as such in the README. Now when I extracted all the software, and specifically *tcltk.tar*, that did not contain any of he Tcl or Tk libraries. I understood from the readme that *those would be Tcl/Tk for 8.5*, but those aren't there. If I was to manually tweak the RUNME script to hard-code values for the *TCL_LIBRARY* and *TK_LIBRARY* for *paths to the 8.6 versions that are installed*, what values should I specify for those to work properly? The files that I have downloaded and installed are as per the attached: *EclipseCLP_7.0.63__DOWNLOADS.txt* The current contents of the ${ECLIPSEDIR} is as per the attached: *ECLIPSEDIR.contents* When I examine the contents of the files extracted, I see references in *tkeclipse.tcl* to *-bg white* for many instances. What I don't see (or recognize) are the corresponding references to *-fg {some_colour}* which would then allow me to make modifications (or generalazations) to make those easily assigned according to a map (hopefully external *colour.conf*). Similarly, there are reference to *white* in *eclipse.tcl*, eclipse_tools.tcl and tkinspect.tcl. Interestingly, I couldn't find any references to -fg, but I came across references to -foreground in tkinspect.tcl. Doing a wider scan for that, I found the following: eclipse_tools.tcl: $t tag configure highlight -foreground blue -wrap none eclipse_tools.tcl: $scale configure -state normal -foreground black eclipse_tools.tcl: $scale configure -state disabled -foreground grey eclipse_tools.tcl: $ec_dg.text tag configure highlight -foreground #00b000 eclipse_tools.tcl: $ec_tracertab.trace.text tag configure call_style -foreground blue eclipse_tools.tcl: $ec_tracertab.trace.text tag configure exit_style -foreground #00b000 eclipse_tools.tcl: $ec_tracertab.trace.text tag configure fail_style -foreground red eclipse_tools.tcl: $ec_tracer.stack.text tag configure call_style -foreground blue eclipse_tools.tcl: $ec_tracer.stack.text tag configure exit_style -foreground #00b000 eclipse_tools.tcl: $ec_tracer.stack.text tag configure fail_style -foreground red eclipse_tools.tcl: $ec_tracer.filter.predsettings.predmatch config -foreground darkgray eclipse_tools.tcl: $ec_tracer.filter.predsettings.predmodule config -foreground darkgray eclipse_tools.tcl: $ec_tracer.filter.predsettings.predmodule2combo config -foreground darkgray eclipse_tools.tcl: $ec_tracer.filter.predsettings.predcondition config -foreground darkgray eclipse_tools.tcl: $ec_tracer.filter.predsettings.predmatch config -foreground black eclipse_tools.tcl: $ec_tracer.filter.predsettings.predmodule config -foreground black eclipse_tools.tcl: $ec_tracer.filter.predsettings.predmodule2combo config -foreground black eclipse_tools.tcl: $ec_tracer.filter.predsettings.predcondition config -foreground black eclipse_tools.tcl: grid [label $cframe.used -foreground $dcol -width 11 -anchor e] -row 0 -column 1 -sticky news eclipse_tools.tcl: grid [label $cframe.alloc -foreground $lcol -width 11 -anchor e] -row 0 -column 2 -sticky news eclipse_tools.tcl: $ec_matdisplay.$id config -foreground black eclipse_tools.tcl: $ec_matdisplay.$id config -foreground red eclipse_tools.tcl: $ec_matdisplay.$id config -foreground black eclipse_tools.tcl: $ec_source.context.text tag configure call_style -foreground #7070ff \ eclipse_tools.tcl: $ec_source.context.text tag configure exit_style -foreground #00b000 \ eclipse_tools.tcl: $ec_source.context.text tag configure fail_style -foreground red \ eclipse_tools.tcl: $ec_source.context.status tag configure on -foreground red eclipse_tools.tcl: $ec_source.context.status tag configure off -foreground lightgray tkeclipse.tcl:.tkecl.pane.answer.tout tag configure highlight -foreground blue tkeclipse.tcl:.tkecl.pane.answer.tout tag configure errorcolour -foreground red tkeclipse.tcl:.tkecl.pane.answer.tout tag configure successcolour -foreground #00b000 tkeclipse.tcl:.tkecl.pane.stdio.tout tag configure highlight -foreground blue tkeclipse.tcl:.tkecl.pane.stdio.tout tag configure warning -foreground orange tkeclipse.tcl:.tkecl.pane.stdio.tout tag configure errorcolour -foreground red tkeclipse.tcl:.tkecl.pane.stdio.tout tag configure nohandlercolour -foreground green tkinspect.tcl:# $t tag configure highlight -foreground blue -underline true tkinspect.tcl:# $t tag configure phighlight -foreground darkgreen tkinspect.tcl:# $t tag configure highlight -foreground blue -font tkecllabel tkinspect.tcl:# $t tag configure phighlight -foreground darkgreen \ So my question is ... Are those the full set of GUI colour definitions ? OR Are there any others, and where would those be ? Since there was no benefit gained from the 22.04 install, I have reverted back to my primary OS of Ubuntu MATE 20.04, where the installation is as per my posting on /StackOverflow/. Thank you, Eric Marceau |
From: Doug E. <dou...@gm...> - 2022-03-02 21:40:49
|
Dev version 7.1 In: docs/tutorial/tutorial040.html At: Screenshot image above words "Setting Conditions for Specific Predicate Instances" (about midway through the page) Entry in the Condition box appears as: (X === 4; Y == 4) should be: (X == 4; Y == 4) --DAE |
From: Joachim S. <jsc...@co...> - 2021-05-27 22:19:58
|
On 27/05/2021 14:27, Doug Edmunds wrote: > System Win10 x 64 > Ecliple-CLP Version 7.0 #54 (x86_64_nt), > > > Bug: error msg (ambiguity) if code loads ic_symbolic then ic_global, > but no error if ic_symbolic loads ic_global. In the first case, ic_global is loaded and imported into your user module. In the second case, ic_global is loaded, but only used internally by ic_symbolic. It is not imported into your user module, therefore no ambiguity. Ambiguities can always be resolved by explicit import-from or by using qualified calls, outlined here http://www.eclipseclp.org/doc/userman/umsroot041.html#sec112 -- Joachim |
From: Joachim S. <jsc...@co...> - 2021-05-27 21:58:36
|
On 27/05/2021 17:25, Kish Shen wrote: > Sorry the last message was sent before I finished it. > > This is not a bug. THe reason you are getting the abort is because > ::/2 is defined in both ic and ic_sets, and so when you call ::/2, you > need to specify which ::/2 you mean: > > ic_sets: (SetVar :: []..[1,2,3,4,5,6,7]). > > ic: (Var :: [1,,10]). You can also resolve the ambiguity via an explicit import directive: :- lib(ic). :- lib(ic_sets). :- import (::)/2 from ic_sets. or use http://www.eclipseclp.org/doc/bips/lib/ic_sets/in_set_range-2.html which avoids the clash altogether. -- Joachim |
From: Kish S. <kis...@gm...> - 2021-05-27 16:26:13
|
Sorry the last message was sent before I finished it. This is not a bug. THe reason you are getting the abort is because ::/2 is defined in both ic and ic_sets, and so when you call ::/2, you need to specify which ::/2 you mean: ic_sets: (SetVar :: []..[1,2,3,4,5,6,7]). ic: (Var :: [1,,10]). Cheers, Kish On Thu, May 27, 2021 at 5:20 PM Kish Shen <kis...@gm...> wrote: > > Hi Doug, > > This is not a bug. THe reason you are getting the abort is because > ::/2 is defined in both ic and ic_sets, and so when you call ::/2, you > need to specify > > On Thu, May 27, 2021 at 12:33 AM Doug Edmunds <dou...@gm...> wrote: > > > > System: Win10 x64 > > Eclipse: Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 > > > > Bug: Ambiguous import of :: / 2 from [ic_sets, ic] in module eclipse > > when both ic and ic_sets libraries are loaded. > > > > Using code line from Tutorial, Chapter 8 > > SetVar :: []..[1,2,3,4,5,6,7]. > > > > To duplicate: > > > > Run (1) > > lib(ic_sets). > > SetVar :: []..[1,2,3,4,5,6,7]. > > > > WORKS CORRECTLY, NO ISSUE > > > > Run (2) > > lib(ic). > > lib(ic_sets). > > SetVar :: []..[1,2,3,4,5,6,7]. > > > > ABORTS > > > > Run (3) > > lib(ic_sets). > > lib(ic). > > SetVar :: []..[1,2,3,4,5,6,7]. > > > > ABORTS > > > > Output from runs. > > RUN (1) ---------- > > > > ECLiPSe Constraint Logic Programming System [kernel threads] > > Kernel and basic libraries copyright Cisco Systems, Inc. > > and subject to the Cisco-style Mozilla Public Licence 1.1 > > (see legal/cmpl.txt or http://eclipseclp.org/licence) > > Source available at www.sourceforge.org/projects/eclipse-clp > > GMP library copyright Free Software Foundation, see legal/lgpl.txt > > For other libraries see their individual copyright notices > > Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 > > [eclipse 1]: lib(ic_sets). > > source_processor.eco loaded in 0.00 seconds > > hash.eco loaded in 0.00 seconds > > compiler_common.eco loaded in 0.00 seconds > > compiler_normalise.eco loaded in 0.02 seconds > > compiler_map.eco loaded in 0.00 seconds > > compiler_analysis.eco loaded in 0.00 seconds > > compiler_peephole.eco loaded in 0.00 seconds > > compiler_codegen.eco loaded in 0.00 seconds > > compiler_varclass.eco loaded in 0.00 seconds > > compiler_indexing.eco loaded in 0.00 seconds > > compiler_regassign.eco loaded in 0.02 seconds > > asm.eco loaded in 0.02 seconds > > module_options.eco loaded in 0.00 seconds > > ecl_compiler.eco loaded in 0.06 seconds > > ic_kernel.eco loaded in 0.06 seconds > > lists.eco loaded in 0.00 seconds > > linearize.eco loaded in 0.00 seconds > > ic_constraints.eco loaded in 0.02 seconds > > ic.eco loaded in 0.00 seconds > > ic_generic_interface.eco loaded in 0.00 seconds > > ic_search.eco loaded in 0.00 seconds > > ic.eco loaded in 0.09 seconds > > ordset.eco loaded in 0.00 seconds > > notify_ports.eco loaded in 0.00 seconds > > ic_sets.eco loaded in 0.11 seconds > > > > Yes (0.13s cpu) > > [eclipse 2]: SetVar :: []..[1,2,3,4,5,6,7]. > > > > SetVar = SetVar{([] .. [1, 2, 3, 4, 5, 6, 7]) : _264{0 .. 7}} > > Yes (0.00s cpu) > > [eclipse 3]: > > > > > > RUN (2) ----------- > > > > ECLiPSe Constraint Logic Programming System [kernel threads] > > Kernel and basic libraries copyright Cisco Systems, Inc. > > and subject to the Cisco-style Mozilla Public Licence 1.1 > > (see legal/cmpl.txt or http://eclipseclp.org/licence) > > Source available at www.sourceforge.org/projects/eclipse-clp > > GMP library copyright Free Software Foundation, see legal/lgpl.txt > > For other libraries see their individual copyright notices > > Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 > > [eclipse 1]: lib(ic). > > source_processor.eco loaded in 0.00 seconds > > hash.eco loaded in 0.02 seconds > > compiler_common.eco loaded in 0.02 seconds > > compiler_normalise.eco loaded in 0.00 seconds > > compiler_map.eco loaded in 0.00 seconds > > compiler_analysis.eco loaded in 0.02 seconds > > compiler_peephole.eco loaded in 0.00 seconds > > compiler_codegen.eco loaded in 0.02 seconds > > compiler_varclass.eco loaded in 0.00 seconds > > compiler_indexing.eco loaded in 0.02 seconds > > compiler_regassign.eco loaded in 0.00 seconds > > asm.eco loaded in 0.02 seconds > > module_options.eco loaded in 0.00 seconds > > ecl_compiler.eco loaded in 0.08 seconds > > ic_kernel.eco loaded in 0.09 seconds > > lists.eco loaded in 0.00 seconds > > linearize.eco loaded in 0.00 seconds > > ic_constraints.eco loaded in 0.00 seconds > > ic.eco loaded in 0.00 seconds > > ic_generic_interface.eco loaded in 0.00 seconds > > ic_search.eco loaded in 0.00 seconds > > ic.eco loaded in 0.11 seconds > > > > Yes (0.11s cpu) > > [eclipse 2]: lib(ic_sets). > > ordset.eco loaded in 0.02 seconds > > notify_ports.eco loaded in 0.00 seconds > > ic_sets.eco loaded in 0.02 seconds > > > > Yes (0.03s cpu) > > [eclipse 3]: SetVar :: []..[1,2,3,4,5,6,7]. > > Ambiguous import of :: / 2 from [ic, ic_sets] in module eclipse > > calling an undefined procedure SetVar :: [] .. [1, 2, 3, 4, 5, 6, 7] in > > module eclipse > > Abort > > [eclipse 4]: > > > > RUN (3) --------- > > > > ECLiPSe Constraint Logic Programming System [kernel threads] > > Kernel and basic libraries copyright Cisco Systems, Inc. > > and subject to the Cisco-style Mozilla Public Licence 1.1 > > (see legal/cmpl.txt or http://eclipseclp.org/licence) > > Source available at www.sourceforge.org/projects/eclipse-clp > > GMP library copyright Free Software Foundation, see legal/lgpl.txt > > For other libraries see their individual copyright notices > > Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 > > [eclipse 1]: lib(ic_sets). > > source_processor.eco loaded in 0.00 seconds > > hash.eco loaded in 0.00 seconds > > compiler_common.eco loaded in 0.00 seconds > > compiler_normalise.eco loaded in 0.02 seconds > > compiler_map.eco loaded in 0.00 seconds > > compiler_analysis.eco loaded in 0.00 seconds > > compiler_peephole.eco loaded in 0.02 seconds > > compiler_codegen.eco loaded in 0.00 seconds > > compiler_varclass.eco loaded in 0.00 seconds > > compiler_indexing.eco loaded in 0.00 seconds > > compiler_regassign.eco loaded in 0.00 seconds > > asm.eco loaded in 0.00 seconds > > module_options.eco loaded in 0.00 seconds > > ecl_compiler.eco loaded in 0.03 seconds > > ic_kernel.eco loaded in 0.05 seconds > > lists.eco loaded in 0.00 seconds > > linearize.eco loaded in 0.00 seconds > > ic_constraints.eco loaded in 0.00 seconds > > ic.eco loaded in 0.00 seconds > > ic_generic_interface.eco loaded in 0.00 seconds > > ic_search.eco loaded in 0.00 seconds > > ic.eco loaded in 0.06 seconds > > ordset.eco loaded in 0.00 seconds > > notify_ports.eco loaded in 0.00 seconds > > ic_sets.eco loaded in 0.08 seconds > > > > Yes (0.09s cpu) > > [eclipse 2]: lib(ic). > > > > Yes (0.00s cpu) > > [eclipse 3]: SetVar :: []..[1,2,3,4,5,6,7]. > > Ambiguous import of :: / 2 from [ic_sets, ic] in module eclipse > > calling an undefined procedure SetVar :: [] .. [1, 2, 3, 4, 5, 6, 7] in > > module eclipse > > Abort > > [eclipse 4]: > > > > > > _______________________________________________ > > Eclipse-clp-bugs mailing list > > Ecl...@li... > > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs |
From: Kish S. <kis...@gm...> - 2021-05-27 16:20:57
|
Hi Doug, This is not a bug. THe reason you are getting the abort is because ::/2 is defined in both ic and ic_sets, and so when you call ::/2, you need to specify On Thu, May 27, 2021 at 12:33 AM Doug Edmunds <dou...@gm...> wrote: > > System: Win10 x64 > Eclipse: Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 > > Bug: Ambiguous import of :: / 2 from [ic_sets, ic] in module eclipse > when both ic and ic_sets libraries are loaded. > > Using code line from Tutorial, Chapter 8 > SetVar :: []..[1,2,3,4,5,6,7]. > > To duplicate: > > Run (1) > lib(ic_sets). > SetVar :: []..[1,2,3,4,5,6,7]. > > WORKS CORRECTLY, NO ISSUE > > Run (2) > lib(ic). > lib(ic_sets). > SetVar :: []..[1,2,3,4,5,6,7]. > > ABORTS > > Run (3) > lib(ic_sets). > lib(ic). > SetVar :: []..[1,2,3,4,5,6,7]. > > ABORTS > > Output from runs. > RUN (1) ---------- > > ECLiPSe Constraint Logic Programming System [kernel threads] > Kernel and basic libraries copyright Cisco Systems, Inc. > and subject to the Cisco-style Mozilla Public Licence 1.1 > (see legal/cmpl.txt or http://eclipseclp.org/licence) > Source available at www.sourceforge.org/projects/eclipse-clp > GMP library copyright Free Software Foundation, see legal/lgpl.txt > For other libraries see their individual copyright notices > Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 > [eclipse 1]: lib(ic_sets). > source_processor.eco loaded in 0.00 seconds > hash.eco loaded in 0.00 seconds > compiler_common.eco loaded in 0.00 seconds > compiler_normalise.eco loaded in 0.02 seconds > compiler_map.eco loaded in 0.00 seconds > compiler_analysis.eco loaded in 0.00 seconds > compiler_peephole.eco loaded in 0.00 seconds > compiler_codegen.eco loaded in 0.00 seconds > compiler_varclass.eco loaded in 0.00 seconds > compiler_indexing.eco loaded in 0.00 seconds > compiler_regassign.eco loaded in 0.02 seconds > asm.eco loaded in 0.02 seconds > module_options.eco loaded in 0.00 seconds > ecl_compiler.eco loaded in 0.06 seconds > ic_kernel.eco loaded in 0.06 seconds > lists.eco loaded in 0.00 seconds > linearize.eco loaded in 0.00 seconds > ic_constraints.eco loaded in 0.02 seconds > ic.eco loaded in 0.00 seconds > ic_generic_interface.eco loaded in 0.00 seconds > ic_search.eco loaded in 0.00 seconds > ic.eco loaded in 0.09 seconds > ordset.eco loaded in 0.00 seconds > notify_ports.eco loaded in 0.00 seconds > ic_sets.eco loaded in 0.11 seconds > > Yes (0.13s cpu) > [eclipse 2]: SetVar :: []..[1,2,3,4,5,6,7]. > > SetVar = SetVar{([] .. [1, 2, 3, 4, 5, 6, 7]) : _264{0 .. 7}} > Yes (0.00s cpu) > [eclipse 3]: > > > RUN (2) ----------- > > ECLiPSe Constraint Logic Programming System [kernel threads] > Kernel and basic libraries copyright Cisco Systems, Inc. > and subject to the Cisco-style Mozilla Public Licence 1.1 > (see legal/cmpl.txt or http://eclipseclp.org/licence) > Source available at www.sourceforge.org/projects/eclipse-clp > GMP library copyright Free Software Foundation, see legal/lgpl.txt > For other libraries see their individual copyright notices > Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 > [eclipse 1]: lib(ic). > source_processor.eco loaded in 0.00 seconds > hash.eco loaded in 0.02 seconds > compiler_common.eco loaded in 0.02 seconds > compiler_normalise.eco loaded in 0.00 seconds > compiler_map.eco loaded in 0.00 seconds > compiler_analysis.eco loaded in 0.02 seconds > compiler_peephole.eco loaded in 0.00 seconds > compiler_codegen.eco loaded in 0.02 seconds > compiler_varclass.eco loaded in 0.00 seconds > compiler_indexing.eco loaded in 0.02 seconds > compiler_regassign.eco loaded in 0.00 seconds > asm.eco loaded in 0.02 seconds > module_options.eco loaded in 0.00 seconds > ecl_compiler.eco loaded in 0.08 seconds > ic_kernel.eco loaded in 0.09 seconds > lists.eco loaded in 0.00 seconds > linearize.eco loaded in 0.00 seconds > ic_constraints.eco loaded in 0.00 seconds > ic.eco loaded in 0.00 seconds > ic_generic_interface.eco loaded in 0.00 seconds > ic_search.eco loaded in 0.00 seconds > ic.eco loaded in 0.11 seconds > > Yes (0.11s cpu) > [eclipse 2]: lib(ic_sets). > ordset.eco loaded in 0.02 seconds > notify_ports.eco loaded in 0.00 seconds > ic_sets.eco loaded in 0.02 seconds > > Yes (0.03s cpu) > [eclipse 3]: SetVar :: []..[1,2,3,4,5,6,7]. > Ambiguous import of :: / 2 from [ic, ic_sets] in module eclipse > calling an undefined procedure SetVar :: [] .. [1, 2, 3, 4, 5, 6, 7] in > module eclipse > Abort > [eclipse 4]: > > RUN (3) --------- > > ECLiPSe Constraint Logic Programming System [kernel threads] > Kernel and basic libraries copyright Cisco Systems, Inc. > and subject to the Cisco-style Mozilla Public Licence 1.1 > (see legal/cmpl.txt or http://eclipseclp.org/licence) > Source available at www.sourceforge.org/projects/eclipse-clp > GMP library copyright Free Software Foundation, see legal/lgpl.txt > For other libraries see their individual copyright notices > Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 > [eclipse 1]: lib(ic_sets). > source_processor.eco loaded in 0.00 seconds > hash.eco loaded in 0.00 seconds > compiler_common.eco loaded in 0.00 seconds > compiler_normalise.eco loaded in 0.02 seconds > compiler_map.eco loaded in 0.00 seconds > compiler_analysis.eco loaded in 0.00 seconds > compiler_peephole.eco loaded in 0.02 seconds > compiler_codegen.eco loaded in 0.00 seconds > compiler_varclass.eco loaded in 0.00 seconds > compiler_indexing.eco loaded in 0.00 seconds > compiler_regassign.eco loaded in 0.00 seconds > asm.eco loaded in 0.00 seconds > module_options.eco loaded in 0.00 seconds > ecl_compiler.eco loaded in 0.03 seconds > ic_kernel.eco loaded in 0.05 seconds > lists.eco loaded in 0.00 seconds > linearize.eco loaded in 0.00 seconds > ic_constraints.eco loaded in 0.00 seconds > ic.eco loaded in 0.00 seconds > ic_generic_interface.eco loaded in 0.00 seconds > ic_search.eco loaded in 0.00 seconds > ic.eco loaded in 0.06 seconds > ordset.eco loaded in 0.00 seconds > notify_ports.eco loaded in 0.00 seconds > ic_sets.eco loaded in 0.08 seconds > > Yes (0.09s cpu) > [eclipse 2]: lib(ic). > > Yes (0.00s cpu) > [eclipse 3]: SetVar :: []..[1,2,3,4,5,6,7]. > Ambiguous import of :: / 2 from [ic_sets, ic] in module eclipse > calling an undefined procedure SetVar :: [] .. [1, 2, 3, 4, 5, 6, 7] in > module eclipse > Abort > [eclipse 4]: > > > _______________________________________________ > Eclipse-clp-bugs mailing list > Ecl...@li... > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs |
From: Doug E. <dou...@gm...> - 2021-05-27 13:28:00
|
System Win10 x 64 Ecliple-CLP Version 7.0 #54 (x86_64_nt), Bug: error msg (ambiguity) if code loads ic_symbolic then ic_global, but no error if ic_symbolic loads ic_global. TWO RUNS: Run (1) Code loads ic_symbolic, then ic_global. Error. ECLiPSe Constraint Logic Programming System [kernel threads] Kernel and basic libraries copyright Cisco Systems, Inc. and subject to the Cisco-style Mozilla Public Licence 1.1 (see legal/cmpl.txt or http://eclipseclp.org/licence) Source available at www.sourceforge.org/projects/eclipse-clp GMP library copyright Free Software Foundation, see legal/lgpl.txt For other libraries see their individual copyright notices Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 [eclipse 1]: lib(ic_symbolic). source_processor.eco loaded in 0.00 seconds hash.eco loaded in 0.00 seconds compiler_common.eco loaded in 0.00 seconds compiler_normalise.eco loaded in 0.00 seconds compiler_map.eco loaded in 0.00 seconds compiler_analysis.eco loaded in 0.02 seconds compiler_peephole.eco loaded in 0.00 seconds compiler_codegen.eco loaded in 0.02 seconds compiler_varclass.eco loaded in 0.00 seconds compiler_indexing.eco loaded in 0.00 seconds compiler_regassign.eco loaded in 0.00 seconds asm.eco loaded in 0.02 seconds module_options.eco loaded in 0.00 seconds ecl_compiler.eco loaded in 0.05 seconds ic_kernel.eco loaded in 0.06 seconds lists.eco loaded in 0.00 seconds linearize.eco loaded in 0.02 seconds ic_constraints.eco loaded in 0.02 seconds ic.eco loaded in 0.00 seconds ic_generic_interface.eco loaded in 0.00 seconds ic_search.eco loaded in 0.00 seconds ic.eco loaded in 0.08 seconds ic_symbolic.eco loaded in 0.09 seconds Yes (0.09s cpu) [eclipse 2]: lib(ic_global). queues.eco loaded in 0.00 seconds ordset.eco loaded in 0.00 seconds heap_array.eco loaded in 0.00 seconds graph_algorithms.eco loaded in 0.00 seconds max_flow.eco loaded in 0.00 seconds flow_constraints_support.eco loaded in 0.00 seconds ic_sequence.eco loaded in 0.00 seconds ic_global.eco loaded in 0.02 seconds Yes (0.02s cpu) [eclipse 3]: local domain(weekday(mo,tu,we,th,fr,sa,su)). Yes (0.00s cpu) [eclipse 4]: [M,T,W] &:: weekday, alldifferent([M,T,W]). Ambiguous import of alldifferent / 1 from [ic_symbolic, ic_global] in module eclipse calling an undefined procedure alldifferent([M, T, W]) in module eclipse Abort [eclipse 5]: ------- Run (2) Only ic_symbolic loaded. System issues Warning, then automatically loads ic_symbolic. NO ERROR. ECLiPSe Constraint Logic Programming System [kernel threads] Kernel and basic libraries copyright Cisco Systems, Inc. and subject to the Cisco-style Mozilla Public Licence 1.1 (see legal/cmpl.txt or http://eclipseclp.org/licence) Source available at www.sourceforge.org/projects/eclipse-clp GMP library copyright Free Software Foundation, see legal/lgpl.txt For other libraries see their individual copyright notices Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 [eclipse 1]: lib(ic_symbolic). source_processor.eco loaded in 0.00 seconds hash.eco loaded in 0.02 seconds compiler_common.eco loaded in 0.02 seconds compiler_normalise.eco loaded in 0.00 seconds compiler_map.eco loaded in 0.02 seconds compiler_analysis.eco loaded in 0.02 seconds compiler_peephole.eco loaded in 0.00 seconds compiler_codegen.eco loaded in 0.02 seconds compiler_varclass.eco loaded in 0.00 seconds compiler_indexing.eco loaded in 0.02 seconds compiler_regassign.eco loaded in 0.00 seconds asm.eco loaded in 0.02 seconds module_options.eco loaded in 0.00 seconds ecl_compiler.eco loaded in 0.08 seconds ic_kernel.eco loaded in 0.09 seconds lists.eco loaded in 0.00 seconds linearize.eco loaded in 0.00 seconds ic_constraints.eco loaded in 0.00 seconds ic.eco loaded in 0.00 seconds ic_generic_interface.eco loaded in 0.00 seconds ic_search.eco loaded in 0.02 seconds ic.eco loaded in 0.13 seconds ic_symbolic.eco loaded in 0.13 seconds Yes (0.13s cpu) [eclipse 2]: local domain(weekday(mo,tu,we,th,fr,sa,su)). Yes (0.00s cpu) [eclipse 3]: [M,T,W] &:: weekday, alldifferent([M,T,W]). WARNING: module 'ic_global' does not exist, loading library... queues.eco loaded in 0.00 seconds ordset.eco loaded in 0.00 seconds heap_array.eco loaded in 0.00 seconds graph_algorithms.eco loaded in 0.03 seconds max_flow.eco loaded in 0.00 seconds flow_constraints_support.eco loaded in 0.00 seconds ic_sequence.eco loaded in 0.00 seconds ic_global.eco loaded in 0.05 seconds M = M{[mo, tu, we, th, fr, sa, su]} T = T{[mo, tu, we, th, fr, sa, su]} W = W{[mo, tu, we, th, fr, sa, su]} Delayed goals: ic_symbolic : sync_ic_symbolic(M{[mo, tu, we, th, fr, sa, su]}, ic_symbolic(_430{1 .. 7}, eclipse : weekday)) ic_symbolic : sync_ic_symbolic(T{[mo, tu, we, th, fr, sa, su]}, ic_symbolic(_510{1 .. 7}, eclipse : weekday)) ic_symbolic : sync_ic_symbolic(W{[mo, tu, we, th, fr, sa, su]}, ic_symbolic(_590{1 .. 7}, eclipse : weekday)) ic_global : alldifferent([_430{1 .. 7}, _510{1 .. 7}, _590{1 .. 7}], 1) Yes (0.05s cpu) [eclipse 4]: |
From: Doug E. <dou...@gm...> - 2021-05-26 23:33:07
|
System: Win10 x64 Eclipse: Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 Bug: Ambiguous import of :: / 2 from [ic_sets, ic] in module eclipse when both ic and ic_sets libraries are loaded. Using code line from Tutorial, Chapter 8 SetVar :: []..[1,2,3,4,5,6,7]. To duplicate: Run (1) lib(ic_sets). SetVar :: []..[1,2,3,4,5,6,7]. WORKS CORRECTLY, NO ISSUE Run (2) lib(ic). lib(ic_sets). SetVar :: []..[1,2,3,4,5,6,7]. ABORTS Run (3) lib(ic_sets). lib(ic). SetVar :: []..[1,2,3,4,5,6,7]. ABORTS Output from runs. RUN (1) ---------- ECLiPSe Constraint Logic Programming System [kernel threads] Kernel and basic libraries copyright Cisco Systems, Inc. and subject to the Cisco-style Mozilla Public Licence 1.1 (see legal/cmpl.txt or http://eclipseclp.org/licence) Source available at www.sourceforge.org/projects/eclipse-clp GMP library copyright Free Software Foundation, see legal/lgpl.txt For other libraries see their individual copyright notices Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 [eclipse 1]: lib(ic_sets). source_processor.eco loaded in 0.00 seconds hash.eco loaded in 0.00 seconds compiler_common.eco loaded in 0.00 seconds compiler_normalise.eco loaded in 0.02 seconds compiler_map.eco loaded in 0.00 seconds compiler_analysis.eco loaded in 0.00 seconds compiler_peephole.eco loaded in 0.00 seconds compiler_codegen.eco loaded in 0.00 seconds compiler_varclass.eco loaded in 0.00 seconds compiler_indexing.eco loaded in 0.00 seconds compiler_regassign.eco loaded in 0.02 seconds asm.eco loaded in 0.02 seconds module_options.eco loaded in 0.00 seconds ecl_compiler.eco loaded in 0.06 seconds ic_kernel.eco loaded in 0.06 seconds lists.eco loaded in 0.00 seconds linearize.eco loaded in 0.00 seconds ic_constraints.eco loaded in 0.02 seconds ic.eco loaded in 0.00 seconds ic_generic_interface.eco loaded in 0.00 seconds ic_search.eco loaded in 0.00 seconds ic.eco loaded in 0.09 seconds ordset.eco loaded in 0.00 seconds notify_ports.eco loaded in 0.00 seconds ic_sets.eco loaded in 0.11 seconds Yes (0.13s cpu) [eclipse 2]: SetVar :: []..[1,2,3,4,5,6,7]. SetVar = SetVar{([] .. [1, 2, 3, 4, 5, 6, 7]) : _264{0 .. 7}} Yes (0.00s cpu) [eclipse 3]: RUN (2) ----------- ECLiPSe Constraint Logic Programming System [kernel threads] Kernel and basic libraries copyright Cisco Systems, Inc. and subject to the Cisco-style Mozilla Public Licence 1.1 (see legal/cmpl.txt or http://eclipseclp.org/licence) Source available at www.sourceforge.org/projects/eclipse-clp GMP library copyright Free Software Foundation, see legal/lgpl.txt For other libraries see their individual copyright notices Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 [eclipse 1]: lib(ic). source_processor.eco loaded in 0.00 seconds hash.eco loaded in 0.02 seconds compiler_common.eco loaded in 0.02 seconds compiler_normalise.eco loaded in 0.00 seconds compiler_map.eco loaded in 0.00 seconds compiler_analysis.eco loaded in 0.02 seconds compiler_peephole.eco loaded in 0.00 seconds compiler_codegen.eco loaded in 0.02 seconds compiler_varclass.eco loaded in 0.00 seconds compiler_indexing.eco loaded in 0.02 seconds compiler_regassign.eco loaded in 0.00 seconds asm.eco loaded in 0.02 seconds module_options.eco loaded in 0.00 seconds ecl_compiler.eco loaded in 0.08 seconds ic_kernel.eco loaded in 0.09 seconds lists.eco loaded in 0.00 seconds linearize.eco loaded in 0.00 seconds ic_constraints.eco loaded in 0.00 seconds ic.eco loaded in 0.00 seconds ic_generic_interface.eco loaded in 0.00 seconds ic_search.eco loaded in 0.00 seconds ic.eco loaded in 0.11 seconds Yes (0.11s cpu) [eclipse 2]: lib(ic_sets). ordset.eco loaded in 0.02 seconds notify_ports.eco loaded in 0.00 seconds ic_sets.eco loaded in 0.02 seconds Yes (0.03s cpu) [eclipse 3]: SetVar :: []..[1,2,3,4,5,6,7]. Ambiguous import of :: / 2 from [ic, ic_sets] in module eclipse calling an undefined procedure SetVar :: [] .. [1, 2, 3, 4, 5, 6, 7] in module eclipse Abort [eclipse 4]: RUN (3) --------- ECLiPSe Constraint Logic Programming System [kernel threads] Kernel and basic libraries copyright Cisco Systems, Inc. and subject to the Cisco-style Mozilla Public Licence 1.1 (see legal/cmpl.txt or http://eclipseclp.org/licence) Source available at www.sourceforge.org/projects/eclipse-clp GMP library copyright Free Software Foundation, see legal/lgpl.txt For other libraries see their individual copyright notices Version 7.0 #54 (x86_64_nt), Wed Feb 26 22:13 2020 [eclipse 1]: lib(ic_sets). source_processor.eco loaded in 0.00 seconds hash.eco loaded in 0.00 seconds compiler_common.eco loaded in 0.00 seconds compiler_normalise.eco loaded in 0.02 seconds compiler_map.eco loaded in 0.00 seconds compiler_analysis.eco loaded in 0.00 seconds compiler_peephole.eco loaded in 0.02 seconds compiler_codegen.eco loaded in 0.00 seconds compiler_varclass.eco loaded in 0.00 seconds compiler_indexing.eco loaded in 0.00 seconds compiler_regassign.eco loaded in 0.00 seconds asm.eco loaded in 0.00 seconds module_options.eco loaded in 0.00 seconds ecl_compiler.eco loaded in 0.03 seconds ic_kernel.eco loaded in 0.05 seconds lists.eco loaded in 0.00 seconds linearize.eco loaded in 0.00 seconds ic_constraints.eco loaded in 0.00 seconds ic.eco loaded in 0.00 seconds ic_generic_interface.eco loaded in 0.00 seconds ic_search.eco loaded in 0.00 seconds ic.eco loaded in 0.06 seconds ordset.eco loaded in 0.00 seconds notify_ports.eco loaded in 0.00 seconds ic_sets.eco loaded in 0.08 seconds Yes (0.09s cpu) [eclipse 2]: lib(ic). Yes (0.00s cpu) [eclipse 3]: SetVar :: []..[1,2,3,4,5,6,7]. Ambiguous import of :: / 2 from [ic_sets, ic] in module eclipse calling an undefined procedure SetVar :: [] .. [1, 2, 3, 4, 5, 6, 7] in module eclipse Abort [eclipse 4]: |
From: Kish S. <kis...@gm...> - 2020-07-28 18:53:33
|
Hi Mark, Yes, I am still around. I don't know if Joachim answered your question, but in case he hasn't.. If by 'not printing names', you mean the ... in CALL port for .. = ..., then as far as I remember, this was always the case for =/2 (and probably some other built-ins), because of the way they are compiled. You should see the source line for the call in the 'source context' tab, and that should give you the names. If you want to see the values for the call as well, you can add a dummy goal before the =/2, e,g, writeln(X,Y), X = Y to see the values. Kish On Tue, Jul 28, 2020 at 5:02 PM Mark Wallace via Eclipse-clp-bugs < ecl...@li...> wrote: > Hi Joachim, > Is Kish still active? > The ECLiPSe tracer stopped printing out names. > I just downloaded the latest public release of ECLiPSe 7.0 for Windows > 64bit, and have the same bug: > [image: image.png] > It's frustrating - I can't find my bug which occurs in an infinite loop! > Cheers > Mark > -- > > *Mark Wallace * > Professor > *Information Technology* > My days of work are *Tuesdays, Wednesdays and Fridays* > Monash University, Level 6, Building H, Caulfield Campus, 900 Dandenong > Road, Caulfield East VIC 3145, Australia > T: +61 (0)3 9903 4276 M: +61 0400 868 629 > E: mar...@mo... <nam...@mo...> > > *We acknowledge and pay respect to the Traditional Owners and Elders - > past, present and emerging - of the lands on which Monash University is > located.* > _______________________________________________ > Eclipse-clp-bugs mailing list > Ecl...@li... > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs > |
From: Mark W. <mar...@mo...> - 2020-07-28 07:46:01
|
Hi Joachim, Is Kish still active? The ECLiPSe tracer stopped printing out names. I just downloaded the latest public release of ECLiPSe 7.0 for Windows 64bit, and have the same bug: [image: image.png] It's frustrating - I can't find my bug which occurs in an infinite loop! Cheers Mark -- *Mark Wallace * Professor *Information Technology* My days of work are *Tuesdays, Wednesdays and Fridays* Monash University, Level 6, Building H, Caulfield Campus, 900 Dandenong Road, Caulfield East VIC 3145, Australia T: +61 (0)3 9903 4276 M: +61 0400 868 629 E: mar...@mo... <nam...@mo...> *We acknowledge and pay respect to the Traditional Owners and Elders - past, present and emerging - of the lands on which Monash University is located.* |
From: Joachim S. <jsc...@co...> - 2019-04-21 23:32:07
|
Testing |
From: Alexis H. Rivera-R. <ahr...@ya...> - 2017-07-14 14:42:40
|
Joachim, This what I got on mine. I tried your fix using prolog.el and eclipse.el and it seemed to work on the simple test that I sent. Here is the output that you requested. [eclipse 2]: util:streams. WARNING: module 'util' does not exist, loading library... util.eco loaded in 0.00 seconds $&(stream(0)) pipe read user ( stdin input user_input ) $&(stream(1)) pipe write user ( stdout output warning_output log_output user_output toplevel_output debug_output answer_output ) $&(stream(2)) pipe write error ( stderr error user_error ) $&(stream(3)) null update null ( null ) $&(stream(4)) queue read "" ( ec_rpc_in ) $&(stream(5)) queue update "" ( ec_rpc_out ) $&(stream(6)) pipe read fd ( toplevel_input ) $&(stream(8)) pipe read fd ( debug_input ) Thanks for your help.Alexis El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien común. (Adalexis Rios- mi madre) On Friday, July 14, 2017 05:28:45 AM PDT, Joachim Schimpf <jsc...@co...> wrote: Hi Alexis, The top-level does not flush the error stream because I/O is not from/to a tty (because re-routed through emacs). If you manually set :- set_stream_property(error, flush, end_of_line). then it should work as expected (you can also put this command in a .eclipserc file in your working directory or home directory). To enable me to implement a better fix, could you send me the output that util:streams. produces when you call it from your emacs-embedded eclipse? Thanks, Joachim On 14/07/17 10:45, Alexis H. Rivera-Rios via Eclipse-clp-bugs wrote: > Hi, > > I'm using eclipse 7.21 i386nt on windows 10 and emacs 25.2.1 > I'm using eclipse.el but it also happens with prolog.el > I believe the problem happens with eclipse 6.1 too. > > From emacs, when I load/compile a file (C-c-C-b) that has a runtime error for > example > > top :- > member2(X,[1,2,3]). > > Then evaluate top. I get > [eclipse 2]: top. > Abort > [eclipse 3]: > > However, doing the same evaluation with the eclipse.exe from a dos shell gives me > [eclipse 2]: top. > calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipse > Abort > [eclipse 3]: > > In TkEclipse the abort goes to the result pane and the error message goes to the > error pane. > > My first hypothesis was that emacs was doing something different with output > from stdout and stderr. > As a test, I created a C++ program that mimics the eclipse.exe read/eval loop. > The program prints the eclipse prompt string then outputs an Abort message on > stdout and the error string on stderr using std::cout and std::cerr > respectively. I expected to see only the Abort string, therefore duplicating the > eclipse.exe behavior but that didn't happen. Instead, I got both the error > message and the abort string. This tells me that emacs maybe redirecting both > stdout and stderr to the same output buffer. > > One thing I noticed is that if I run the following sequence from emacs using the > actual eclipse.exe > [eclipse 1]: top. > Abort > [eclipse 2]: halt. > calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipse > > Process prolog exited abnormally with code 3 > > As the program is shutdown, I do get the error messages. Almost as if > eclipse.exe buffers the error message. If I enter multiple commands with > runtime errors and then halt, I will see all of them. > > I will appreciate your help on the subject. > Thanks > > Alexis > **//___^ > El amor a la patria tiene que transformarse en acción y ésta tiene que ser > acción para el bien común. (Adalexis Rios- mi madre) > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Eclipse-clp-bugs mailing list > Ecl...@li... > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs > |
From: Thorsten W. <tho...@fl...> - 2017-07-14 13:52:52
|
Hi Joachim, I have tried your suggestion to set the flush property for the error stream. After I changed the code of the ECLiPSe inferior mode so that this is done automatically when an ECLiPSe process is started in Emacs, I got some double console prompts. This when the ECLiPSe process is started: [eclipse 1]: Yes (0.00s cpu) [eclipse 2]: And this when an error occurred during compilation of the content of another Emacs buffer: Yes (0.05s cpu) [eclipse 3]: calling an undefined procedure top :- test2(X, Y) in module eclipse Abort [eclipse 4]: It looks as if flushing confuses the comint mode that handles the process communication, maybe due to an extra \n at the end of the line. The first double line I can avoid with using a pre-output filter, but for the error messages, I have to see whether that would work, too. Here’s the output of streams/0 in the ECLiPSe process after setting the error stream to flush: [eclipse 4]: util:streams. WARNING: module 'util' does not exist, loading library... util.eco loaded in 0.00 seconds $&(stream(0)) pipe read user ( input user_input stdin ) $&(stream(1)) pipe write user ( output warning_output log_output user_output stdout toplevel_output debug_output answer_output ) $&(stream(2)) pipe write error ( error user_error stderr ) $&(stream(3)) null update null ( null ) $&(stream(4)) pipe read fd ( toplevel_input ) $&(stream(5)) queue read "" ( ec_rpc_in ) $&(stream(6)) queue update "" ( ec_rpc_out ) $&(stream(8)) pipe read fd ( debug_input ) Yes (0.00s cpu) Cheers, Thorsten Von: Kish Shen [mailto:kis...@gm...] Gesendet: Freitag, 14. Juli 2017 14:54 An: Thorsten Winterer <tho...@fl...> Betreff: Fwd: [Eclipse-clp-bugs] error string on runtime error not displayed on emacs Hi Thorsten, Joachim just posted this reply to the emacs mode bug report, so it seems that it is eclipse's toplevel that is not flushing the error stream.. Cheers, Kish ---------- Forwarded message ---------- From: Joachim Schimpf <jsc...@co...<mailto:jsc...@co...>> Date: Fri, Jul 14, 2017 at 1:28 PM Subject: Re: [Eclipse-clp-bugs] error string on runtime error not displayed on emacs To: ecl...@li...<mailto:ecl...@li...>, "ahr...@ya...<mailto:ahr...@ya...> >> Alexis H. Rivera-Rios" <ahr...@ya...<mailto:ahr...@ya...>> Hi Alexis, The top-level does not flush the error stream because I/O is not from/to a tty (because re-routed through emacs). If you manually set :- set_stream_property(error, flush, end_of_line). then it should work as expected (you can also put this command in a .eclipserc file in your working directory or home directory). To enable me to implement a better fix, could you send me the output that util:streams. produces when you call it from your emacs-embedded eclipse? Thanks, Joachim On 14/07/17 10:45, Alexis H. Rivera-Rios via Eclipse-clp-bugs wrote: Hi, I'm using eclipse 7.21 i386nt on windows 10 and emacs 25.2.1 I'm using eclipse.el but it also happens with prolog.el I believe the problem happens with eclipse 6.1 too. From emacs, when I load/compile a file (C-c-C-b) that has a runtime error for example top :- member2(X,[1,2,3]). Then evaluate top. I get [eclipse 2]: top. Abort [eclipse 3]: However, doing the same evaluation with the eclipse.exe from a dos shell gives me [eclipse 2]: top. calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipse Abort [eclipse 3]: In TkEclipse the abort goes to the result pane and the error message goes to the error pane. My first hypothesis was that emacs was doing something different with output from stdout and stderr. As a test, I created a C++ program that mimics the eclipse.exe read/eval loop. The program prints the eclipse prompt string then outputs an Abort message on stdout and the error string on stderr using std::cout and std::cerr respectively. I expected to see only the Abort string, therefore duplicating the eclipse.exe behavior but that didn't happen. Instead, I got both the error message and the abort string. This tells me that emacs maybe redirecting both stdout and stderr to the same output buffer. One thing I noticed is that if I run the following sequence from emacs using the actual eclipse.exe [eclipse 1]: top. Abort [eclipse 2]: halt. calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipse Process prolog exited abnormally with code 3 As the program is shutdown, I do get the error messages. Almost as if eclipse.exe buffers the error message. If I enter multiple commands with runtime errors and then halt, I will see all of them. I will appreciate your help on the subject. Thanks Alexis **//___^ El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien común. (Adalexis Rios- mi madre) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Eclipse-clp-bugs mailing list Ecl...@li...<mailto:Ecl...@li...> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Eclipse-clp-bugs mailing list Ecl...@li...<mailto:Ecl...@li...> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs |
From: Joachim S. <jsc...@co...> - 2017-07-14 12:28:51
|
Hi Alexis, The top-level does not flush the error stream because I/O is not from/to a tty (because re-routed through emacs). If you manually set :- set_stream_property(error, flush, end_of_line). then it should work as expected (you can also put this command in a .eclipserc file in your working directory or home directory). To enable me to implement a better fix, could you send me the output that util:streams. produces when you call it from your emacs-embedded eclipse? Thanks, Joachim On 14/07/17 10:45, Alexis H. Rivera-Rios via Eclipse-clp-bugs wrote: > Hi, > > I'm using eclipse 7.21 i386nt on windows 10 and emacs 25.2.1 > I'm using eclipse.el but it also happens with prolog.el > I believe the problem happens with eclipse 6.1 too. > > From emacs, when I load/compile a file (C-c-C-b) that has a runtime error for > example > > top :- > member2(X,[1,2,3]). > > Then evaluate top. I get > [eclipse 2]: top. > Abort > [eclipse 3]: > > However, doing the same evaluation with the eclipse.exe from a dos shell gives me > [eclipse 2]: top. > calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipse > Abort > [eclipse 3]: > > In TkEclipse the abort goes to the result pane and the error message goes to the > error pane. > > My first hypothesis was that emacs was doing something different with output > from stdout and stderr. > As a test, I created a C++ program that mimics the eclipse.exe read/eval loop. > The program prints the eclipse prompt string then outputs an Abort message on > stdout and the error string on stderr using std::cout and std::cerr > respectively. I expected to see only the Abort string, therefore duplicating the > eclipse.exe behavior but that didn't happen. Instead, I got both the error > message and the abort string. This tells me that emacs maybe redirecting both > stdout and stderr to the same output buffer. > > One thing I noticed is that if I run the following sequence from emacs using the > actual eclipse.exe > [eclipse 1]: top. > Abort > [eclipse 2]: halt. > calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipse > > Process prolog exited abnormally with code 3 > > As the program is shutdown, I do get the error messages. Almost as if > eclipse.exe buffers the error message. If I enter multiple commands with > runtime errors and then halt, I will see all of them. > > I will appreciate your help on the subject. > Thanks > > Alexis > **//___^ > El amor a la patria tiene que transformarse en acción y ésta tiene que ser > acción para el bien común. (Adalexis Rios- mi madre) > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Eclipse-clp-bugs mailing list > Ecl...@li... > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs > |
From: Alexis H. Rivera-R. <ahr...@ya...> - 2017-07-14 09:49:53
|
Hi, I'm using eclipse 7.21 i386nt on windows 10 and emacs 25.2.1 I'm using eclipse.el but it also happens with prolog.elI believe the problem happens with eclipse 6.1 too. >From emacs, when I load/compile a file (C-c-C-b) that has a runtime error for example top :- member2(X,[1,2,3]). Then evaluate top. I get [eclipse 2]: top.Abort[eclipse 3]: However, doing the same evaluation with the eclipse.exe from a dos shell gives me[eclipse 2]: top.calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipseAbort[eclipse 3]: In TkEclipse the abort goes to the result pane and the error message goes to the error pane. My first hypothesis was that emacs was doing something different with output from stdout and stderr.As a test, I created a C++ program that mimics the eclipse.exe read/eval loop. The program prints the eclipse prompt string then outputs an Abort message on stdout and the error string on stderr using std::cout and std::cerr respectively. I expected to see only the Abort string, therefore duplicating the eclipse.exe behavior but that didn't happen. Instead, I got both the error message and the abort string. This tells me that emacs maybe redirecting both stdout and stderr to the same output buffer. One thing I noticed is that if I run the following sequence from emacs using the actual eclipse.exe [eclipse 1]: top.Abort[eclipse 2]: halt.calling an undefined procedure member2(_233,[1, 2, 3]) in module eclipse Process prolog exited abnormally with code 3 As the program is shutdown, I do get the error messages. Almost as if eclipse.exe buffers the error message. If I enter multiple commands with runtime errors and then halt, I will see all of them. I will appreciate your help on the subject.Thanks Alexis El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien común. (Adalexis Rios- mi madre) |
From: Joachim S. <jsc...@co...> - 2017-06-25 22:42:56
|
Hi Alexis, I have identified the problem with the More-prompt in Eclipse 7. It is caused by a change that was done for ISO-Prolog compliance, I'll fix this tonight or tomorrow. Cheers, Joachim On 25/06/2017 20:01, Alexis H. Rivera-Rios wrote: > Hi Joachim > > I've tried to use eclipse-mode with eclipse 7. It has the same issue. It has additional issues > with regard to code compilation. It looks like it tries to send the code to eclipse prompt > instead of calling the compile command with a filename. From the comments in the code, it seems the > author didn't use the eclipse-mode for compilation so it's not well tested. :( > > I downgraded to version 6.1 of eclipse and the eclipse-mode does wait for input in order to show > more answers. Although, it has the same issue with compilation. > > With your previous help, I got prolog-mode to compile the code. I just noticed this behavior > recently as I started to use eclipse within emacs. It's weird because tracing works just fine. > > Anyways thanks for your quick reply! > Alexis > > > El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien > común. (Adalexis Rios- mi madre) > > > --------------------------------------------------------------------------------------------------- > *From:* Joachim Schimpf <jsc...@co...> > *To:* Alexis H. Rivera-Rios <ahr...@ya...>; "ecl...@li..." > <ecl...@li...> > *Sent:* Saturday, June 24, 2017 5:16 PM > *Subject:* Re: [Eclipse-clp-bugs] prolog mode emacs doesn't wait for prompt > > Hi Alexis, > > I'm not an emacs user myself, but there is a special emacs mode > for ECLiPSe, see http://eclipseclp.org/software/index.html > under Editors/Emacs. > > Hope that helps, > Joachim > > > > On 24/06/17 18:56, Alexis H. Rivera-Rios via Eclipse-clp-bugs wrote: >> Hi, >> >> I'm using prolog.el 1.25 with emacs 25.2.1 and eclipse 7.0 development #17 on >> windows 10. >> >> When I enter the following command on the prompt: >> [eclipse 1]: member(X,[1,2,3]). >> >> I get >> >> X = 1 >> Yes (0.00s cpu, solution 1, maybe more) ? >> [eclipse 2]: >> >> Notice that emacs doesn't wait for an answer for more solutions and replies with >> [eclipse 2] prompt. >> >> I don't know if this is a eclipse bug or a prolog.el mode (most probably). But >> if you have any ideas on how to >> solve this I would appreciate it. >> >> Thanks, >> Alexis >> >> >> >> El amor a la patria tiene que transformarse en acción y ésta tiene que ser >> acción para el bien común. (Adalexis Rios- mi madre) > >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> >> >> _______________________________________________ >> Eclipse-clp-bugs mailing list >> Ecl...@li... <mailto:Ecl...@li...> >> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs > >> > > > |
From: Alexis H. Rivera-R. <ahr...@ya...> - 2017-06-25 19:01:48
|
Hi Joachim I've tried to use eclipse-mode with eclipse 7. It has the same issue. It has additional issues with regard to code compilation. It looks like it tries to send the code to eclipse prompt instead of calling the compile command with a filename. From the comments in the code, it seems the author didn't use the eclipse-mode for compilation so it's not well tested. :( I downgraded to version 6.1 of eclipse and the eclipse-mode does wait for input in order to show more answers. Although, it has the same issue with compilation. With your previous help, I got prolog-mode to compile the code. I just noticed this behavior recently as I started to use eclipse within emacs. It's weird because tracing works just fine. Anyways thanks for your quick reply! Alexis El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien común. (Adalexis Rios- mi madre) From: Joachim Schimpf <jsc...@co...> To: Alexis H. Rivera-Rios <ahr...@ya...>; "ecl...@li..." <ecl...@li...> Sent: Saturday, June 24, 2017 5:16 PM Subject: Re: [Eclipse-clp-bugs] prolog mode emacs doesn't wait for prompt Hi Alexis, I'm not an emacs user myself, but there is a special emacs mode for ECLiPSe, see http://eclipseclp.org/software/index.html under Editors/Emacs. Hope that helps, Joachim On 24/06/17 18:56, Alexis H. Rivera-Rios via Eclipse-clp-bugs wrote: > Hi, > > I'm using prolog.el 1.25 with emacs 25.2.1 and eclipse 7.0 development #17 on > windows 10. > > When I enter the following command on the prompt: > [eclipse 1]: member(X,[1,2,3]). > > I get > > X = 1 > Yes (0.00s cpu, solution 1, maybe more) ? > [eclipse 2]: > > Notice that emacs doesn't wait for an answer for more solutions and replies with > [eclipse 2] prompt. > > I don't know if this is a eclipse bug or a prolog.el mode (most probably). But > if you have any ideas on how to > solve this I would appreciate it. > > Thanks, > Alexis > > > > El amor a la patria tiene que transformarse en acción y ésta tiene que ser > acción para el bien común. (Adalexis Rios- mi madre) > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Eclipse-clp-bugs mailing list > Ecl...@li... > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs > |
From: Alexis <ahr...@ya...> - 2017-06-25 02:06:40
|
Hi Joachim I've tried to use that one too. It has the same issue. It has additional issues with regard to code compilation. It looks like it tries to send the code to eclipse prompt instead of calling the compile command with a filename. From the comments in the code, it seems the author didn't use the eclipse-mode for compilation so it's not well tested. :( With your previous help, I got prolog-mode to compile the code. I just noticed this behavior recently as I started to use eclipse within emacs. It's weird because tracing works just fine. Anyways thanks for your quick reply! Alexis -----Original Message----- From: "Joachim Schimpf" <jsc...@co...> Sent: 6/24/2017 5:16 PM To: "Alexis H. Rivera-Rios" <ahr...@ya...>; "ecl...@li..." <ecl...@li...> Subject: Re: [Eclipse-clp-bugs] prolog mode emacs doesn't wait for prompt Hi Alexis, I'm not an emacs user myself, but there is a special emacs mode for ECLiPSe, see http://eclipseclp.org/software/index.html under Editors/Emacs. Hope that helps, Joachim On 24/06/17 18:56, Alexis H. Rivera-Rios via Eclipse-clp-bugs wrote: > Hi, > > I'm using prolog.el 1.25 with emacs 25.2.1 and eclipse 7.0 development #17 on > windows 10. > > When I enter the following command on the prompt: > [eclipse 1]: member(X,[1,2,3]). > > I get > > X = 1 > Yes (0.00s cpu, solution 1, maybe more) ? > [eclipse 2]: > > Notice that emacs doesn't wait for an answer for more solutions and replies with > [eclipse 2] prompt. > > I don't know if this is a eclipse bug or a prolog.el mode (most probably). But > if you have any ideas on how to > solve this I would appreciate it. > > Thanks, > Alexis > > > > El amor a la patria tiene que transformarse en acción y ésta tiene que ser > acción para el bien común. (Adalexis Rios- mi madre) > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Eclipse-clp-bugs mailing list > Ecl...@li... > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs > |
From: Joachim S. <jsc...@co...> - 2017-06-25 00:16:17
|
Hi Alexis, I'm not an emacs user myself, but there is a special emacs mode for ECLiPSe, see http://eclipseclp.org/software/index.html under Editors/Emacs. Hope that helps, Joachim On 24/06/17 18:56, Alexis H. Rivera-Rios via Eclipse-clp-bugs wrote: > Hi, > > I'm using prolog.el 1.25 with emacs 25.2.1 and eclipse 7.0 development #17 on > windows 10. > > When I enter the following command on the prompt: > [eclipse 1]: member(X,[1,2,3]). > > I get > > X = 1 > Yes (0.00s cpu, solution 1, maybe more) ? > [eclipse 2]: > > Notice that emacs doesn't wait for an answer for more solutions and replies with > [eclipse 2] prompt. > > I don't know if this is a eclipse bug or a prolog.el mode (most probably). But > if you have any ideas on how to > solve this I would appreciate it. > > Thanks, > Alexis > > > > El amor a la patria tiene que transformarse en acción y ésta tiene que ser > acción para el bien común. (Adalexis Rios- mi madre) > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Eclipse-clp-bugs mailing list > Ecl...@li... > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-bugs > |
From: Alexis H. Rivera-R. <ahr...@ya...> - 2017-06-24 18:00:54
|
Hi, I'm using prolog.el 1.25 with emacs 25.2.1 and eclipse 7.0 development #17 on windows 10. When I enter the following command on the prompt:[eclipse 1]: member(X,[1,2,3]). I get X = 1Yes (0.00s cpu, solution 1, maybe more) ?[eclipse 2]: Notice that emacs doesn't wait for an answer for more solutions and replies with [eclipse 2] prompt. I don't know if this is a eclipse bug or a prolog.el mode (most probably). But if you have any ideas on how to solve this I would appreciate it. Thanks,Alexis El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien común. (Adalexis Rios- mi madre) |
From: Joachim S. <jsc...@co...> - 2017-05-28 17:45:52
|
Hi Alexis, All ECLiPSe built-in predicates expect file names in ECLiPSe's OS-independent file name format. You would have to write your example as follows: ?- ['//c/Users/alexis/Documents/99prolog.pl']. To convert from the Windows-syntax to ECLiPSe's format, you can use os_file_name(EclipseName, WindowsName) see http://www.eclipseclp.org/doc/bips/kernel/opsys/os_file_name-2.html So the following will also work: ?- os_file_name(F, 'c:/Users/alexis/Documents/99prolog.pl'), [F]. Cheers, Joachim On 27/05/2017 06:40, Alexis H. Rivera-Rios wrote: > Hi, > > I'm using Eclipse 6.1 226 i386 nt on windows 10. When I try to consult a file using absolute > path I get the following error. > It happens with DosEclipse. It particularly hinders the use of eclipse in emacs because the > prolog.el script passes the full path to > eclipse. > > > [eclipse 4]: ['c:/Users/alexis/Documents/99prolog.pl']. > File does not exist : in > source_open('//C/Users/alexis/Documents/c:/Users/alexis/Documents/99prolog.pl', [with_annotations, > recreate_modules], _318) > Abort > [eclipse 5]: ["c:/Users/alexis/Documents/99prolog.pl"]. > File does not exist : in > source_open('//C/Users/alexis/Documents/c:/Users/alexis/Documents/99prolog.pl', [with_annotations, > recreate_modules], _323) > Abort > [eclipse 6]: compile('c:/Users/alexis/Documents/99prolog.pl'). > system interface error: Invalid argument in cd("//C/Users/alexis/Documents/c:/Users/alexis/Documents/") > Abort > [eclipse 7]: compile("c:/users/alexis/Documents/99prolog.pl"). > system interface error: Invalid argument in cd("//C/Users/alexis/Documents/c:/users/alexis/Documents/") > Abort > > Consulting the filename only works fine. > > Thanks, > Alexis > > El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien > común. (Adalexis Rios- mi madre) |
From: Alexis H. Rivera-R. <ahr...@ya...> - 2017-05-27 05:05:18
|
Hi, I'm using Eclipse 6.1 226 i386 nt on windows 10. When I try to consult a file using absolute path I get the following error. It happens with DosEclipse. It particularly hinders the use of eclipse in emacs because the prolog.el script passes the full path toeclipse. [eclipse 4]: ['c:/Users/alexis/Documents/99prolog.pl']. File does not exist : in source_open('//C/Users/alexis/Documents/c:/Users/alexis/Documents/99prolog.pl', [with_annotations, recreate_modules], _318) Abort [eclipse 5]: ["c:/Users/alexis/Documents/99prolog.pl"]. File does not exist : in source_open('//C/Users/alexis/Documents/c:/Users/alexis/Documents/99prolog.pl', [with_annotations, recreate_modules], _323) Abort[eclipse 6]: compile('c:/Users/alexis/Documents/99prolog.pl'). system interface error: Invalid argument in cd("//C/Users/alexis/Documents/c:/Users/alexis/Documents/") Abort [eclipse 7]: compile("c:/users/alexis/Documents/99prolog.pl"). system interface error: Invalid argument in cd("//C/Users/alexis/Documents/c:/users/alexis/Documents/") Abort Consulting the filename only works fine. Thanks,Alexis El amor a la patria tiene que transformarse en acción y ésta tiene que ser acción para el bien común. (Adalexis Rios- mi madre) |
From: Guimarans S. D. <d.g...@hv...> - 2016-11-04 13:53:35
|
Hello, I am writing to report an issue I found when trying to execute Java code with calls to eclipse.jar on Mac OS X 10.12.1 (Sierra). The JDK version is 1.8.0_112-b16. The Java code executes normally if calls to the ECLiPSe engine are removed. The JVM crashes when trying to create an instance of EclipseEngineOptions, providing the following error: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fffd8abdb92, pid=20115, tid=0x0000000000001703 # # JRE version: Java(TM) SE Runtime Environment (8.0_112-b16) (build 1.8.0_112-b16) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b16 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libsystem_c.dylib+0x1b92] strlen+0x12 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/Matthijs/Documents/Workspace/Gate_Assignment_Problem/hs_err_pid20115.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # The problem only exists when executed in the last Mac OS X update. I run a class with about 40 students, but only 4 of them found this issue (the ones who had upgraded to the last OSX version). I upgraded one of my computers and obtained the same error. Previous versions of OSX and Windows users found no issues. I have not tested it on other OS. A sample of the call creating the problem is attached in the following code: import com.parctechnologies.eclipse.*; import java.io.*; public class EclipseConnection { private EclipseEngine eclipse; private Object f; private Object w; private Object cost; private Object costSwaps; private Object costPAX; private Object costBAX; public EclipseConnection(String eclipseDirectory, String problemSolver, String instanceFileName) { EclipseEngineOptions eclipseEngineOptions = new EclipseEngineOptions(new File(eclipseDirectory)); eclipseEngineOptions.setUseQueues(true); try { eclipse = EmbeddedEclipse.getInstance(eclipseEngineOptions); eclipse.compile(new File(instanceFileName)); eclipse.compile(new File(problemSolver)); } catch (EclipseException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } public void callSolver(int alpha, int beta, int gamma, int timeout) { CompoundTerm result; try { result = eclipse.rpc("solve_gap(" + alpha + "," + beta + "," + gamma + "," + timeout + ",F,W,Cost,CostSwaps,CostPAX,CostBAX)"); f = result.arg(5); w = result.arg(6); cost = result.arg(7); costSwaps = result.arg(8); costPAX = result.arg(9); costBAX = result.arg(10); } catch (EclipseException e) { System.out.println("No feasible solution"); } catch (IOException e) { e.printStackTrace(); } } public void destroy() { try { ((EmbeddedEclipse) eclipse).destroy(); } catch (IOException e) { e.printStackTrace(); } } } Kind regards, Daniel — Daniel Guimarans Aviation Academy, Amsterdam University of Applied Sciences dguimarans.net<http://dguimarans.net> |