question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

During uploadOnSave, files in "ignored" directories are still uploaded

See original GitHub issue

Issue:

During uploadOnSave, files in “ignored” directories are still uploaded on save. In other words, the ‘ignore’ setting is not respected for directories during uploadOnSave.

Relevant Settings:

{
    ...
    "uploadOnSave": true,
    "ignore": [
        "**/ignoreme"
    ]
}

Steps to duplicate:

  • Create new directory ignoreme/
  • Create a new file ignoreme/myfile.txt
  • Set uploadOnSave to true
  • Add **/ignoreme to the ignore list.
  • Change ignoreme/myfile.txt and save.
  • Note that ignoreme/myfile.txt is uploaded to the server, even though ignoreme/ is an ignored folder.

What should happen:

  • Files in “ignored” directories should not upload, even during uploadOnSave.

Please fix this. It is very annoying. It causes my local .git/ files to upload to the server.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
liximomocommented, Feb 24, 2018

Change to this and provide me the log if it still can’t work.

"ignore": [
        ".vscode",
        ".DS_Store",
        "project_details.txt",
        ".eslintrc.json",
        "node_modules",
        ".git"
]
1reaction
tomazcpcommented, Feb 23, 2018

Hey liximomo. I’m having the exact same issue, I can’t get the package to ignore anything other than the .vscode folder where the config is in. I think it was working properly some time ago. I’ve been testing some variations of the config, none works. I’ve tried multiple patterns for the ignore array but nothing seems to work.

Anyway here’s my output:

[info]: config at /Users/** {
    "protocol": "sftp",
    "host": "foo.bar",
    "port": 22,
    "username": "username",
    "password": "***********",
    "agent": null,
    "privateKeyPath": null,
    "passphrase": null,
    "interactiveAuth": false,
    "secure": false,
    "secureOptions": null,
    "passive": false,
    "remotePath": "/foo.bar",
    "uploadOnSave": true,
    "syncMode": "update",
    "ignore": [
        "**/.vscode/**",
        "**/.DS_Store/**",
        "project_details.txt",
        ".eslintrc.json",
        "**/node_modules/**",
        "**/.git/**"
    ],
    "watcher": {
        "files": false,
        "autoUpload": false,
        "autoDelete": false
    },
    "concurrency": 512,
    "context": "/Users/**"
}

Thanks in advance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code with sftp plugin upload ignored .git folder ...
According to the project's wiki page on github. The developer has updated setting field name, So your sftp settings need to be changed...
Read more >
Ignoring Specific Files, Folders and Patterns with the .gitignore ...
The .gitignore file that comes with Drupal contains some default filename patterns to ignore files that shouldn't be in version control.
Read more >
.gitignore File – How to Ignore Files and Folders in Git
In this article, you will learn what a .gitignore file is, how to create one, and how to use it to ignore files...
Read more >
Uploading Objects from Workspace Cache - Windchill
The file is uploaded to your personal folder location on the Windchill server (your server-side workspace), without visibility to other users. The Upload...
Read more >
210227 – upload on save not triggering
Netbeans project folder of settings (2.64 KB, application/zip) ... to upload on save upload on save is not triggering when I save a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found