question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on creating Haskell project

See original GitHub issue

Freshly installed the plugin and stack Plugin version: 1.0.0-beta73 Stack version: 2.3.1 Error Message: Error adding module to project: null

Seems similar to #250

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
chriswakarecommented, Aug 16, 2020

We get an error if the Project Name has “spaces” or even and underscore “_”. For now the workaround can be

  • Do not use spaces or special characters like “_”

Additional Notes: IntelliJ IDEA 2020.2 Haskell 8.6.3 OS MacOS 10.15.6 Plugin version 1.0.0-beta78

1reaction
maartenhcommented, Aug 4, 2020

@rikvdkleij I tested it, and stack new <packagename> works on the command line.

However, a bit more experimenting showed what the actual problem is. I was just getting started with a book on Haskell, and was trying to create a project/package called “Chapter-01”. Which stack new on the command line explains is an invalid package name, leading to it not creating the project, and the subsequent missing Cabal file.

Perhaps a check on the project/package name would be helpful for people new to Haskell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error creating new project with Haskell Stack - Stack Overflow
I have Stack Version 1.5.1 and GHC 8.0.2. What could be causing this? I'm really at a loss. I haven't found anything documented...
Read more >
User's guide (introductory) - The Haskell Tool Stack
To build your project, Stack uses a project-level configuration file, ... However, rerunning stack build shows us the following error message. Command:.
Read more >
Error building stack project with ghc-9.2 on M1 (ghc configure ...
Hi, I tried today to build my stack project using nightly stack resolver (for ghc-9.2.2) and I get an error during ghc configure:...
Read more >
GHC 9.2.1 on an m1 Mac error: `ffitarget_arm64.h` file not found
I'm seeing this error when building an existing project: Failed to build wcwidth-0.0.2. Build log ( /Users/stu/.cabal/logs/ghc- ...
Read more >
Build a Haskell Cabal Project - YouTube
Build a Hello World Haskell project with Cabal. What is Main Haskell module in Hello World Cabal project ?SUBSCRIBE and LIKE for more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found