Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitwise AND does not work #592

Closed
someilay opened this issue Feb 24, 2022 · 6 comments
Closed

Bitwise AND does not work #592

someilay opened this issue Feb 24, 2022 · 6 comments

Comments

@someilay
Copy link
Contributor

Code:

+package sandbox
+alias org.eolang.io.stdout

[args...] > main
  seq > @
    stdout
      as-string.
        as-int.
          and.
            as-bytes.
              1
            as-bytes.
              1
    stdout
      "\n"

Execution output:

Exception in thread "main" java.nio.BufferUnderflowException
	at java.base/java.nio.Buffer.nextGetIndex(Buffer.java:706)
	at java.base/java.nio.HeapByteBuffer.getLong(HeapByteBuffer.java:485)
	at EOorg.EOeolang.EObytes$EOas_int.lambda$new$0(EObytes$EOas_int.java:47)
	at org.eolang.AtComposite.get(AtComposite.java:73)
	at org.eolang.CachedPhi.get(CachedPhi.java:81)
	at org.eolang.PhDefault.attr(PhDefault.java:226)
	at org.eolang.PhNamed.attr(PhNamed.java:92)
	at org.eolang.PhOnce.attr(PhOnce.java:96)
	at org.eolang.PhMethod.lambda$new$0(PhMethod.java:42)
	at org.eolang.Data$Once.take(Data.java:95)
	at org.eolang.PhOnce.equals(PhOnce.java:61)
	at org.eolang.PhMethod.equals(PhMethod.java:32)
	at org.eolang.AtFree.get(AtFree.java:82)
	at org.eolang.AtNamed.get(AtNamed.java:75)
	at org.eolang.Param.weak(Param.java:97)
	at org.eolang.Param.strong(Param.java:77)
	at EOorg.EOeolang.EOio.EOstdout.lambda$new$0(EOstdout.java:54)
	at org.eolang.AtComposite.get(AtComposite.java:73)
	at org.eolang.CachedPhi.get(CachedPhi.java:81)
	at org.eolang.PhDefault.attr(PhDefault.java:226)
	at org.eolang.PhOnce.attr(PhOnce.java:96)
	at org.eolang.PhOnce.attr(PhOnce.java:96)
	at org.eolang.Dataized.take(Dataized.java:81)
	at EOorg.EOeolang.EOseq.lambda$new$0(EOseq.java:51)
	at org.eolang.AtComposite.get(AtComposite.java:73)
	at org.eolang.CachedPhi.get(CachedPhi.java:81)
	at org.eolang.PhDefault.attr(PhDefault.java:226)
	at org.eolang.PhOnce.attr(PhOnce.java:96)
	at org.eolang.PhOnce.attr(PhOnce.java:96)
	at org.eolang.PhOnce.attr(PhOnce.java:96)
	at org.eolang.PhDefault.attr(PhDefault.java:226)
	at org.eolang.Dataized.take(Dataized.java:81)
	at org.eolang.Dataized.take(Dataized.java:122)
	at org.eolang.Main.run(Main.java:166)
	at org.eolang.Main.main(Main.java:91)
@yegor256
Copy link
Member

@andreoss can you take a look, please?

@andreoss
Copy link
Member

@yegor256 Yes.

@yegor256
Copy link
Member

@rultor release, tag is 0.21.10

@rultor
Copy link
Contributor

rultor commented Mar 22, 2022

@rultor release, tag is 0.21.10

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Contributor

rultor commented Mar 22, 2022

@rultor release, tag is 0.21.10

@someilay @yegor256 Oops, I failed. You can see the full log here (spent 15min)

+ branch=__rultor
+ git checkout gh-pages
Branch 'gh-pages' set up to track remote branch 'gh-pages' from 'origin'.
Switched to a new branch 'gh-pages'
+ git reset --hard
HEAD is now at 4e8cdc9a link
++ pwd
+ sudo -i /bin/bash -c 'cd '\''/home/r/repo'\''; git clean -fd'
Removing eo-maven-plugin/
Removing eo-parser/
Removing eo-runtime/
Removing target/
+ cp /tmp/XMIR.xsd .
+ sed -i 's|SNAPSHOT|0.21.10|' XMIR.xsd
+ git add XMIR.xsd
+ git commit -am 'XMIR XSD 0.21.10'
[gh-pages 8bfa8b1a] XMIR XSD 0.21.10
 1 file changed, 1 insertion(+), 1 deletion(-)
+ rm -rf objectionary
+ cp -R /tmp/objectionary .
+ find objectionary -name '*.eo'
+ xargs sed -i 's/0\.0\.0/0.21.10/g'
+ git add objectionary
+ find objectionary -name '*.eo'
+ git add objectionary.lst
+ git commit -am 'objectionary 0.21.10'
[gh-pages 75f0164c] objectionary 0.21.10
 24 files changed, 81 insertions(+), 21 deletions(-)
+ git checkout __rultor
Switched to branch '__rultor'
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
+ '[' -n '' ']'
++ whoami
+ sudo chown -R rultor repo
+ cd repo
+ git checkout __rultor
Already on '__rultor'
+ git tag 0.21.10 -m '0.21.10: tagged by rultor.com'
+ git reset --hard
HEAD is now at 89d26e3 0.21.10
+ git clean -fd
+ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
+ git branch -D __rultor
Deleted branch __rultor (was 89d26e3).
+ git push --all origin
To git@github.com:cqfn/eo.git
   4e8cdc9..75f0164  gh-pages -> gh-pages
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'git@github.com:cqfn/eo.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
container 800df105c7014e5d4affed6ad4eb24743580db0ca53fddd57c5f1449be9f2c90 is dead
Tue Mar 22 05:26:11 CET 2022

@yegor256
Copy link
Member

@someilay try version 0.21.10, should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants