-
Notifications
You must be signed in to change notification settings - Fork 19
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
Gauge server initialization error on MacOS #735
Comments
can you check if there are any errors in any of the log files? This is something that comes up when certain errors occur while opening a gauge project. |
@sriv , where can I grab the log files from? In this case, it was the default TS template project so there was no additional custom code in it yet. |
You should see the logs under |
Is there any advice how to approach this issue? Having similar issues, these were the logs:
|
Hey there, I have the same issue and can confirm the log of @chavdim - here is mine:
What I additionally checked is:
When I change the language in the manifest to "js", the extension works (but doesn't recognise the step implementations :) )
Hence my question to you guys @sriv / gauge team - on your project page of the vs-code extension you mention, that the gauge extension only works for the following language-plugins:
@BugDiver mentions on the gauge-ts page that the typescript plugin should als work - what is now correct? :) - do we need a feature request? If someone gives me a quick-brush I am happy to contribute.
|
Thanks for sharing the logs, I can see this issue myself! Now, as for the typescript support for gauge-vscode goes, I can say that we do not have tests to cover typescript! See https://github.com/getgauge/gauge-lsp-tests/tree/master/env This means, that the CI build test (and certify) that gauge-vscode will work for java, ruby, js, dotnet (C#), python. gauge-ts seems to have the implementations in place to enable gauge-vscode editing, but it seems like there is some issue bootstrapping this. I will take a deeper look, but as it stands today it looks like there needs to be more work done to bring this feature in. Apologies if the documentation was misleading! |
Alright - that's good and bad news :) I'll also try to play around and try to understand a little more. We can work, so we are not completely blocked, but if you could drive a Mercedes you don't want the Opel 😋 Thanks a lot for your feedback so far @sriv M. |
@CharlieDigital @mholetzko I have updated the gauge typescript template. Could you please verify
If you already have a typescript project please try follwing to see if that fixes your issue
|
Hey, Awesome I just checked it out. A fresh 'gauge init ts' works now like a charm! In my existing project I simply pinned the ts-node and typescript versions you have mentioned in the template. And that works as well :) Thanks a lot - at least within my team I expect a bunch of happy faces on Monday 🙂 Thanks a lot to everyone who has contributed 🙏🏼 Matthias |
@BugDiver also confirm that it works for new projects via It's not an issue as it's easy enough to move files around I suppose. Thanks to the folks for getting this patched! |
@BugDiver as of today in package-lock.json I have: "gauge-ts": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/gauge-ts/-/gauge-ts-0.1.0.tgz",
"integrity": "sha512-ZVxe1+Vi84O8D5XaMdOwG6UkHBlJ4T5OYHgIaZfhvYAwjyzFjXmINqHt7j1TvaPFwzqym6uJHcme/Hvr3I977Q==",
"requires": {
"@grpc/grpc-js": "^1.1.5",
"google-protobuf": "^3.13.0",
"klaw-sync": "^6.0.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.3",
"uuid": "^8.3.0"
},
"dependencies": {
"ts-node": {
"version": "9.1.1",
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.1.1.tgz",
"integrity": "sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==",
"requires": {
"arg": "^4.1.0",
"create-require": "^1.1.0",
"diff": "^4.0.1",
"make-error": "^1.1.1",
"source-map-support": "^0.5.17",
"yn": "3.1.1"
}
}
}
} whereas in package.json {
"name": "gauge-ts-template",
"description": "Starter template for writing TypeScript tests for Gauge",
"dependencies": {
"gauge-ts": "0.1.0",
"ts-node": "^10.4.0",
"typescript": "^4.4.4"
},
"devDependencies": {
"@types/node": "latest",
"taiko": "^1.0.26"
}
} Thanks in advance. |
I was just checking the differences. I verified https://github.com/getgauge/template-ts/releases/tag/v0.0.6 In 0.0.7,0.0.8 two new versions have been bumped, hence I assume that gauge itself might have been updated. Otherwise to make it work I would suggest you pin the versions for your project to the ones in https://github.com/getgauge/template-ts/releases/tag/v0.0.6. |
Is this version working for you? |
yes, setting these versions in package.json solved it. Thanks 👍
|
I know this issue has been open for a while, but I'd just like to highlight that after having similar issues with the VSCode extension getGauge install (couldn't tie step implementations to spec steps -> implementation not found errors) that I was able to get this working by following a similar path as suggested by BugDiver:
I'm not sure what the issue is with the extension, and I'm not sure if this is related but I did notice the following error in the log when installing:
|
The getgauge/common upgrade solves the issue where the gauge server crashes whenever a project is loaded that uses the ts plugin. The cause is described here getgauge#2419 This commit closes/permanently fixes issues like getgauge/gauge-vscode#735 getgauge/gauge-vscode#636 getgauge/gauge-vscode#885 Signed-off-by: Lukas Bockstaller <lukas.bockstaller@posteo.de>
* Upgrade getgauge/common to solve ts issue The getgauge/common upgrade solves the issue where the gauge server crashes whenever a project is loaded that uses the ts plugin. The cause is described here #2419 This commit closes/permanently fixes issues like getgauge/gauge-vscode#735 getgauge/gauge-vscode#636 getgauge/gauge-vscode#885 Signed-off-by: Lukas Bockstaller <lukas.bockstaller@posteo.de> * Tidy Go modules Signed-off-by: Chad Wilson <chadw@thoughtworks.com> * Bump Gauge version Signed-off-by: Chad Wilson <chadw@thoughtworks.com> --------- Signed-off-by: Lukas Bockstaller <lukas.bockstaller@posteo.de> Signed-off-by: Chad Wilson <chadw@thoughtworks.com> Co-authored-by: Chad Wilson <chadw@thoughtworks.com>
Describe the bug
When starting VS Code on MacOS, the following errors are shown in the UI:
What command(s) did you run when you found the bug?
Started VS Code
Output, stack trace or logs related to the bug
Versions
Gauge (Output of
gauge -v
)Node.js/Java/Python/.Net/Ruby version
See below.
Operating System information
MacOS
IDE information
The text was updated successfully, but these errors were encountered: