Giter Site home page Giter Site logo

Comments (6)

SanjulaGanepola avatar SanjulaGanepola commented on September 27, 2024

@edmundreinhardt There shouldn't be any file watcher that needs to be deactivated. I tried out what you outlined and it looks like it can even be reproduced in just Code4i by simply doing the following:

  1. Create a new directory in the IFS Browser.
  2. Use Set Deploy Workspace Location on this new directory.
  3. Deploy the project to this location.
  4. Try to delete the directory using the IFS Browser and you will get the error "Device busy".

When testing, I did notice that this only happens when there is a .bashrc file. When I didn't have one, it would give the error: "Cannot remove the current directory".

My .bashrc content:

export PATH="/QOpenSys/pkgs/bin:${PATH}"

from vscode-ibmi-projectexplorer.

sebjulliand avatar sebjulliand commented on September 27, 2024

Hey guys, I looked at the code in Code for i and rerproduced the issue as well.
However, it's not related to .bashrc, in my opinion. Why the deletion fails is simple: when deploying, the deploy location becomes the new current directory then the deployment commands and run. After that, trying to delete the deployment directory fails because you're basically trying to cut the branch you're seating on 😅

When running a command, we can see the current directory on the left side:
image

I'll make a note to handle this case in Code for i. In the case the user deletes the current deploy location, we'll make ~ the new current directory.

from vscode-ibmi-projectexplorer.

edmundreinhardt avatar edmundreinhardt commented on September 27, 2024

Yes, Seb, I noticed that this was reproducible in Code 4 i. But I could understand at some level, that the directory was still in use. The unique issue to Project Explorer is that even after changing the deploy directory, the old directory cannot be deleted.

from vscode-ibmi-projectexplorer.

sebjulliand avatar sebjulliand commented on September 27, 2024

@edmundreinhardt did you try do deploy again after changing the deploy dir and before trying to delete the old one? Because the current working directory is changed during the deployment, not just when you change the deployment location.

from vscode-ibmi-projectexplorer.

edmundreinhardt avatar edmundreinhardt commented on September 27, 2024

Yes, you are right. I will close this issue here, since this is a Code 4 i issue
@sebjulliand should I open defect in code 4 i or do you already have something there?

from vscode-ibmi-projectexplorer.

sebjulliand avatar sebjulliand commented on September 27, 2024

Yes, you are right. I will close this issue here, since this is a Code 4 i issue @sebjulliand should I open defect in code 4 i or do you already have something there?

Please do, I don't have anything there yet. You can assign it to me right away.

from vscode-ibmi-projectexplorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.