Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start new file nor project #7399

Closed
cho-mik opened this issue May 24, 2024 · 4 comments
Closed

Can't start new file nor project #7399

cho-mik opened this issue May 24, 2024 · 4 comments
Labels

Comments

@cho-mik
Copy link

cho-mik commented May 24, 2024

Apache NetBeans version

Apache NetBeans 21

What happened

I can't create new project. I try "new project", then I select "Jave with Maven" and "Java application". I click "next" it goes to "finding feature" and displays nothing. Only "cancel" is active.
obraz

messages.log

Language / Project Type / NetBeans Component

No response

How to reproduce

"new project", "Jave with Maven" "Java application". "next"

Did this work correctly in an earlier version?

Apache NetBeans 19

Operating System

Windows 10

JDK

JDK 22

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

@cho-mik cho-mik added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels May 24, 2024
@mbien
Copy link
Member

mbien commented May 24, 2024

INFO [org.netbeans.Stamps]: cannot rename (#0): C:\Users\spamm\AppData\Local\NetBeans\Cache\21\all-layers.dat
...
WARNING [org.netbeans.Stamps]: Error saving cache C:\Users\spamm\AppData\Local\NetBeans\Cache\21\all-layers.dat
INFO [org.netbeans.Stamps]: Could not delete: C:\Users\spamm\AppData\Local\NetBeans\Cache\21\all-layers.dat
java.io.IOException: Could not delete: C:\Users\spamm\AppData\Local\NetBeans\Cache\21\all-layers.dat
	at org.netbeans.Stamps.deleteCache(Stamps.java:515)
	at org.netbeans.Stamps.access$200(Stamps.java:69)
[catch] at org.netbeans.Stamps$Store.store(Stamps.java:709)
	at org.netbeans.Stamps$Worker.run(Stamps.java:887)

NetBeans can't delete that file for some reason. You could try to restart your system to make sure all file locks are released, then remove this folder: C:\Users\spamm\AppData\Local\NetBeans\Cache\21.

Once done NB should hopefully work again.

@neilcsmith-net
Copy link
Member

@mbien stamp file aspect is odd, but this looks more like the issue fixed in #7334

@mbien
Copy link
Member

mbien commented May 24, 2024

@neilcsmith-net you are right. It was my first thought too but I got distracted by the exception in the log. nbjavacapi module isn't loaded so its the same symptom.

@cho-mik this issue is fixed in NB 22 which should be available next week. If you want to use NB 21 till then, try resetting your config in C:\Users\spamm\AppData\Roaming\NetBeans\21. Once you start NetBeans again, create a new maven project right away without opening the plugin manager or the options and all modules should initialize properly.

@mbien mbien removed the needs:triage Requires attention from one of the committers label May 24, 2024
@mbien mbien closed this as completed May 24, 2024
@cho-mik
Copy link
Author

cho-mik commented May 29, 2024

Yes, after the restart it works. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants