SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: patrickkox on August 22, 2020, 03:49:12 pm

Title: [SOLVED in 25.0.0.9]File not found when adding to version control after creation
Post by: patrickkox on August 22, 2020, 03:49:12 pm
I just noticed this after I enabled the option "Prompt when files are added to project" and I created a new file through:File -> New -> Automatic -> main.cpp
After the file is created there is a question to add the file to version control, but I guess the file only exists in the buffer and not in the filesystem since there is a "file not found" error after that.
I've also noticed that when I manually add the file to Git (right-click on the file -> Version Control (Git) -> add main.cpp) there is a "Slick-C" Error:
Quote
file=svx.ex offset=9287
and the Stack shows:
Quote
Stack trace written to file: /tmp/vsstack.patrick
This property or method is not allowed on this object
svc.ex 9287 svc_add()   p_window_id: 91   p_object: OI_TREE_VIEW   p_name: _proj_tooltab_tree
When I add an existing file to the project, the same question to add the file to version control is asked, and then it works without problems.
And to end on a positive note; I like the new "color icons", the previous set didn't look good on the light theme but these are a lot better.
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 22, 2020, 03:52:37 pm
That probably is because the file does not exist yet, I will have a look at that.  I think I just have to remove the prompt.

I'll have a look at the stack.  We fixed one issue like that for beta 3 already, it is may be the same issue, but I will double check to be sure.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 23, 2020, 12:05:14 pm
Hi Dan,
I just checked and the new file is not added to version control, so I think removing the error message is not enough.I had to manually add the file (from the CLI) to be able to use it with the Version Control system in VSE.
I'm running Debian Testing in case that's important to know.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 23, 2020, 03:48:44 pm
Another quick update:
When I select "No" when asked to add the file to VCS (after adding a new file)  and manually add it later (after editing and saving) I experience the following:

when I right-click on the filename in the projects browser and select : Version Control (Git) -> Add main.cpp I get the Slick-C Stack error message

But when I go to the top menu and select : Tools -> Version Control (Git) -> Add main.cpp there is no error message and the file seems to be correctly added to git.
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 23, 2020, 04:34:09 pm
Hi Dan,
I just checked and the new file is not added to version control, so I think removing the error message is not enough.I had to manually add the file (from the CLI) to be able to use it with the Version Control system in VSE.
I'm running Debian Testing in case that's important to know.

I was talking about removing the whole prompt to add to version control from the File->New dialog because the file is not on disk yet.
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 23, 2020, 04:36:26 pm
Another quick update:
When I select "No" when asked to add the file to VCS (after adding a new file)  and manually add it later (after editing and saving) I experience the following:

when I right-click on the filename in the projects browser and select : Version Control (Git) -> Add main.cpp I get the Slick-C Stack error message

But when I go to the top menu and select : Tools -> Version Control (Git) -> Add main.cpp there is no error message and the file seems to be correctly added to git.

Yes, this is an issue with the window it is being run from.  What happens if you run another operation from there (like history on a file that is already in version control)?
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 23, 2020, 05:35:11 pm
Quote
I was talking about removing the whole prompt to add to version control from the File->New dialog because the file is not on disk yet.
Ah, I thought you were talking about removing just the error message, my bad  ;D
However having new files automatically added to version control would be a great feature (I keep forgetting to manually add them.

Quote
Yes, this is an issue with the window it is being run from.  What happens if you run another operation from there (like history on a file that is already in version control)?

This results in a similar error message:
Quote
This property or method is not allowed on this pbject
 file=svc.ex offset=6156


and the Slick-C stack shows
Quote
Stack trace written to file: /tmp/vsstack.patrick



This property or method is not allowed on this object



svc.ex 6156 svc_history(,1,,0,)   p_window_id: 32   p_object: OI_TREE_VIEW   p_name: _proj_tooltab_tree
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 23, 2020, 05:46:30 pm
The problem is that File>New does not actually write the new file to disk, it merely creates a buffer in the editor.  So there is nothing to add (thus the error message).  Trying to detect the first save has a number of issues.

It's not much of a work around, but if you use Version Control->Compare workspace with git before doing commits etc, you will see the files that show up with a '?' icon that means Git does not know what they are, and you can then select them and add them (the ? is small, but you will be able to tell it from a modified file, and files that are not in "some sort of status" will not show up).  We use this tool a lot - and because the repository is local in git it comes up really fast.

The Slick-C stack does indeed seem to be fixed for beta 3.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 23, 2020, 06:08:55 pm
It's not much of a work around, but if you use Version Control->Compare workspace with git before doing commits etc, you will see the files that show up with a '?' icon that means Git does not know what they are, and you can then select them and add them (the ? is small, but you will be able to tell it from a modified file, and files that are not in "some sort of status" will not show up).  We use this tool a lot - and because the repository is local in git it comes up really fast.
Then I must be doing something wrong since they don't show up when I do this on my system:After I've manually added a file (like main.cpp) to version control from Tools -> Version Control (Git) -> add main.cpp They show up correctly when I select "Compare workspace with Git" but not before I added them.

For example, at the moment I have A project called "Example 4.15" which has it's main.cpp added to Git (and it's modified) so it shows a red dot at the top left and a green plus at the bottom right of the icon (I think) but there is no mentioning of a directory "Example 4.16" or any file contained in that folder.
Maybe I first need to add 1 file to Git so that it's aware of the directory ?

Or (now that I think of it), maybe it's because I have a .gitignore file that contains the following:
Code: [Select]
# Created by https://www.toptal.com/developers/gitignore/api/slickedit
# Edit at https://www.toptal.com/developers/gitignore?templates=slickedit

### SlickEdit ###
# SlickEdit workspace and project files are ignored by default because
# typically they are considered to be developer-specific and not part of a
# project.
*.vpw
*.vpj

# SlickEdit workspace history and tag files always contain user-specific
# data so they should not be stored in a repository.
*.vpwhistu
*.vpwhist
*.vtg

# End of https://www.toptal.com/developers/gitignore/api/slickedit

I use this .gitignore file because I've had problems in the past with conflicting workspace files.
I would basically edit a few projects on my desktop, push to git, do some other projects on my laptop, but because the workspace files are newer (because I forget to pull the repo before I start VSE, well actually I just autostart VSE on my laptop since that's basically all I use it for)  there are issues with pushing, pulling and merging
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 23, 2020, 06:18:15 pm
So Example4.16 is not added to git?

What happens if from the base git directory, you run "git status --porcelain" from a console?
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 23, 2020, 06:31:16 pm
That show the following message :

?? Chapter 04/Example 4.16/

Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 23, 2020, 06:40:19 pm
I'm not sure why we are not picking that up.

If you run "git rev-parse --show-toplevel" does it show the directory you expect it to?
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 23, 2020, 06:44:53 pm
Yes, it shows the top-level directory : /home/patrick/Projects/course/
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 23, 2020, 06:46:29 pm
I would expect it to pick that up.  Do you have files from that directory in the workspace?
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 23, 2020, 06:51:30 pm
No, my setup is like this:
/home/patrick/Projects/Course (top level Git directory)
  |- Chapter 01 (Workspace called chapter 01)
  |- Chapter 02
...
  |- Chapter 04 (My current workspace)



So every chapter of my course is a different workspace inside a subdirectory of the main Git repository
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 23, 2020, 06:57:21 pm
What happens if you use Compare Directory with Git and use " /home/patrick/Projects/course/" as the directory?
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 24, 2020, 08:22:08 am
Absolutely nothing. No pop-up (like with Compare Workspace with Git), no error dialog message or anything like that.

When I do this from the CLI I get the same result (at least if the correct command is git diff)

I've also did a git add -A and a git commit -a -m "Example 4.16 added to project" and checked with git diff after each command and every time I do this the result of git diff is just a blank screen.

Now after doing this and pushing the code to GitHub and editing the file git diff shows the following output:
Code: [Select]
diff --git a/Chapter 04/Example 4.16/main.cpp b/Chapter 04/Example 4.16/main.cpp
index ea0f202..317350b 100644
--- a/Chapter 04/Example 4.16/main.cpp     
+++ b/Chapter 04/Example 4.16/main.cpp     
@@ -4,4 +4,11 @@
 #include <iostream>
 using namespace std;
 
+// typedef
+typedef int (*functiepointer)(int, int);
+
+// prototypen
+int som(int x, int y);
+int product(int p, int q);
+int bereken(int a, int b, functiepointer fp);
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 24, 2020, 08:40:34 am
I don't know if this is related by when I select Tools -> Version Control (Git) -> Browse Repository...  I get the following dialog box:
Quote
You don't have a repository set up for the current file's
path (/home/patrick/Projects/Course/Exercise 4.01).

Would you like to add '/home/patrick/Projets/Course/
Exercise 4.01' to the repository list?

However this does not seem to solve anything.
Also, when I do git status from the CLI, I get the following output:
On branch master
Your branch is up to date with 'origin/master'.

Quote
Untracked files:
  (use "git add <file>..." to include in what will be committed)
    Chapter 04/Exercise 4.01/

nothing added to commit but untracked files present (use "git add" to track)
there is a file called main.cpp in that directory, but Git only reports the directory not the file.
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 24, 2020, 11:48:28 am
Absolutely nothing. No pop-up (like with Compare Workspace with Git), no error dialog message or anything like that.

When I do this from the CLI I get the same result (at least if the correct command is git diff)

I've also did a git add -A and a git commit -a -m "Example 4.16 added to project" and checked with git diff after each command and every time I do this the result of git diff is just a blank screen.

Now after doing this and pushing the code to GitHub and editing the file git diff shows the following output:
Code: [Select]
diff --git a/Chapter 04/Example 4.16/main.cpp b/Chapter 04/Example 4.16/main.cpp
index ea0f202..317350b 100644
--- a/Chapter 04/Example 4.16/main.cpp     
+++ b/Chapter 04/Example 4.16/main.cpp     
@@ -4,4 +4,11 @@
 #include <iostream>
 using namespace std;
 
+// typedef
+typedef int (*functiepointer)(int, int);
+
+// prototypen
+int som(int x, int y);
+int product(int p, int q);
+int bereken(int a, int b, functiepointer fp);

Was "recursive" checked?
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 24, 2020, 02:18:14 pm
Yes, IIRC the default option has recursive checked.
However I didn't give a recursive option  in the cli, just git diff


Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on August 26, 2020, 10:37:25 am
Just to inform that the problems are still present in Beta 3

This includes the Slack-C stack error that was being worked on for Beta 3
Title: Re: File not found when adding to version control after creation.
Post by: Dan on August 26, 2020, 01:09:33 pm
I was not able to address the one in time (I've been off on another Git feature).  I could not reproduce the stack, but I will try some more things.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on September 18, 2020, 02:55:30 pm
Another FYI for Beta 4
Creating a new file still triggers a dialog box asking to add the new file to version control (since this option is set in the configuration). After answering yes there is still a "File not found" error, but I didn't get any other Slick-C errors (and now that I think of it, I also think the Slick-C Stack error was already fixed in Beta 3).


Wouldn't it be possible to save the new buffer to an empty file right after creation so there actually is a file to add to version control?This would also fix a "file not found" error when a new file is created but not edited/saved before SlickEdit is closed.

to reproduce that you just add a new file (like test.cpp for example) and after it's created you close SlickEdit.
When you re-open SlickEdit the file is listed in the sources directory of the project, but it doesn't exist
When you double-click that file to open and edit it, there is a dialog box with various options:

'"~/file path/test.cpp"' does not exist
do you wish to
- Check out the latest version
- Get the latest version
- Create the file
- Save a new file


with 3 buttons
OK
CANCEL
Version Control Setup ...


This is off course only a minor annoyance.
There are a few more occasions where this causes SlickEdit to display a "File not found" error
Title: Re: File not found when adding to version control after creation.
Post by: Dan on September 23, 2020, 05:20:17 pm
What kind of project do you have open?  I started tracking this down and if the file is being added to a project we do save it initially, and it gets saved before you would be prompted to add it to version control.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on September 24, 2020, 10:39:22 am
It's a GNU C/C++ Project with SE Running on Debian GNU/Linux.

The settings for the new project are:
- GNU C/C++
- Create directory from project name checked
- radio button set to "Add to current workspace" (it's a workspace with several short (1 file) C++ projects).


I answer yes to the create directory question and set the following settings:
- Project Type : Executable
- Source Type : C++
- Application type : an empty project
- Build without makefile (dependencies automatically checked)
- no exising file added since there are none ;-)

Then I add the new file by right-clicking on source Files -> Add -> New File -> Document Mode = Automatic -> Filename : main.cpp
After this the question to add the file to version control appears and answering Yes gives the file not found error
Also, if I don't edit/save the new file, and select "Remove" by right-clicking the filename and also selecting the delete file from disk, there is also a file not found error.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on September 26, 2020, 11:18:20 am
Dan,
I don't know if you have had the time between my previous reply and the release of RC1. but I'm still getting the "file not found" error when working with a GNU C/C++ project. And to add, this is not only happening with .cpp files, but also with header files (.h) when they are added to the project.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on September 30, 2020, 02:50:46 pm
Unfortunately I'm still getting this error with version 25.0.0.6  :(
Title: Re: File not found when adding to version control after creation.
Post by: Dan on September 30, 2020, 05:40:14 pm
I have not been able to reproduce this.  It should be hotfixable so it will not have to wait until 25.0.1.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on September 30, 2020, 08:47:32 pm
I have not been able to reproduce this.  It should be hotfixable so it will not have to wait until 25.0.1.


This is what I've done on my Debian Testing system to get the error message:


This is with a brand new installation (remove the previous slickedit-pro2020 directory and the hidden .slickedit directory.)


I"ve also started with a new configuration file


I did some modifications to the defaults configuration:
- Appearance -> Tool Window & Toolbar Options : Color icons instead of the default LowColor


- Tools -> Version Control -> Version Control Setup:


Git is setup as Version Control and All checkboxes are checked:


- Auto check-out on edit
- Autodetect Git and Subversion files
- Prompt when files are removed from project
- Set files to read-only on check in
- Prompt when files are added to project


Next I added a new Test workspace and started a new GNU C/C++ Project.


When adding a new file (right-click Source Code directory) and selecting: Add -> New File -> Automatic -> main.cpp


There is a question to add the file to version control and after choosing "Yes" there is the File not Found error message.


I Hope this helps to reproduce it.
Title: Re: File not found when adding to version control after creation.
Post by: Dan on September 30, 2020, 08:50:31 pm
That is a different place than I was trying it form (although it is the same dialog).  I thought I tested this on Linux, but I will re-test it.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on September 30, 2020, 09:00:35 pm
The error goes away when I unselect the "Prompt when adding file to project" option, so I guess that's what's causing the error message.


Also, when I remove the option and manually add the file (right-click and select: Version Control (Git) -> Add main.cpp)


there is a Slick-C / Stack error:


This property of method is not allowed on this object
file=svc.ex offset=9287


 
 
 Stack trace written to file: /tmp/vsstack.patrick This property or method is not allowed on this object svc.ex 9287 svc_add()   p_window_id: 445   p_object: OI_TREE_VIEW   p_name: _proj_tooltab_tree 
Title: Re: File not found when adding to version control after creation.
Post by: Dan on September 30, 2020, 09:06:41 pm
Thank you.  That should be hotfixable.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 02, 2020, 06:27:33 pm
Thank you.  That should be hotfixable.


I hope so, unfortunately it's not fixed in 25.0.0.7
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 03, 2020, 08:31:52 am
[size=0px]unfortunately it's not fixed in 25.0.0.8 either[/size]
Title: Re: File not found when adding to version control after creation.
Post by: Dan on October 04, 2020, 08:23:07 pm
25.0.0.8 addressed an issue that couldn't be hotfixed, this should be able to.  I was going to look into it now but I'm having trouble with my Linux machine, I've contacted IT about it.
Title: Re: File not found when adding to version control after creation.
Post by: Dan on October 05, 2020, 04:39:47 am
I have reproduced the problem... sort of.  The files are definitely being written.  I'm actually not getting the prompt and it it's adding them.

Could you send me your config?
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 05, 2020, 09:16:02 am
I have reproduced the problem... sort of.  The files are definitely being written.  I'm actually not getting the prompt and it it's adding them.

Could you send me your config?


I think I've found the real culprit, I thought that enabling Options -> Tools -> Version Control -> Version Control Setup ->   "Prompt when files are added to project" caused this (since it goes away when I unselect this option)

BUT when you go to Options -> Tools -> Version Control -> Version Control Provider -> Git -> there is an option "Show status on file icons" , I don't know what this does since I don't see any difference in the file tree with this option on or off, but setting it ON causes these problems. When you set this to OFF (the default setting) the error is gone. Also with this deactivated there is no dialog window asking to add the file to version control any more, so I assume the files are now automatically added to Git?

If you still require the configuration it should be available here: https://www.dropbox.com/s/zmimhlrh9sem7je/SlickEditOptions25.zip?dl=0

Oh, and not really related, but I notice this when exporting a configuration and such. Is it possible to make the "Hide hidden files" option stick? At the moment when you Export a configuration it shows all files and folders including the hidden ones, you can disable this by right-clicking and deselecting the show hidden files and folders option. But the next time you want to export configurations (or any other file operation) it shows them again. This is not a big problem just a minor inconvenience.
 
Title: Re: File not found when adding to version control after creation.
Post by: Dan on October 05, 2020, 02:44:12 pm
 It should still work.  What I'm getting, it's saving the file - even with your config.

What I'm getting - even with your config - is that even though I turned on prompting, it's not prompting.  It's just adding the files to the project.  So there are two thing I don't understand.  The bigger one is why it isn't saving the files for you.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 05, 2020, 04:36:11 pm
This is weir!


When I checked this morning changing that setting in Options -> Tools -> Version Control -> Version Control Provider -> Git, solved the issue. But I've checked again, and not I'm getting the question to add the file to Version Control every time I add a new file (regardless of that one setting) and I'm also getting the "File not found error" again in both cases.


I've tried this on 3 different machines (all run Debian Bullseye) and all have this problem (with different configurations).
All my configurations have this issue.

With a "clean" configuration there is a file created in the project directory


but


when I set the options to automatically add the new file to Version Control (to ask me to add it), there is no file saved.


This is the default confif with all tickboxes under Options -> Tools -> Version Control Setup ticked (Auto check_out on edit, Auto detect Git and Subversion files, Prompt when files are removed from project, set files to read only on check in, prompt when files are added to project, prompt for files)

Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 05, 2020, 06:09:10 pm
It should still work.  What I'm getting, it's saving the file - even with your config.

What I'm getting - even with your config - is that even though I turned on prompting, it's not prompting.  It's just adding the files to the project.  So there are two thing I don't understand.  The bigger one is why it isn't saving the files for you.


Are you doing your testing in a Git repository?


I've just did a whole bunch of deleting and installing again, and I've noticed that when I make a new workspace / project in a "normal" directory the error message is not displayed
Title: Re: File not found when adding to version control after creation.
Post by: Dan on October 05, 2020, 06:53:02 pm
It is in a git repository.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 05, 2020, 06:59:47 pm
Dan,


I've also uploaded the configuration file for my workstation to Dropbox (https://www.dropbox.com/s/7v74umven7zqvhd/SlickEditOptions25-workstation.zip?dl=0) it has a lot more modifications than the default one. There are also some custom Fonts set, so importing it into SlickEdit will result in several errors.


Now one of these error message that I always get is that the file ~/.gitconfig (global git configuration) is not found even while this file IS present on all my systems at that exact location.


I don't know if that's relevant or not, but since it's a Git error message.


The content of that .gitconfig files is pretty basic:
Code: [Select]
[user]
    name = Patrick Kox
    email = patrick.kox@[mail].be
signingkey = A2B6A77C6966325D
[color]
    ui = auto
[merge]
    conflictstyle = diff3


[gpg]
program = gpg2
[commit]
gpgsign = true


I was thinking that this file caused the problem, but when I rename it to .gitconfig.bak the problem remains


Also, when I disable the 3 options in the Version Control setup that causes the error message I cannot manually "add file to Version Control" or "Commit testfile.cpp"
both these options give Slick-C Stack errors.


When I do "Add testfile.cpp"
Slick-C Error
This property or method is not allowed on this object


file=svc.ex offset=9287


When I do "commit testfile.cpp"
there is the same error message with another offset:
file=svc.ex offset=7495


Also, after a few tries, the error message is not "This property or method is not allowed on this object" but just a Z (screenshots of both error messages here : https://www.dropbox.com/sh/dzwbngqb3byiau6/AACWFMWUThBIrX9plaooVJjTa?dl=0)[size=78%] [/size]
Title: Re: File not found when adding to version control after creation.
Post by: Dan on October 05, 2020, 07:02:48 pm
What menu did you run the Add from?  That is a bad window ID, so it's probably an easy fix.
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 05, 2020, 07:15:10 pm
What menu did you run the Add from?  That is a bad window ID, so it's probably an easy fix.


Right-Click on the "Source Files" folder and select -> Add -> new  file...


And that seems to be part of the problem, I've also checked adding a new file from the drop-down menu File -> New ... and that one did not give the error message.


So this only happens when using the right-click method which I always use.


But... the file created through File -> New... -> test.cpp still gives those Slick-C Stack error messages when I right-click them and select add or commit to version control.


When I go through the Tools menu: Tools -> Version Control (Git) -> Add testfile.cpp (or commit testfile.cpp) those also work without problem


I guess it's safe to say that for some reason most (if not all) actions done by right-clicking in the Projects List at the left of the screen cause errors.

Edit: I added a screenshot to my dropbox, it's called SlickEdit004.png (https://www.dropbox.com/s/737qci3t7qy1dan/SlickEdit004.png?dl=0)
Title: Re: File not found when adding to version control after creation.
Post by: Dan on October 05, 2020, 07:18:57 pm
Reproduced.  This will be in a hotfix, but if you PM me an email address I'll send you the fix (I don't like to post whole source files here).
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 05, 2020, 07:35:49 pm
Reproduced.  This will be in a hotfix, but if you PM me an email address I'll send you the fix (I don't like to post whole source files here).


PM Sent.


Thanks!
Title: Re: File not found when adding to version control after creation.
Post by: patrickkox on October 05, 2020, 09:21:37 pm
Dan,


I just loaded the file you've sent, but unfortunately it doesn't fix the problem.


When I add a new file, it still shows the "Add to Version Control" question followed by the File not found error


Also, when I do "Add file.cpp" there is no more error message, but when I select "commit file.cpp"  there is still the Slick-C Stack error svc.ex offset = 7495
Title: Re: File not found when adding to version control after creation.
Post by: Dan on October 05, 2020, 09:25:49 pm
I checked for other instances of the same problem.  I'll double check commit.

I haven't addressed the Add to Version Control/File not found issue yet.  That's going to take some digging to figure out how to get the exact issue.

Before you exported all your configuration options.  Could you put up the user.cfg.xml from your configuration directory?
Title: Re: [SOLVED in 25.0.0.9]File not found when adding to version control after creation
Post by: mzel on January 31, 2021, 05:01:51 pm
@Dan - I am on 24.0.2 with the latest hotfix, and I am experiencing a similar problem. I've tried playing with the options in Git setup ("Prompt when files are added to project", "Show status on file icons") to no avail. Is there a workaround for this?
Title: Re: [SOLVED in 25.0.0.9]File not found when adding to version control after creation
Post by: patrickkox on January 31, 2021, 05:11:41 pm
@mzelI've been thinking about this one, since I saw your post this morning and IIRC there are two methods to manually add a file to Version Control
I think the "automatically add" option does not work in any version before 25.0.0.9. so that's not an option.

But you can manually add a file by using the top menuTools -> Version Control (Git) ->  add file to git...

or you could:

right-click on the filename in the "Project Explorer" and select -> Version Control (Git) -> add FILENAME

One of these 2 options should work (I just can't remember which one), but I remember that Dan was looking at one of these options (which worked) and I was using the other option so it took a while to find the root of the problem.

I hope this helps
Title: Re: [SOLVED in 25.0.0.9]File not found when adding to version control after creation
Post by: mzel on January 31, 2021, 05:19:23 pm
@Patrickkox - yes, I tried those two too. Still happens to me. And  committing from the right click does not work for me either. The only way which I found to work was  "Compare project to git", check the files, and hit "Add" or "Commit" at the bottom
Title: Re: [SOLVED in 25.0.0.9]File not found when adding to version control after creation
Post by: Dan on January 31, 2021, 09:31:31 pm
@mzel  Are you still using 24.0.2?
Title: Re: [SOLVED in 25.0.0.9]File not found when adding to version control after creation
Post by: mzel on January 31, 2021, 10:31:52 pm
Yes.