JavaScript bugs

JavaScript bugs

Postby BartTM on Tue Apr 24, 2012 11:17 pm

As Jaguarondi discovered by playing my problem 15346 in JavaScript mode, multithreading seems to have fallen over.The R18 branch should fall back on the main line.
I added the full path to this branch so it won't break off anymore, but now it refuses to play this branch altogether.
So I wanted to comment about it in the very tiny JS comment box, but it did not submit.
So I tried to copy the text and paste it in a comment in Java mode but even that failed!

If I paste here I get the text I copied first, but I cannot paste it in a Java comment box nor copy the text from there to here...
Seems there are two separate and incompatible copy-paste buffers? Do you use type restrictions on comment boxes, and do these types differ?
In that case, please remove the type restriction on the SGF box in the Graphical Editor mode too; I'd like to edit SGF in another editor sometimes but can't do that now.

Sorry for putting several bugs in one report, but I feel they might be related.
User avatar
BartTM
 
Posts: 81
Joined: Mon Sep 21, 2009 1:46 pm

Re: JavaScript bugs

Postby adum on Wed May 02, 2012 1:43 pm

okay, so there's a few things here.

first, right now the JS mode doesn't do what you call multithreading, with is the isomorphic support. i'm going to handle it soon by expanding the base version on the backend and sending that instead.

for JS comments, i don't know what your problem is. nobody else seems to have a problem with this. if you can reproduce or take a screenshot, please let me know.

for copy and paste to the Java version, Java maintains its own copy and paste buffer probably because it's trying to be secure.
User avatar
adum
Site Admin
 
Posts: 385
Joined: Tue Sep 30, 2008 5:09 pm

Re: JavaScript bugs

Postby adum on Wed May 02, 2012 1:44 pm

oh, i didn't respond to the "but now it refuses to play this branch altogether" comment. can you elaborate on this? can you tell me exact sequence of steps to reproduce this behavior? thanks
User avatar
adum
Site Admin
 
Posts: 385
Joined: Tue Sep 30, 2008 5:09 pm

Re: JavaScript bugs

Postby BartTM on Fri May 18, 2012 3:00 am

When I play 15346's correct move P19 in JS mode then the problem will always answer it at P18, no matter how often I hit the <| button.
In Java mode it wil choose between P18 and R18, as intended.

As for the copy/paste problem, I cannot reproduce that, at least not from the comment box to here; that works now. It really did not at first, but now it does, so let's ignore that.

But the comment feature itself does not work in JS mode, at least I still can't use it.
I'll describe:
In JS mode the new comment box opens but is only approx. 20 tokens by 2 lines small.
The comment type selector is just 1 token wide (!) and shows a narrow and very high but empty list.
The submit button just sits there. It graphically responds to being clicked on, but does not close the comment box nor does it submit the comment.

The comment button counter in the problem shows the total number of all comments including the disabled ones. In Java mode it only counts the active comments.
User avatar
BartTM
 
Posts: 81
Joined: Mon Sep 21, 2009 1:46 pm

Re: JavaScript bugs

Postby TheBigH on Wed Jun 20, 2012 4:40 pm

Is there a workaround for the copy/paste issue? I would like to be able to save the SGF of problems I compose, in case goproblems freezes when I hit submit. That's happened to me twice already, causing me to lose all my work.
TheBigH
 
Posts: 5
Joined: Fri Dec 02, 2011 2:51 pm

Re: JavaScript bugs

Postby adum on Thu Jun 21, 2012 9:46 am

it seems that Oracle has changed their Java policy on copy and paste for applets. there is a workaround i found:
https://blogs.oracle.com/kyle/entry/cop ... te_in_java
User avatar
adum
Site Admin
 
Posts: 385
Joined: Tue Sep 30, 2008 5:09 pm

Re: JavaScript bugs

Postby adum on Thu Jun 21, 2012 10:13 am

for problem 15346, i moved the target indicators to the actual branch point. the JS version works like that.
User avatar
adum
Site Admin
 
Posts: 385
Joined: Tue Sep 30, 2008 5:09 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron