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

Auto Save feature re-enables itself when a Gauge project is loaded #378

Open
gusgonnet opened this issue May 13, 2019 · 10 comments
Open

Auto Save feature re-enables itself when a Gauge project is loaded #378

gusgonnet opened this issue May 13, 2019 · 10 comments

Comments

@gusgonnet
Copy link

Every time a Gauge project is opened in VS Code, Auto Save becomes enabled on its own (well, I suspect the plugin is enabling it when it becomes active).

Observations

  • I open VS Code then disable Auto Save (from Menu -> File -> Auto Save)
  • Auto Save is not checked anymore
  • I close VS Code
  • reopen VS Code in a project that does not contain any .spec file (any file that triggers the gauge plugin to kick in) -> Auto Save is still disabled <<-- this is the expected behavior
  • I close VS Code
  • reopen VS Code in a Gauge project -> Auto Save becomes enabled (and not by the user, me) <<-- this is the issue

VS Code info:

Version: 1.33.1
Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8
Date: 2019-04-11T08:20:22.771Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-48-generic


Gauge plugin info:

Name: Gauge
Id: getgauge.gauge
Description: Gauge support for VScode.
Version: 0.0.9
Publisher: getgauge
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=getgauge.gauge

Thanks!
Gustavo.

@NivedhaSenthil
Copy link
Member

Couldn't replicate the issue with the flow you have mentioned, seems to persist the user selected value of auto save.

Steps that I did try:

  • Uninstalled existing extension and installed fresh 0.0.9 version of plugin
  • Ignored optimise vscode setting for gauge pop up
  • Tried enabling auto save
  • closed and opened the project, this persisted the enabled setting.
  • Disabled auto save and closed the window.
  • opening the project again had the auto save disabled

Is there something different you are doing and also please verify if there are any extensions that is enabling auto save.

@gusgonnet
Copy link
Author

hum, that's weird.
Now, to rule out the possibility of another extension changing the setting, I disabled Gauge, then repeated the experiment. The Auto Save setting remains disabled.
One thing I noticed that we may have done differently:
Once I opened the project, I had a .spec file already opened from the past. If I have no files opened already, the setting does not change at load time.

Now, I observe that my VS Code does a kind of reload or something the very first time that it opens a .spec file (I believe when the Gauge extension kicks in and starts adding decoration to my code otherwise inert code) and there is where the setting is changed.

So, to test on your side:

can you repeat the experiment, but this time after opening the project, also double clicking in a spec file to open it?

Thanks!
Gustavo.

@NivedhaSenthil
Copy link
Member

I have had a .spec file opened previously too, dint help reproducing the issue. Which OS you are in ? I had tried in MacOs Mojave

@gusgonnet
Copy link
Author

gusgonnet commented May 16, 2019

Hi, sorry for not specifying that important detail before.
I am on Ubuntu 16.04.

(oh, I now notice this is included in the VS Code info in the first post of this thread, to some extent)

Are there any Gauge debug logs that I would be able to take a look at for this?
Thanks,
Gustavo.

@sriv
Copy link
Member

sriv commented May 17, 2019

I can confirm that I see the same issue as @gusgonnet on my pop_os (based on ubuntu 19.04)

@negiDharmendra negiDharmendra self-assigned this May 20, 2019
@negiDharmendra
Copy link
Contributor

@gusgonnet Please look for Gauge > Recommended Settings > Options in you User settings. Is it set to Apply & Reload

Screenshot 2019-05-20 at 6 05 42 PM

@negiDharmendra negiDharmendra removed their assignment May 21, 2019
@gusgonnet
Copy link
Author

@gusgonnet Please look for Gauge > Recommended Settings > Options in you User settings. Is it set to Apply & Reload

Hi @negiDharmendra ,

yes, I see it set to Apply and Reload:

Screenshot from 2019-05-21 14-52-49

Anything else to check?
Thanks!

@Apoorva-GA
Copy link
Contributor

@gusgonnet Please set Gauge > Recommended Settings > Options to Ignore.
So that the recommended settings won't be applied by gauge plugin also the notification to apply recommended settings won't be shown again.

@Apoorva-GA Apoorva-GA self-assigned this May 22, 2019
@gusgonnet
Copy link
Author

Hi @Apoorva-GA ,
that fixes this issue - thank you!

@Apoorva-GA
Copy link
Contributor

Apoorva-GA commented May 23, 2019

Reopening the issue, as the below mentioned behaviour will be helpful.

Expected behavior

When Gauge > Recommended Settings > Options is set to Apply & Reload, Recommended settings should be applied to the gauge-project and not globally.

Actual behavior

When Gauge > Recommended Settings > Options is set to Apply & Reload. Recommended settings are applied globally, which might affect non-gauge projects.

Version

gauge-vscode plugin : 0.0.11.nightly-2019-05-17

@Apoorva-GA Apoorva-GA reopened this May 23, 2019
@Apoorva-GA Apoorva-GA removed their assignment May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants