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.

project and bin folders being created even when excluded

See original GitHub issue

I am working on a project that has gradle build files in it, however those build files are not directly built in the project, and just stored there for distribution. However, the java plugin it still creating the .project and bin/.project files even if I have the following settings set in my settings.json file. (/resources) is where my files are.

    "java.import.gradle.enabled": false,
    "java.import.maven.enabled": false,
    "java.import.exclusions": [
        "**/node_modules/**",
        "**/.metadata/**",
        "**/archetype-resources/**",
        "**/META-INF/maven/**",
        "**/resources/**"
    ],
    "java.configuration.updateBuildConfiguration": "disabled"

There needs to be a way to completely disable the plugin from the settings so we don’t get those files created on any repo that contains a build.gradle file.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
snjezacommented, Mar 29, 2018

reopen vscode, and delete the bin folders and .classpath and .project files

you can try the following:

  • close vscode
  • delete the bin folders and .classpath and .project files
  • recreate settings.json
  • start vscode
0reactions
snjezacommented, Mar 29, 2018

I still can’t reproduce the issue.

$ cd vscode-wpilib-java/
$ mv .vscode/settings.json . # delete settings.json
$ code .
$ ls resources/gradlebase/.project 
resources/gradlebase/.project # .project has been created

# exit VS Code
$ rm resources/gradlebase/.project
$ rm resources/gradlebase/.classpath
$ rm -rf resources/gradlebase/.settings/
$ mv settings.json .vscode # recreate settings.json
$ code . 
$ ls resources/gradlebase/.project 
ls: cannot access 'resources/gradlebase/.project': No such file or directory
Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Go to All open files from bin and obj folder even I ...
I have a WPF project which is working fine, The problem I have seen with Visual Studio is it keeps showing me files...
Read more >
When a folder is excluded from the project, is still watched with ...
1. Create a project · 2. Create a subfolder in a project · 3. Exclude that subfolder from project using Settings→Project settings→Project structure→Excluded...
Read more >
Excluding Files and Folders in Visual Studio Web Site Project
One thing that invariably happens is that there is one or more dynamic files in a project that shouldn't be deployed to the...
Read more >
How to prevent web project bin folder and files from getting ...
Do you have the folders included in the Visual Studio project? If so, that could explain what you are seeing. Exclude them from...
Read more >
Excluding Files From Team Foundation Version Control Using ...
You can either manually create a .tfignore file in your solution, or you can add one automatically in Visual Studio by clicking the...
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