Comments (4)
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.
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.
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.
Closing as these errors are solved by the latest commit.
from ciao.
Related Issues (20)
- Clarification request: does Ciao Prolog have a foreach/2 somewhere? HOT 1
- Glitch in Syntax Highlighter of Ciao Prolog Playground HOT 1
- Feature request predicate divmod/4 HOT 9
- Compatibility issue evaluable function (^)/2 missing HOT 3
- profiling not compiling HOT 3
- Failed installation: now/1 is not exported by system HOT 4
- Missing or wrong rounding in (**)/2 HOT 4
- Feature request random/3 that works with bigint
- Rounding glitch from bigint to float HOT 1
- Evaluable function pi/0 missing HOT 2
- Ciao will not compile on GUIX HOT 5
- Termux install dependency missing in doc HOT 1
- Built-in predicate request: function_property/2 HOT 2
- subsumes_term/2 incorrect
- `./ciao-boot.sh global-install` fails when copying files HOT 4
- Symbol’s function definition is void: batch-update-autoloads HOT 2
- functor/3 incorrectly fails &ct HOT 7
- Read- and Write-Option variable_names/1 and Error Handling in Options
- Problem regarding documentation of tests with multiple solutions
- Profilercc is not compatible with profiler mode of the core engine HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ciao.