GithubHelp home page GithubHelp logo

Comments (4)

jfmc avatar jfmc commented on August 23, 2024

This should be (at least partially) fixed when loading/compiling code with the --iso flag, and the module engine(io_basic) is not explicitly loaded:

$ ciaosh --iso
?- open('/bin/sh', read, S, [alias(my_input)]), get_code(my_input, C).
C = 207
[...]

Could you provide me some additional feedback about when it is not working? (I'm marking the issue as a bug in any case)

from ciao.

pmoura avatar pmoura commented on August 23, 2024

There are the relevant tests:

!     iso_get_char_2_02: failure 
!       test goal throws an error but should have succeeded: error(domain_error(stream_or_alias,st_i),'io_basic:get_code'/2-1)
!       in file /Users/pmoura/logtalk/tests/prolog/predicates/get_char_2/tests.lgt between lines 42-47
!     iso_get_char_2_03: failure 
!       test goal throws an error but should have succeeded: error(domain_error(stream_or_alias,st_i),'io_basic:get_code'/2-1)
!       in file /Users/pmoura/logtalk/tests/prolog/predicates/get_char_2/tests.lgt between lines 48-53
!     iso_get_char_2_04: failure 
!       test goal throws an error but should have succeeded: error(domain_error(stream_or_alias,st_i),'io_basic:get_code'/2-1)
!       in file /Users/pmoura/logtalk/tests/prolog/predicates/get_char_2/tests.lgt between lines 54-58
!     iso_get_char_2_05: failure 
!       test goal throws an error but should have succeeded: error(domain_error(stream_or_alias,st_i),'io_basic:get_code'/2-1)
!       in file /Users/pmoura/logtalk/tests/prolog/predicates/get_char_2/tests.lgt between lines 59-65

You can reproduce the results by:

$ cd logtalk3/tests/prolog/predicates/get_char_2
$ ciaolgt
?- {tester}.

or:

$ cd logtalk3/tests/prolog/predicates/get_char_2
$ logtalk_tester -p ciao

from ciao.

pmoura avatar pmoura commented on August 23, 2024

Also:

!     iso_read_term_3_02: failure 
!       test goal throws an error but should have succeeded: error(domain_error(stream_or_alias,st_o),'io_basic:get_code'/2-1)
!       in file /Users/pmoura/logtalk/tests/prolog/predicates/read_term_3/tests.lgt between lines 38-42
!     iso_read_term_3_03: failure 
!       test goal throws an error but should have succeeded: error(domain_error(stream_or_alias,st_o),'io_basic:get_code'/2-1)
!       in file /Users/pmoura/logtalk/tests/prolog/predicates/read_term_3/tests.lgt between lines 43-52

from ciao.

pmoura avatar pmoura commented on August 23, 2024

Closing as these errors are solved by the latest commit.

from ciao.

Related Issues (20)

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.