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

Exceptions thrown when file's file type is overridden #2858

Closed
cursive-ide opened this issue Oct 31, 2023 · 2 comments
Closed

Exceptions thrown when file's file type is overridden #2858

cursive-ide opened this issue Oct 31, 2023 · 2 comments
Labels
bug Marks issues describing bugs released Marks issues which have had the fixes released in a stable build released-eap Marks issues which have had the fixes released in an EAP build
Milestone

Comments

@cursive-ide
Copy link
Owner

If you have a file without a Clojure extension, you can manually override its file type. You might want to do this if you have a babashka script and you don't want it to have a clj extension, for example. However, doing this produces an exception:

java.lang.NullPointerException: Cannot invoke "clojure.lang.Named.getName()" because "x" is null
	at clojure.core$name.invokeStatic(core.clj:1610)
	at clojure.core$name.invoke(core.clj:1604)
	at cursive.language$with_language.invokeStatic(language.clj:56)
	at cursive.language$with_language.invoke(language.clj:55)
	at cursive.extensions.clojure.core.resolve$global_var_meta.invokeStatic(resolve.clj:171)
	at cursive.extensions.clojure.core.resolve$global_var_meta.invoke(resolve.clj:105)
	at cursive.index$with_parsed.invokeStatic(index.clj:646)
	at cursive.index$with_parsed.invoke(index.clj:644)
...etc etc...
@cursive-ide cursive-ide added the bug Marks issues describing bugs label Oct 31, 2023
@cursive-ide cursive-ide added this to the 1.13.1 milestone Oct 31, 2023
@cursive-ide cursive-ide modified the milestones: 1.13.1, 1.13.1-eap9 Nov 27, 2023
@cursive-ide
Copy link
Owner Author

Fix released in 1.13.1-eap9 on 2023-11-27.

@cursive-ide cursive-ide added the released-eap Marks issues which have had the fixes released in an EAP build label Nov 27, 2023
@cursive-ide
Copy link
Owner Author

Fix released in 1.13.1 on 2023-12-07.

@cursive-ide cursive-ide added the released Marks issues which have had the fixes released in a stable build label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Marks issues describing bugs released Marks issues which have had the fixes released in a stable build released-eap Marks issues which have had the fixes released in an EAP build
Projects
None yet
Development

No branches or pull requests

1 participant