Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Andre Dietisheim
    @adietish
    And then sure, having the exact error message would help
    lampsbr
    @lampsbr
    I'll try tomorrow and post precise messages. Promise :)
    lampsbr
    @lampsbr

    Hi, I added the auto-deploy-exploded thing to my wildfly12 config file and it kind of works. I mean, the exploded directory is being deployed. But the behavior is still different from what I'm used to do in eclipse.

    In eclipse, I save a file and apparently the server manager do some sort of incremental deploy. If I'm logged in the webapp in my browser, a couple f5s show the new code running, I don't even loose the session.

    What I did today: Saved the file > run maven package in the vscode maven extension > wildfly detected it and deployed the new version of the exploded firectory.

    lampsbr
    @lampsbr
    just realized I wasn't using it in debgu mode. Will try again asap
    lampsbr
    @lampsbr
    the behavior is the same (either using wildfly run and debug). There is something in the eclipse environment that publish small changes in wildfly if I edit a xhtml file or some part of a java method. That's what I'm still missing
    Andre Dietisheim
    @adietish
    @lampsbr in Eclipse the server adapter knows about compilations and updates the parts that changed. We dont have this in vscode. So the whole thing is copied over i believe
    @lampsbr so you say that the app is restarted when the new (exploded) war is re-deployed, right?
    no proper hot code replace, right?
    lampsbr
    @lampsbr
    @adietish yes, the whole thing is copied over.
    And yes and yes, you are correctly describing what is happening in my work environment.
    Andre Dietisheim
    @adietish
    @lampsbr ok, so you could open an issue if you want and we’d gladly look into it at some point. My bet though is that our possibilities are pretty limited.
    Andre Dietisheim
    @adietish
    @lampsbr interesting read here: https://www.endpoint.com/blog/2017/10/27/hot-deploy-java-classes-and-assets-in Never tried it though (and the article is old)
    Andre Dietisheim
    @adietish
    @lampsbr and yes, we should thrive for supporting hot code replace via the debug connection. JRebel & HotswapAgent are the more advanced, more complete solutions
    lampsbr
    @lampsbr
    Hi @adietish ! I'll open the issue, thanks =]
    annnd I didn't knew abou this hotswap agent, I'll surely try it in my app
    Andre Dietisheim
    @adietish
    @lampsbr agree, looks interesting. But you’d have to check the supported frameworks. The list is limited.
    @lampsbr documentation is here: http://hotswapagent.org/ Look at the menu (on the left) “Framework plugins” (Hibernate 3,4,5, jersey, resteasy, jsf, etc.)
    lampsbr
    @lampsbr
    Hey @adietish , I didn't try hotswapagent yet, but I enabled automatic hot code replace in vscode and it did work fine with redhat rsp server and wildfly 12 (in debug mode)!
    It does replace .java files ( i tested adding println's in some method), but it doesn't replace .xhtml files. I'll try hotswapagent asap.
    Andre Dietisheim
    @adietish
    @lampsbr awesome, thx for the feedback :D
    Lukas
    @LukasLeppich
    Hi, is there a way to prevent vscode to focus on the server output view on every new log line?
    Lukas
    @LukasLeppich

    I think the problem lays in here: https://github.com/redhat-developer/vscode-rsp-ui/blob/master/src/extensionApi.ts#L651

    The show property of the displayLog function is set to true. Therefore the outputChannel.show method is called every time.
    The show method has an additional parameter preserveFocus which is not set:
    https://code.visualstudio.com/api/references/vscode-api#OutputChannel

    Luca Stocchi
    @lstocchi
    Hi @LukasLeppich, you can set the setting "Show Channel On Server Output" to false by unchecking it. Just go on File -> Preferences -> Settings -> Search for "Show Channel On Server Output" and uncheck it. Now you can work with servers (start/stop/...) without the output channel getting focused. In the portion of code you mentioned, yes you're correct,we're going to fix it. Thanks :)
    Lukas
    @LukasLeppich
    The solution is working, thank you! I expected the property to disable all output.
    Helbert Rios
    @helbertrios
    Hi everyone, there are documentation about server connector parameter. like [vm.args.override.string, server.home.dir]
    lampsbr
    @lampsbr
    Hi @helbertrios , you mean you want to edit parameters? Right click in the server -> edit server
    Luca Stocchi
    @lstocchi
    Hi @helbertrios, there is no documentation about server connector parameter atm. We are going to work on it and release it asap. Sorry for the inconvenience. In the meantime if you need any help with your project you can write here or open an issue on github :)
    liciouscode
    @liciouscode
    Hello, when not running on port 8080/ 9990 RSP doesnt is stuck on "starting" when the server starts. After a while it will automatically stop. This does not happen with default ports. Is there a way to configure these for RSP? or to lengthen the Timeout?
    Luca Stocchi
    @lstocchi
    Hello @liciouscode , it depends what you mean with RSP. If you want to change the port of the rsp provider (Red Hat RSP Server) i guess the answer is no. We scan the ports from 8000 to 65535 and use the first free. You should change the code of the server-connector https://github.com/redhat-developer/vscode-server-connector . If you want to change the port of a server (ex. Wildfly) you can try editing the standalone.xml by hand. Right click on the server you want to edit and click on "Edit Server" -> set "args.override.boolean" to true -> now you should see "program.args.override.string" -> edit standalone.xml file related to that server (you can see the correct path inside "program.args.override.string") -> once you finish editing, save the standalone.xml file -> make sure the flag "args.override.boolean" is set to true (close the editor in vscode and reopen it by clicking again on "Edit Server" and edit "args.override.boolean" if needed) and launch the server. Now you should be able to see the server running on the port you specified. I checked what you said and it's true the server is stuck on "starting" when changing the port but it seems the server is running correctly. We'll investigate about it. In the meantime you can try and see if it works for you too. Thank you :)
    Toni Pérez
    @toniperezfer
    Hello everyone. When will be available a new release? Thank you.
    Andre Dietisheim
    @adietish
    @toniperezfer afaik the plan is to have a new release in the end of this week/early next week. Got details @robstryker, @lstocchi ?
    Rob Stryker
    @robstryker
    That's the plan. As far as I can tell, there's only one PR outstanding for actual fixes (although QE might find more? Hope not) and 1 for updating the README.md file with some documentation.
    Andre Dietisheim
    @adietish
    @robstryker what about nightlies? Do we have these avail?
    Rob Stryker
    @robstryker
    but i dont think they use the newest rsp-server
    i'd need to check
    but thats where nightlies would go
    also that page has way too many builds ;) we might need to figure out how to trimp it
    version to be released is 0.21.0 but i dont see it there
    Rafael Henrique
    @rafadev7
    Hello there, I'm getting an error when trying to create a server downloading through the Internet, I'm getting timeout and this message:
    Unable to create the server: Extension backend error - failed to list downloadable runtimes in time
    Andre Dietisheim
    @adietish
    @rafadev7 hi Rafael
    is the error persistent?
    lampsbr
    @lampsbr

    Hi, how can I manually remove a deployment from the list in vscode extension? I mean, I have some deployments listed in my wildfly9 installation that are no longer there. They're not in deployments directory for a long time (several reboots). But they are still listed in vscode extension. I tried right-click in the server > edit server and removing the deployables, but turns out it's a tmp file and what I change in there isn't reflected anywhere. Of course I tried right clicking the deployment > remove deployment, but nothing happens after this. The server is always annotated with "full publish required", but I get an extension backend error when I try to full publish, and I don't know how to do it manually in wildfly.

    Sorry for the long message, I'm not sure if it's clear

    Rob Stryker
    @robstryker
    @rafadev7 That's a UI error that the backend (rsp-server) took too long to download the list of runtimes to download. Typically, if you just re-execute the action, it should work unless you have an issue with your internet connection
    Rob Stryker
    @robstryker
    @lampsbr depending on which version you have, you would want to look in ~/.rsp/redhat-server-connector/servers/yourServerNameHere or ~/.org.jboss.tools.rsp.data/servers/yourServerNameHere
    if you edit that file when your rsp is stopped, you can remove the deployments there
    then next time you start your rsp it should work
    but also, can you make a github issue for the workflow you have that's failing now? So i can look into it?
    lampsbr
    @lampsbr
    Hi @robstryker ! Yes, I'll create the github issue and try this solution tomorrow morning. Thank you!
    lampsbr
    @lampsbr
    I just created the issue. Thanks for helping and please let me know if you need more info. I'll keep my "ghost deploy" in here for another day. =]