Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 20 22:59
    @dockimbel banned @SmackMacDougal
  • Dec 03 2017 05:53
    @PeterWAWood banned @matrixbot
  • Sep 28 2016 12:19
    @PeterWAWood banned @TimeSeriesLord
  • Aug 13 2016 03:23
    @PeterWAWood banned @Vexercizer
Giuseppe Chillemi
@GiuseppeChillemi_gitlab
@9214 OK
Remigiusz Kozdra
@vejitatoja
I have a question regarding the VScode extension. Is it a little broken at the moment? At my system autocompletion tend to stop working after few minutes and when it is working it's function definition help is showing wrong definitions.
Vladimir Vasilyev
@9214

2017-8-3

Good gracious! :older_man:

Toomas Vooglaid
@toomasv
:scream:
Vladimir Vasilyev
@9214
Haven't noticed anything like that @vejitatoja. Can you post a GIF of this behavior?
If someone can reproduce it, then it's worth to be reported.
Gregg Irwin
@greggirwin
I seem to recall that the plugin needed an update after I updated VSCode at one point, but don't remember details right now.
Remigiusz Kozdra
@vejitatoja
I will record a GIF of the problems later today when i will be back at my PC.
Gregg Irwin
@greggirwin
:+1:
Giuseppe Chillemi
@GiuseppeChillemi_gitlab
@9214 @toomasv Night Build Crashed !
Vladimir Vasilyev
@9214
Now that's interesting.
Giuseppe Chillemi
@GiuseppeChillemi_gitlab
(Just after the first start, the second one was OK)
And ar1/selected works
Toomas Vooglaid
@toomasv
@GiuseppeChillemi_gitlab I tried with latest build and there were no problems here. How/where do you use ar1/selected?
Giuseppe Chillemi
@GiuseppeChillemi_gitlab
probe ar1/selected
however, the first run halted RED (just after compilation), the second one no crash
Toomas Vooglaid
@toomasv
Ah, ok, I didn't compile it.
Gregg Irwin
@greggirwin
Skimming quickly, what if you move the code out of the action handler, into a function, and call that? There are some compilation issues with objects. Also try -e for compiling. If that gives us a clue, we can file a ticket.
Vladimir Vasilyev
@9214
@greggirwin perhaps @GiuseppeChillemi_gitlab meant "after compilation of Red toolchain"?
Gregg Irwin
@greggirwin
Ah, that's what I get for moving fast. Thanks for clarifying.
Vladimir Vasilyev
@9214

moving fast

@rebolek masaka... :mouse: :exclamation:

Toomas Vooglaid
@toomasv
@GiuseppeChillemi_gitlab Compiled. Works like a charm. :)
Boleslav Březovský
@rebolek
@9214 I'm :turtle: these days
Toomas Vooglaid
@toomasv
@GiuseppeChillemi_gitlab Here is script where you can enter search word to a field, hit enter, and it is cut from area1 and appended to the new line in area2:
Red []
add-word: func [selection extra][
    append ar2/text 
        append 
            take/part 
                at ar1/text selection/1 - extra 
                selection/2 - selection/1 + 1 
            newline
]
view/no-wait [
    below
    ar1: area 300x100 focus wrap 
    ar2: area 300x100 "" wrap
    return
    button "Cut" [
        nls: 0 
        parse copy/part ar1/text ar1/selected/1 + 1 [some [newline (nls: nls + 1) | skip]] 
        add-word ar1/selected nls
    ]
    field 60 hint "Find" [
        idx: index? find ar1/text face/text
        ar1/selected: as-pair idx idx + (length? face/text) - 1 
        add-word ar1/selected 0
    ]
]
GiuseppeChillemi
@GiuseppeChillemi
@toomasv Nice. I remains only a last problem: I need to highlight text from a start position to an end one (like selecting it manually). Also, multy selecte would be a welcome plus.
mmmm.... maybe I have missed this one...
view [a: area "abdefgh" button "highlight" [a/selected: 2x4]]
GiuseppeChillemi
@GiuseppeChillemi
image.png
Here it keeps crashing.
No correlation with compilation phase
Sometime it works, sometime it crashes
Gregg Irwin
@greggirwin
Field/Area are native widgets, which don't support multiple selections. That's what the rich text control would be used for.
Remigiusz Kozdra
@vejitatoja
I have recorded the problems I have with VScode extension for Red on my PC.
  1. When using autocomplete the definitions of functions that are highlighted are wrong.
  2. If after starting to type a word (and autocompletion widget shows) i erase the character. Then autocomplete(intelisense) stops working and never shows again until I restart VScode.
    alt
Vladimir Vasilyev
@9214
Thanks @vejitatoja .
Could you please double-post this as an issue?
Remigiusz Kozdra
@vejitatoja
Sure, I just did that.
Vladimir Vasilyev
@9214
May RED tokens dew thee.
Remigiusz Kozdra
@vejitatoja
I have beginner question: what is the alternative to REBOL to-integer to-string functions?
Vladimir Vasilyev
@9214
@vejitatoja in Red you mean?
Remigiusz Kozdra
@vejitatoja
yes
Vladimir Vasilyev
@9214
They are already there, automatically derived for each datatype.
See here.
Remigiusz Kozdra
@vejitatoja
I looked at http://www.red-by-example.org/ and could not find them so i assumed that they were removed or are not implemented.
Vladimir Vasilyev
@9214
@vejitatoja take your time to learn built-in help facilities, it will pay off in the long run.
For example, you can examine a list of all these conversion functions (and some other things) with ? "to-".
Remigiusz Kozdra
@vejitatoja
That's very helpful. Thank you. I would love to be able to fix my VScode to show me all this help information as I type.
Vladimir Vasilyev
@9214
@vejitatoja I can't reproduce your issue on Insiders build, perhaps that's the culprit?
IIRC VSCode did some change in its plugin architecture that wreck havoc. I recall having issues with interpreting scripts from a terminal.
Remigiusz Kozdra
@vejitatoja
I did install Insiders build and with only one extension (Red) I'm still having the same issue.
Vladimir Vasilyev
@9214
On the other hand, I just noticed that function info popup is not refreshing, but autocompletion works fine.
Remigiusz Kozdra
@vejitatoja
If i type character 'a' then remove it and then type 'a' again and remove it. After I try to do it third time autocomplete stops working. Can you check if its the same on your machine? (I'm using windows 10)