C
C#•23h ago
Qualy

error on new WPF project

When I make a new WPF app project, I immediately get an error. I have made other WPF apps today which didnt give me that error. I don't know what is wrong. Could not find a part of the path 'C:\Users\Gebruiker\Documents.Howest graduaat programmeren.Programming .Basics\PRB-02-Variabelen\Prb.Variables.Operators\Prb.Variables.Operators.Wpf\obj\Debug\net9.0-windows\Prb.Variables.Operators.Wpf_pw112xig_wpftmp.GeneratedMSBuildEditorConfig.editorconfig'.
38 Replies
Qualy
QualyOP•23h ago
I just deleted the solution and created it again and debugged and it just gives me the same error. I didn't even do anything yet except debugging
MODiX
MODiX•23h ago
ero
REPL Result: Success
@"C:\Users\Gebruiker\Documents.Howest graduaat programmeren.Programming .Basics\PRB-02-Variabelen\Prb.Variables.Operators\Prb.Variables.Operators.Wpf\obj\Debug\net9.0-windows\Prb.Variables.Operators.Wpf_pw112xig_wpftmp.GeneratedMSBuildEditorConfig.editorconfig".Length
@"C:\Users\Gebruiker\Documents.Howest graduaat programmeren.Programming .Basics\PRB-02-Variabelen\Prb.Variables.Operators\Prb.Variables.Operators.Wpf\obj\Debug\net9.0-windows\Prb.Variables.Operators.Wpf_pw112xig_wpftmp.GeneratedMSBuildEditorConfig.editorconfig".Length
Result: int
258
258
Compile: 153.526ms | Execution: 17.972ms | React with ❌ to remove this embed.
Qualy
QualyOP•23h ago
I just switched courses and Im starting next week. I missed 2 weeks so I have to fix it so I can follow next week whats this
Eve
Eve•23h ago
Your file path is too long
Qualy
QualyOP•23h ago
bruh
Eve
Eve•23h ago
How do you even manage that 😭
Qualy
QualyOP•23h ago
how can it even be too long lemme try smth whats the limit
Eve
Eve•23h ago
You could just rename your insanely long documents folder
jcotton42
jcotton42•23h ago
By default, paths on Windows are limited to 260 characters for historical reasons.
Qualy
QualyOP•23h ago
yeah I changed the project and solution name and it works now Imma increase the limit
ero
ero•23h ago
256 is the file name, 260 for the full path drive letter, :, \, null terminator
Angius
Angius•23h ago
Ah, gotcha Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 should do the trick to enable long paths
jcotton42
jcotton42•23h ago
Needs a reboot too, iirc
Qualy
QualyOP•23h ago
why is that even a thing
jcotton42
jcotton42•23h ago
Historical reasons. Basically there’s a constant, MAX_PATH in the Windows headers used to build C and C++ apps. Apps would make path buffers of that size for use with OS calls involving paths. That’s 260. And for those apps, you can’t put a larger path in those buffers, otherwise they’ll blow up. So, to protect existing apps, Windows doesn’t do >260 character paths unless you 1. Enable that registry setting, and 2. (iirc) Your application’s manifest indicates it has long path support
Qualy
QualyOP•23h ago
well I put everything in my OneDrive folder and now its fine
jcotton42
jcotton42•23h ago
just fyi, you should learn and use a version control system like git for code
Qualy
QualyOP•23h ago
yeah I will learn that throughout this semester thing is I did engineering this first semester but I didnt rly like it I was first planning on just continuing it but realized I didnt have much classes that interest me I did some research to find another course or whatever its called and put my mind on a bachelor in software engineering. However I cant start that in february but can only start in september So then I went to a study coach and asked for help and she told me I could do a graduate in programming for the rest of this year for some exemptions when I go study software engineering next year Problem is they already started 2 weeks ago so now Im learning what they learnt in those weeks I will learn how to use git and github but I gotta wait making an account till I get my school email
Angius
Angius•23h ago
Can't you just use your own email?
Qualy
QualyOP•23h ago
This is what he told me: Git install - please wait with your account until you have received a howest email address
ero
ero•23h ago
that seems like a bad idea. you'll likely want to use the account for things that aren't school related. and you'll probably lose access to the email address once you leave the school
Qualy
QualyOP•23h ago
I'll probably make another account for myself too yeah Im reading through the first 2 chapters of "continuous integration basics" right now so I'll probably see what to do apparently u can add multiple email adresses? Or so it says in this presentation. Out school email has to be our primary but I think we can add our personal as secondary or smth
Angius
Angius•23h ago
When it comes to Git, you can even set different emails per repo if you want, and you can always change it Just git config user.email "[email protected]" When it comes to Github, the account you make requires an email, yes Like any other online service
ero
ero•23h ago
i think this is what the instructions mean anyway
Angius
Angius•23h ago
It, too, can be changed
ero
ero•23h ago
these it mentions git install, not github account setup
Qualy
QualyOP•23h ago
so when I leave the school I can change the emails to my personal and I will keep everything
Angius
Angius•23h ago
Yeah You will need access to your school email to approve that change tho
Qualy
QualyOP•23h ago
this email can also be changed when I leave?
Angius
Angius•23h ago
So you won't be able to change it after you lose access to your school email
Qualy
QualyOP•23h ago
I will ask the profs next week they will provide me more information probably
FusedQyou
FusedQyou•23h ago
btw Even if you disable this max path limitation I believe VS has its own hard limit It's unable to build if the path exceeds a certain limit. I believe this is by itself not fixable unless this was (finally) fixed at a later point Best thing you can do here is to just use shorter folder paths. Documents.Howest graduaat programmeren.Programming .Basics by itself is nuts 😄 Also the reason why I just put everything in C:\Projects just to be sure
Qualy
QualyOP•23h ago
teacher got some jokes
No description
FusedQyou
FusedQyou•23h ago
Lol, I got a Displate of something similar Succes met je project 😛
Qualy
QualyOP•23h ago
ohh u speak dutch too?
FusedQyou
FusedQyou•22h ago
Yup
Qualy
QualyOP•22h ago
nice

Did you find this page helpful?