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

Adding tomcat server fails without any message #299

Open
Wimpje opened this issue Jun 16, 2020 · 9 comments
Open

Adding tomcat server fails without any message #299

Wimpje opened this issue Jun 16, 2020 · 9 comments
Assignees

Comments

@Wimpje
Copy link

Wimpje commented Jun 16, 2020

Issue Type: Bug

FYI I'm using WSL2 - Ubuntu 18.04

  • Click the + button,
  • Select tomcat folder (i tried with 6, 7, 8)

Nothing happens, no server is added, and no error message appears.

I've also made sure permissions are set correctly, so that should not be the problem...

Extension version: 0.11.2
VS Code version: Code 1.46.0 (a5d1cc28bb5da32ec67e86cc50f84c67cc690321, 2020-06-10T09:03:20.462Z)
OS version: Windows_NT x64 10.0.19041
Remote OS version: Linux x64 4.19.104-microsoft-standard

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.64GB (3.49GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu-18.04
OS Linux x64 4.19.104-microsoft-standard
CPUs Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2807)
Memory (System) 12.20GB (7.61GB free)
VM 0%
@andxu andxu self-assigned this Jun 19, 2020
@andxu
Copy link
Collaborator

andxu commented Jun 29, 2020

Hi @Wimpje , this project is in maintenance stage, I cannot reproduce your problem, if you cannot solve your problem, I suggest you to try https://marketplace.visualstudio.com/items?itemName=redhat.vscode-community-server-connector (prefer download tomcat using the community-server-connector extension)

@WHYBBE
Copy link

WHYBBE commented Oct 3, 2020

Hi @Wimpje , this project is in maintenance stage, I cannot reproduce your problem, if you cannot solve your problem, I suggest you to try https://marketplace.visualstudio.com/items?itemName=redhat.vscode-community-server-connector (prefer download tomcat using the community-server-connector extension)

I have the same problem as what Wimpje has said. When I use this extension in WSL1 or WSL2, nothing happens(I can't add tomcat server). It makes me annoying. I try this extension in macOS and Fedora. Without doubt, they work very well. But I want this extension can be used in WSL1 or WSL2. Finally, using community-server-connector can work well in WSL, but it is not a universal way to install environment.

@MarkPetersonNW
Copy link

I have the same problem when adding a Tomcat 9 server. I can add Tomcat 8 just fine but nothing happens when I try to add Tomcat 9.2.13.0.
OS: macOS Catalina (10.15.7)
Extension Version: 0.11.3
VScode Version:1.50.1

@chengh3
Copy link

chengh3 commented Mar 1, 2021

I meet the same problem. Nothing happens when adding tomcat server in vscode in wsl2.

@Marshal27
Copy link

I cloned down the project to debug this scenario... it would add the WSL tomcat consistently on non JAVA/maven projects when the tomcat server was not running (had to make sure tomcat was stopped).

but on a maven/JAVA project it would not want to add the server (not exactly sure why)... so I compiled a version with logging in the TomcatController.addServer function in an attempt to diagnose the issue.

First pass it appeared to get hung up on the await Utility.trackTelemetryStep section... once I added some additional logging in that array, it just started working, without explanation.

I suspect the fse library may be getting hung up somewhere in the WSL environment, moving all those items around like that... but it seems to be very intermittent and difficult to diagnose.

@Marshal27
Copy link

So far running the insiders build of VS-Code seems to have improved the behavior of this extension. Suspect this to be a factor.

microsoft/vscode-remote-release#2404

microsoft/vscode#89887

@frck006
Copy link

frck006 commented Mar 26, 2021

Did you manage to solve the problem?

@kawoki
Copy link

kawoki commented Jul 27, 2021

I did encounter this problem and found it annoying as well. I know this is not a fix to the problem but just a workaround, use the 0.11.2 version for now. Works for me.

VS Code

Version: 1.58.2
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19042

Tomcat for Java

Version: 0.11.2

Apache Tomcat

Version: 9.0.50

Java

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

@lamadiab
Copy link

lamadiab commented Feb 10, 2022

I have the same problem. Downgrading Tomcat for Java to 0.11.2 did not help in my case. I
m using Tomcat version 9.0.58 and Java 8. Before updating vscode to version 1.64.1, I got an error message
"The selected directory in not a valid Tomcat home". After updating vscode, nothing happens at all when I try to select the directory. I'm on Ubuntu 20.04.3 LTS.

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

No branches or pull requests

9 participants