KX Developer: show doesn't work

I just downloaded the KX Developer and Installed it. It works to do the computation, but it doesn’t work to print messages.

 

In KX Developer, if I simply run “show 123”, I will have the error “cannot write to handle 1. OS reports: the parameter is incorrect”. Any ideas? My version is “KX Developer 1.5.4”.

 

I did a test:

  1. Downloaded developer-1.5.4-windows.zip

  2. Extracted and ran install.bat

  3. Opened the install folder and ran config\config.bat

  4. Ran q launcher.q_

  5. Opened my browser and ran show 123 using Ctrl+D

Works as expected:

Q version:

 

q)(.z.K;.z.k) 4f 2021.10.01

 

 

  1. What OS are you on?
  2. Are you following the same steps as above or different?
  3. Does the issue remain after you restart Developer’s underlying q process?

Thanks for your reply.

  1. I’m using Windows 11 version 22H2 (OS build 22621.1555)

  2. Yes, I used the 5 steps as mentioned by you and then I saw the error I mentioned. But I run **C:\q\w64\w64\q.exe C:\developer\launcher.q\_** instead of **q C:\developer\launcher.q\_** because I have 32-bit q and 64-bit q so I need to specify a 64-bit q.exe

  3. Yes I tried restarting developer/browser/laptop and still have this problem

https://code.kx.com/developer/faq/#failed-to-load-workspace-error-creating-child-process-when-opening-a-workspace

“Please attempt to load Developer without any changes to $QHOME/q.k or $QHOME/q.q

 

Do you have any customisations in these files?

I didn’t modify q.k. Meanwhile, I don’t have a q.q file. When I downloaded the  w64.zip file from the url provided by the free-trial-email, after unzipping the only available files I saw are q.exe and q.k , and there is no q.q.

Where is no problem for me to load workspace. If I run .z and .Q etc., there is no error.

It seems that the handle 1i is not connected to my console. If I run 1i"123" , theorectically it should output 123 , but at my KX Developer it just give me the same error “cannot write to handle 1. OS reports: the parameter is incorrect”.

What version of kdb+ are you running?

(.z.K;.z.k)

 

It’s below:

4f
2023.01.20

 

I have encountered the same problem as you, how did you solve it, how can I use show in developer?

Hi, I haven’t solved the problem. Currently, I’m using a workaround as below:

  1. Open another q-session in cmd, and then listen to a port using  \p , say port 9001

  2. At KX Developer, create handle h1 which connect to 9001 using  h1:hopen`::9001

  3. At KX Developer, if you run  h1 “show 2+2” , you will see 4 at the q-session

This workaround is not very ideal, but still a bit helpful while debugging

What operating system are you using?

https://code.kx.com/developer/getting-started/#prerequisites

(Note: Windows 11 is not on supported list) 

i see, thanks. I am using Windows 11 version 22H2. That’s why.