Comments (6)
@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:
- Create a new directory in the IFS Browser.
- Use
Set Deploy Workspace Location
on this new directory. - Deploy the project to this location.
- 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.
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:
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.
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.
@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.
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.
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)
- `Assign to Variable` action fails on libraries
- Detect sub `iproj.json` and notify user
- Add job log docs
- Review project metadata docs + update Bob docs HOT 1
- Enhancements to job log viewer HOT 2
- `Run Build` and `Run Compile` only works after invoking action 3 times
- Job log error when no `iproj.json`
- update of member text fails HOT 1
- Example on how to use project explorer and git branch HOT 1
- Deleting an object from library in the Library List fails HOT 4
- Changing library description on library in project explorer library list fails HOT 2
- When assigning libraries to variables from QSYS browser, the value becomes QSYS/lowercaselibraryname should be UPPERCASELIBNAME HOT 3
- Preference 'Disable User Library List' is misleading, it should indicate it disables the view
- Need to set CURLIB and LIBL as environment variables based on iproj.json HOT 8
- Optionally generate a devfile that will load a Merlin workspace during migrate workspace
- If a iproj.json is loaded and it is th only one with a project root, make it the project root.
- On Project Explorer heading - Connect to IBM i action - Create new connection should create Merlin extension when in Merlin
- When build or compile commands are not specified, let BOB commands be given by default
- When setCompileCommand is issued from Command Pallette and one has already been specified, then no UI appears HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-ibmi-projectexplorer.