gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Cannot create new files

Open stefdworschak opened this issue 6 years ago • 33 comments

Hi all,

Some of our students have reported issues in creating new files in their workspaces' directories.

Does not work:

  • Use the "File" - "New File" menu
  • Right-click "New File"

Does work:

  • Using touch from the terminal

Could you please have a look at this issue as soon as possible?

Thanks, Stefan

stefdworschak avatar Jun 03 '20 12:06 stefdworschak

Possibly related, a suddenly not-working HTML tag auto-complete has been reported by at least two users in the same timeframe as the above issues.

bravoalpha79 avatar Jun 03 '20 12:06 bravoalpha79

Hi! I am experiencing the same issue in gitpod. I can´t create a New file or New folder

Saharalnoor avatar Jun 03 '20 12:06 Saharalnoor

I have the same issue, as well as not able to create a new folder.

irinatu17 avatar Jun 03 '20 12:06 irinatu17

I am unable to create any new files or folders, as well as HTML autocomplete not working. If I type .thisclass and press tab, it only indents me further. It doesn't create the div with my class.

Decline-of-Mind avatar Jun 03 '20 12:06 Decline-of-Mind

I also had similar issues today. Unable to create new files or folders using the menu. Also my environment problems and warnings were not visible any more.

Sparkplug84 avatar Jun 03 '20 15:06 Sparkplug84

I am currently experiencing an issue with the "Format document" command that is no longer working on any of my gitpod workspaces.

AlexiaDelorme avatar Jun 03 '20 16:06 AlexiaDelorme

Thanks you all for reporting. Unfortunately, I'm not able to reproduce this. Could you please provide some more information:

  1. Was it a newly created workspace or did you re-start an existing workspace? In case of the latter: When was the workspace created (see https://gitpod.io/workspaces/ – top right corner of the workspace item)?
  2. Could you provide a workspace instance ID where this happens (the thing at the beginning of the URL in the browser like af4bcca2-87ad-4223-be37-66c7dc79cf02)?
  3. Could you probably share a workspace snapshot where this happens (e.g. via [email protected] as long as here are no confidential information in this workspace)?

corneliusludmann avatar Jun 03 '20 18:06 corneliusludmann

Hi Cornelius,

Thanks for getting back to us.

  1. I re-started an existing workspace. My workspace was created 3 months ago.
  2. My workspace instance ID: da314b55-5d5b-43c9-86b7-56ec4a4196d4
  3. I have sent the screenshot by email.

Thanks and regards, Alexia

AlexiaDelorme avatar Jun 03 '20 19:06 AlexiaDelorme

Same here. I am trying to add a folder, and wouldn't let me. Also, when I try to use the auto-tag feature, it wouldn't let either. So I had to write the whole code.

GlobetrotterG avatar Jun 03 '20 20:06 GlobetrotterG

Gitpod workspace not behaving consistently (files not saved and browser run behavioir not consistent) during the past 10 hours. Very frustrating had to stop and restart several times. https://d552dc35-3c89-47ef-abb1-2f9bf4495be5.ws-eu01.gitpod.io/ finally unable to start the workspace.

NgiapPuoyKoh avatar Jun 03 '20 22:06 NgiapPuoyKoh

I don't know if this issue I'm having is related, but when I try to test my login page by using an invalid password I get this error: jinja2.exceptions.UndefinedError: 'form' is undefined

This used to work without issue, so when I look at my app.py I have seen lots of imports have failed, like this: image

eldowling avatar Jun 04 '20 07:06 eldowling

@corneliusludmann is there any update on this issue and do we have an ETA for when this might be fixed? Or do you need any additional information?

stefdworschak avatar Jun 04 '20 14:06 stefdworschak

@jankeromnes has taken over the investigation. Since we are not able to reproduce this we need someone who can share his/her workspace with us, I guess. @jankeromnes can tell more ...

corneliusludmann avatar Jun 04 '20 14:06 corneliusludmann

Ok, it seems that all affected workspaces are based on repositories created from this template:

https://github.com/Code-Institute-Org/gitpod-full-template

Is that correct? (If you're seeing this issue, and did not use this template, please let me know.)

jankeromnes avatar Jun 04 '20 15:06 jankeromnes

I'm able to create files without issues.

(@AlexiaDelorme Note that these files are not unnecessary, as they properly configure your dev environment for Code Institute based projects in Gitpod. Without these files, you get an unconfigured, clean Gitpod environment, without any of the configurations / extensions pre-installed by Code Institute.)

jankeromnes avatar Jun 04 '20 15:06 jankeromnes

If someone has a workspace where this bug happens, could you please share a snapshot here?

  • In the IDE top menu bar, there is a "Workspace" menu
  • In that menu, there is a "Share Workspace Snapshot" item
  • This will give you a snapshot URL, which can be used to start a clone of your workspace (which hopefully allows reproducing the bug)

jankeromnes avatar Jun 04 '20 15:06 jankeromnes

@jankeromnes Thanks for getting back, I think I deleted them when I started working on my project, this is not what causing my issue I suppose.

AlexiaDelorme avatar Jun 04 '20 15:06 AlexiaDelorme

@jankeromnes Yes, on my side I used the Code Institute template you mentioned in your previous comment, I think this is probably the case of most students reporting on this issue.

Let me share the markdown button for my workspace snapshot: Open in Gitpod

It's not visible on the screenshot but on my side it's just the "format document" option that is no longer working when I right click on my file content to format it.

AlexiaDelorme avatar Jun 04 '20 15:06 AlexiaDelorme

I think I deleted them when I started working on my project, this is not what causing my issue I suppose.

@AlexiaDelorme Good point, if it worked well before, but now not anymore, that's probably unrelated to the deleted files.

Still (on a side note), by removing the .gitpod.yml, you've uninstalled these VSCode extensions from Gitpod:

  • ms-python.python (no more advanced Python linting / debugging)
  • formulahendry.auto-close-tag (no more auto-closing HTML/XML tags)
  • mkaufman.HTMLHint (no more advanced HTML linting)
  • eventyret.bootstrap-4-cdn-snippet (no more !bcdn)

That's totally fine, just wanted to explain why some features may not be available for you even though they work for others.

Let me share the markdown button for my workspace snapshot:

That's awesome, thank you so much. I'll see if this helps me reproduce the various problems mentioned above.

jankeromnes avatar Jun 04 '20 15:06 jankeromnes

@jankeromnes Thanks! Indeed I think I'll add them back anyway, especially for the HTML auto-closing tags option :)

AlexiaDelorme avatar Jun 04 '20 15:06 AlexiaDelorme